/* BuscaMods v2 — Rediseño completo */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --darker: #0A0A0A;
  --dark: #101110;
  --card: #1A1A1A;
  --border: #2A2A2A;
  --border-light: #3A3A3A;
  --green: #31ae24;
  --green-deep: #0e5733;
  --green-light: #3CC72E;
  --green-pale: #cfd8d2;
  --gray: #626262;
  --text: #D8D8D8;
  --text-dim: #8A8A8A;
  --text-muted: #555555;
  --white: #FFFFFF;
  --red: #e24b4a;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}
/* === HEADER === */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 6px; background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.logo-text {
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}
.logo-text span { color: var(--green); text-shadow: 0 0 8px rgba(49,174,36,0.25); }
.header-nav { display: flex; align-items: center; gap: 12px; }
.header-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.header-btn:hover { border-color: var(--green-deep); color: var(--green); }
.nav-yt {
  display: flex; align-items: center; gap: 6px; color: var(--text-dim);
  text-decoration: none; font-size: 14px; transition: color 0.2s;
}
.nav-yt:hover { color: var(--green); }
/* === MAIN === */
.main { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; }

/* === HERO === */
.hero { text-align: center; margin-top: 8vh; margin-bottom: 24px; }
.hero-title {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(36px, 7vw, 56px);
  font-weight: 700; color: var(--white); letter-spacing: -0.02em;
}
.hero-title span { color: var(--green); text-shadow: 0 0 10px rgba(49,174,36,0.3); }
.hero-subtitle {
  margin-top: 8px; font-size: 16px; color: var(--text-dim);
  font-weight: 300; line-height: 1.5;
}

/* === SEARCH BAR === */
.search-wrap { max-width: 640px; margin: 0 auto 20px; }
.search-bar {
  display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(49,174,36,0.12); transition: box-shadow 0.3s;
}
.search-bar:focus-within { box-shadow: 0 0 0 1px rgba(49,174,36,0.35), 0 0 25px rgba(49,174,36,0.08); }
.search-icon { margin-left: 14px; color: var(--gray); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 13px 12px; color: var(--white); font-size: 14px; font-family: 'Inter', sans-serif;
}
.search-bar input::placeholder { color: var(--text-muted); }
.mic-btn {
  margin-right: 6px; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-dim);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.mic-btn:hover { border-color: var(--green-deep); color: var(--green); }
.mic-btn.active { border-color: var(--red); color: var(--red); background: rgba(226,75,74,0.1); }
.search-submit-btn {
  margin-right: 6px; padding: 10px 18px; background: var(--green-deep);
  color: white; border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.05em; transition: background 0.2s; white-space: nowrap;
}
.search-submit-btn:hover { background: var(--green); }

/* === VOICE BAR === */
.voice-bar {
  max-width: 640px; margin: 0 auto 16px; background: rgba(226,75,74,0.08);
  border: 1px solid rgba(226,75,74,0.2); border-radius: 10px;
  padding: 10px 16px; font-size: 13px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.voice-wave { display: flex; align-items: center; gap: 2px; }
.voice-wave span {
  width: 3px; background: var(--red); border-radius: 2px;
  animation: vwave 0.6s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }.voice-wave span:nth-child(2) { height: 14px; animation-delay: .1s; }
.voice-wave span:nth-child(3) { height: 10px; animation-delay: .2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: .3s; }
.voice-wave span:nth-child(5) { height: 8px; animation-delay: .4s; }
@keyframes vwave { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.2); } }

/* === SECTION LABELS === */
.section-label {
  font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* === GAMES GRID === */
.games-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.game-card {
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  transition: all 0.2s;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(49,174,36,0.3); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.game-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.game-card-info { padding: 8px 10px; }
.game-card-name {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}.game-card-count { font-size: 11px; color: var(--text-muted); }

/* === CTA BANNER === */
.cta-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--card); border: 1px dashed var(--border-light); border-radius: 10px;
  cursor: pointer; transition: all 0.2s; margin-bottom: 20px;
}
.cta-banner:hover { border-color: var(--green-deep); background: rgba(14,87,51,0.05); }
.cta-text strong { display: block; color: var(--white); font-size: 14px; font-weight: 500; }
.cta-text span { font-size: 13px; color: var(--text-dim); }

/* === BACK BUTTON === */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none;
  border: 1px solid var(--border-light); color: var(--text); font-size: 12px; cursor: pointer;
  font-family: 'Inter', sans-serif; padding: 6px 14px; border-radius: 6px;
  transition: all 0.2s; margin-left: auto; font-weight: 500;
}
.back-btn:hover { border-color: var(--green); color: var(--green); background: rgba(49,174,36,0.05); }

/* === GAME HEADER === */
.game-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.game-header-img { width: 52px; height: 78px; border-radius: 8px; object-fit: cover; }
.game-header-info { flex: 1; min-width: 200px; }
.fav-game-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border-light); color: var(--text);
  font-size: 12px; cursor: pointer; font-family: 'Inter', sans-serif;
  padding: 6px 12px; border-radius: 6px; transition: all 0.2s; font-weight: 500;
}
.fav-game-btn:hover { border-color: var(--green-deep); color: var(--green); }
.fav-game-btn.active { border-color: var(--green); color: var(--green); background: rgba(49,174,36,0.08); }
.fav-game-btn.active svg { fill: var(--green); }
.fav-game-btn:disabled { opacity: 0.5; cursor: wait; }
.fav-game-btn.hidden { display: none; }
.game-header-title {
  font-family: 'Rajdhani', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--white);
}
.game-header-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
/* === AI NOTE === */
.ai-note {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: rgba(14,87,51,0.08); border-left: 3px solid var(--green);
  font-size: 13px; color: var(--text-dim); margin-bottom: 16px;
}

/* === CATEGORIES === */
.cats-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-btn {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: var(--card); color: var(--text-dim); border: 1px solid var(--border);
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--green-deep); color: var(--text); }
.cat-btn.active { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }

/* === SORT === */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.sort-wrap { display: flex; gap: 6px; }
.sort-btn {
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  background: var(--card); color: var(--text-muted); border: 1px solid var(--border);
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.sort-btn:hover { border-color: var(--border-light); color: var(--text-dim); }
.sort-btn.active { background: var(--border); color: var(--text); border-color: var(--border-light); }
/* === LOADING === */
.loading { display: flex; flex-direction: column; align-items: center; padding: 60px 0; }
.loading p { margin-top: 12px; color: var(--text-dim); font-size: 14px; }
.loading-dots { display: flex; gap: 6px; }
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* === RESULTS GRID === */
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* === MOD CARD === */
.mod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s;
}
.mod-card:hover { transform: translateY(-2px); border-color: rgba(49,174,36,0.25); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.mod-card-img {
  height: 130px; background: var(--darker); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.mod-card-img img { width: 100%; height: 100%; object-fit: cover; }.badge-review {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, #0e5733, #31ae24); color: white;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.03em; display: flex; align-items: center; gap: 4px;
  text-decoration: none; transition: transform 0.2s;
}
.badge-review:hover { transform: scale(1.05); }
.badge-game {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(49,174,36,0.1); color: var(--green);
  border: 1px solid rgba(49,174,36,0.25); font-size: 11px;
  font-weight: 500; padding: 2px 8px; border-radius: 4px;
}
.mod-card-body { padding: 12px 14px; display: flex; flex-direction: column; flex: 1; }
.mod-card-title {
  font-family: 'Rajdhani', sans-serif; font-size: 17px;
  font-weight: 600; color: var(--white); line-height: 1.2;
}
.mod-card-desc {
  margin-top: 5px; font-size: 12px; color: var(--text-dim); line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mod-card-stats {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
  font-size: 12px; color: var(--gray);
}
.mod-card-action {
  display: block; margin-top: 8px; text-align: center; padding: 7px;
  background: rgba(14,87,51,0.1); border: 1px solid rgba(14,87,51,0.3);
  color: var(--green); font-size: 13px; font-weight: 500; border-radius: 8px;
  text-decoration: none; transition: background 0.2s;
}
.mod-card-action:hover { background: rgba(14,87,51,0.2); }
/* === FOOTER === */
.footer {
  text-align: center; padding: 24px 20px; font-size: 12px; color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.footer a { color: var(--green); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-yt { margin-bottom: 12px; }
.footer-yt-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 8px;
  background: rgba(255,0,0,0.06); border: 1px solid rgba(255,0,0,0.15);
  color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.footer-yt-link:hover { background: rgba(255,0,0,0.12); border-color: rgba(255,0,0,0.3); text-decoration: none; }

/* === POPUP CLOSE X === */
.popup-close-x {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.3);
  color: #e24b4a; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.popup-close-x:hover { background: rgba(226,75,74,0.2); border-color: #e24b4a; }
.game-question-box { position: relative; }

/* === UTILITIES === */
.hidden { display: none !important; }

/* === GAME QUESTION OVERLAY === */
.game-question-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); display: flex; align-items: center;
  justify-content: center; z-index: 1000; backdrop-filter: blur(4px);
}
.game-question-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px; max-width: 440px; width: 90%; text-align: center;
}
.game-question-title {
  font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--white); margin-bottom: 6px;
}
.game-question-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.game-question-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px;
}
.game-question-btn {
  padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: var(--dark); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.game-question-btn:hover { border-color: var(--green); color: var(--green); background: rgba(49,174,36,0.05); }
.game-question-cancel {
  background: none; border: none; color: var(--text-muted); font-size: 13px;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.game-question-cancel:hover { color: var(--text); }
.game-question-more {
  font-size: 12px; color: var(--green); margin-bottom: 12px;
}
.game-question-input {
  width: 100%; padding: 10px 14px; border-radius: 8px; font-size: 14px;
  background: var(--dark); color: var(--white); border: 1px solid var(--border);
  font-family: 'Inter', sans-serif; margin-bottom: 12px; outline: none;
}
.game-question-input:focus { border-color: var(--green); }
.game-question-input::placeholder { color: var(--text-muted); }
.game-question-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.game-question-search-row .game-question-input { margin-bottom: 0; }
.game-question-mic {
  width: 44px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--border);
  background: var(--dark); color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.game-question-mic:hover { border-color: var(--green-deep); color: var(--green); }

/* === FIND GAME RESULTS === */
.find-game-results { max-height: 250px; overflow-y: auto; margin-bottom: 8px; }
.find-game-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px; border-radius: 8px; font-size: 14px;
  background: var(--dark); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
  margin-bottom: 4px; text-align: left;
}
.find-game-btn:hover { border-color: var(--green); color: var(--green); }
.find-game-name { font-weight: 500; }
.find-game-count { font-size: 12px; color: var(--text-muted); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.3s ease-out forwards; opacity: 0; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .results-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .header { padding: 12px 16px; }
  .header-nav .nav-yt { display: none; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .results-grid { grid-template-columns: 1fr; }
  .game-header-title { font-size: 20px; }
}
@media (max-width: 340px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-deep); }
/* === AUTH SYSTEM === */
.user-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.user-btn:hover { border-color: var(--green-deep); color: var(--green); }
.user-btn-avatar {
  width: 24px; height: 24px; border-radius: 6px; background: var(--green-deep);
  color: white; font-size: 13px; font-weight: 600; display: flex;
  align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif;
}
.search-counter {
  display: flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: rgba(49,174,36,0.08); border: 1px solid rgba(49,174,36,0.2);
  border-radius: 6px; font-size: 12px; color: var(--green); font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
}
.search-counter.low { background: rgba(226,75,74,0.08); border-color: rgba(226,75,74,0.2); color: var(--red); }
.auth-box { max-width: 380px; text-align: left; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 10px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-dim); font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-tab:hover { color: var(--text); }.auth-input {
  width: 100%; padding: 11px 14px; border-radius: 8px; font-size: 14px;
  background: var(--dark); color: var(--white); border: 1px solid var(--border);
  font-family: 'Inter', sans-serif; margin-bottom: 10px; outline: none;
  box-sizing: border-box;
}
.auth-input:focus { border-color: var(--green); }
.auth-input::placeholder { color: var(--text-muted); }
.auth-submit {
  width: 100%; padding: 11px; background: var(--green-deep); color: white;
  border: none; border-radius: 8px; cursor: pointer; font-size: 14px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; letter-spacing: 0.03em;
  transition: background 0.2s;
}
.auth-submit:hover { background: var(--green); }
.auth-error {
  background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.2);
  color: var(--red); padding: 8px 12px; border-radius: 6px; font-size: 13px;
  margin-bottom: 12px;
}
.auth-success {
  background: rgba(49,174,36,0.1); border: 1px solid rgba(49,174,36,0.2);
  color: var(--green); padding: 8px 12px; border-radius: 6px; font-size: 13px;
  margin-bottom: 12px;
}
.auth-benefit {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12px; color: var(--text-dim);
}
.auth-form { display: flex; flex-direction: column; }
/* === USER PANEL === */
.user-panel-box { max-width: 360px; text-align: left; }
.user-panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.user-panel-avatar {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-deep);
  color: white; font-size: 20px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif;
}
.user-panel-name { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 600; color: var(--white); }
.user-panel-email { font-size: 13px; color: var(--text-dim); }
.user-panel-info {
  background: var(--dark); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; margin-bottom: 16px;
}
.user-panel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px; color: var(--text-dim);
}
.user-panel-row + .user-panel-row { border-top: 1px solid var(--border); }
.user-plan-badge {
  background: var(--green-deep); color: white; padding: 2px 8px;
  border-radius: 4px; font-size: 12px; font-weight: 600;
}
.user-panel-actions { display: flex; flex-direction: column; gap: 8px; }
.user-panel-btn {
  width: 100%; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--text-dim); border: 1px solid var(--border);
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.user-panel-btn:hover { border-color: var(--green); color: var(--green); }
.user-panel-btn.upgrade { background: var(--green-deep); color: white; border-color: var(--green-deep); }
.user-panel-btn.upgrade:hover { background: var(--green); }
.user-panel-btn.admin-dashboard { color: #4a92e2; border-color: rgba(74,146,226,0.3); }
.user-panel-btn.admin-dashboard:hover { color: #6aa8ed; border-color: #4a92e2; background: rgba(74,146,226,0.08); }
.user-panel-btn.logout { color: var(--text-muted); border-color: var(--border); }
.user-panel-btn.logout:hover { color: var(--red); border-color: rgba(226,75,74,0.3); }

/* === PLANS GRID === */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.plan-card {
  background: var(--dark); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 12px; text-align: center;
}
.plan-card.featured { border-color: var(--green); box-shadow: 0 0 15px rgba(49,174,36,0.1); }
.plan-name { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 600; color: var(--white); }
.plan-price { font-size: 20px; font-weight: 700; color: var(--green); margin: 6px 0; font-family: 'Rajdhani', sans-serif; }
.plan-feat { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.plan-btn {
  width: 100%; padding: 7px; border-radius: 6px; font-size: 12px;
  background: var(--card); color: var(--text-muted); border: 1px solid var(--border);
  cursor: not-allowed; font-family: 'Inter', sans-serif;
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
}
/* === PLANS V2 === */
.plans-toggle { display: flex; gap: 0; margin-bottom: 16px; background: var(--dark); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.period-btn {
  flex: 1; padding: 9px 8px; background: none; border: none;
  color: var(--text-dim); font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s; position: relative;
}
.period-btn.active { background: var(--green-deep); color: white; }
.period-btn:hover:not(.active) { color: var(--text); }
.period-save { font-size: 10px; color: var(--green-light); font-weight: 700; }
.period-btn.active .period-save { color: #aaffaa; }
.plans-2col { grid-template-columns: repeat(2, 1fr) !important; }
.plan-badge-top {
  background: var(--green); color: white; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; display: inline-block; margin-bottom: 8px;
  font-family: 'Rajdhani', sans-serif; letter-spacing: 0.08em;
}
.plan-feat-list { text-align: left; margin: 12px 0; font-size: 12px; color: var(--text-dim); }
.plan-feat-list div { padding: 4px 0; padding-left: 16px; position: relative; }
.plan-feat-list div::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan-btn-buy {
  width: 100%; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--green); border: 1px solid var(--green-deep);
  cursor: pointer; font-family: 'Rajdhani', sans-serif; letter-spacing: 0.03em;
  transition: all 0.2s;
}
.plan-btn-buy:hover { background: var(--green-deep); color: white; }
.plan-btn-buy.ultimate { background: var(--green-deep); color: white; border-color: var(--green); }
.plan-btn-buy.ultimate:hover { background: var(--green); }
/* === REFRESH RESULTS BTN === */
.refresh-results-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
}
.refresh-results-btn:hover { border-color: var(--green); color: var(--green); }
/* === AUTOCOMPLETE === */
.autocomplete-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: var(--card); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 12px 12px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.autocomplete-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 16px; background: none; border: none;
  border-bottom: 1px solid var(--border); color: var(--text);
  font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif;
  text-align: left; transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(49,174,36,0.08); }
.autocomplete-name { font-weight: 500; }
.autocomplete-count { font-size: 12px; color: var(--text-muted); }
/* === FORGOT PASSWORD === */
.auth-forgot {
  background: none; border: none; color: var(--text-muted); font-size: 12px;
  cursor: pointer; padding: 8px 0 0; font-family: 'Inter', sans-serif;
  text-align: center; width: 100%; transition: color 0.2s;
}
.auth-forgot:hover { color: var(--green); }
/* === DELETE ACCOUNT === */
.user-panel-btn.delete {
  color: var(--text-muted); border-color: transparent; font-size: 11px; margin-top: 8px;
  background: transparent;
}
.user-panel-btn.delete:hover { color: var(--red); border-color: rgba(226,75,74,0.2); }
/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.cookie-banner p {
  font-size: 13px; color: var(--text-dim); margin: 0;
  font-family: 'Inter', sans-serif;
}
.cookie-banner a { color: var(--green); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-accept {
  padding: 8px 20px; background: var(--green-deep); color: white;
  border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; white-space: nowrap;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--green); }
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; text-align: center; gap: 10px; padding: 16px; }
}
/* === GDPR CHECKBOX === */
.auth-gdpr {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--text-muted); margin-bottom: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; line-height: 1.3;
}
.auth-gdpr input[type="checkbox"] {
  margin: 0; accent-color: var(--green); cursor: pointer;
  width: 14px; height: 14px; flex-shrink: 0;
}
.auth-gdpr a { color: var(--green); text-decoration: none; }
.auth-gdpr a:hover { text-decoration: underline; }

/* === FOOTER LEGAL LINKS === */
.footer-legal { font-size: 12px; margin-top: 4px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--green); text-decoration: underline; }


/* === PLANS LEGAL INFO (precontractual) === */
.plans-legal-info { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.plans-legal-info p { font-size: 11px; color: var(--text-muted); line-height: 1.5; text-align: center; }
.plans-legal-info a { color: var(--green); text-decoration: none; }
.plans-legal-info a:hover { text-decoration: underline; }


/* === COOKIE BANNER BUTTONS === */
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-reject { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 6px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: 'Inter', sans-serif; }
.cookie-reject:hover { border-color: var(--text-dim); color: var(--text-dim); }


/* === FEEDBACK BUTTON === */
.feedback-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feedback-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(49,174,36,0.4); }
@media (max-width: 600px) { .feedback-btn { bottom: 16px; right: 16px; width: 42px; height: 42px; } }


/* === FEEDBACK POPUP === */
.fb-textarea {
  resize: none; min-height: 120px; max-height: 300px; overflow-y: auto;
  font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5;
  width: 100%;
}
.fb-mic-btn {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; width: 100%;
  font-family: 'Inter', sans-serif; font-size: 13px;
  transition: all 0.2s; margin-top: 6px;
}
.fb-mic-btn:hover { border-color: var(--green); color: var(--green); }
.fb-mic-btn.active {
  background: var(--green); color: #fff; border-color: var(--green);
  animation: fb-pulse 1.5s infinite;
}
.fb-mic-btn.active .fb-mic-label::after { content: '... escuchando'; }
.fb-mic-label { pointer-events: none; }
@keyframes fb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(49,174,36,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(49,174,36,0); }
}


/* === MANAGE SUBSCRIPTION BUTTON === */
.user-panel-btn.manage-sub,
.user-panel-btn.collections,
.user-panel-btn.history {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
}
.user-panel-btn.manage-sub:hover,
.user-panel-btn.collections:hover,
.user-panel-btn.history:hover { border-color: var(--green); color: var(--green); }


/* === PRO BUTTONS ON MOD CARDS === */
.mod-card-pro-actions {
  display: flex; gap: 6px; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.mod-pro-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 500;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
}
.mod-pro-btn:hover { border-color: var(--green); color: var(--green); }
.mod-pro-btn.similar-btn:hover { border-color: #5b9bd5; color: #5b9bd5; }
.mod-pro-btn.save-btn:hover svg { fill: var(--green); stroke: var(--green); }


/* === COLLECTIONS === */
.col-pick-list { max-height: 200px; overflow-y: auto; margin-bottom: 12px; }
.col-pick-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
  font-size: 13px; margin-bottom: 6px; transition: all 0.2s;
}
.col-pick-btn:hover { border-color: var(--green); color: var(--green); }
.col-pick-count { color: var(--text-muted); font-size: 11px; }
.col-new-row { display: flex; gap: 8px; align-items: center; }
.col-new-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--green);
  background: var(--green); color: #fff; font-size: 20px; font-weight: 700;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.col-new-btn:hover { opacity: 0.85; }
.col-list-wrap { margin-bottom: 12px; }
.col-list-item {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.col-list-open {
  flex: 1; text-align: left; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: transparent; color: var(--text);
  cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.col-list-open:hover { border-color: var(--green); color: var(--green); }
.col-list-count { color: var(--text-muted); font-size: 11px; }
.col-list-del {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-size: 14px; transition: all 0.2s; flex-shrink: 0;
}
.col-list-del:hover { border-color: #E24B4A; color: #E24B4A; }


/* === COLLECTION GAME SEPARATORS === */
.col-game-separator {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; margin-top: 16px;
  font-size: 15px; font-weight: 600; color: var(--green);
}
.col-game-separator:first-child { margin-top: 0; }
.col-game-count { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.col-game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; grid-column: 1 / -1; margin-bottom: 8px;
}
/* === COLLECTION MIC BUTTON === */
.col-mic-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.col-mic-btn:hover { border-color: var(--green); color: var(--green); }


/* === PRO FILTERS === */
.pro-filters { margin-bottom: 16px; }
.pro-filters.hidden { display: none; }
.pro-filters-row {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border);
}
.pro-filter-group { display: flex; flex-direction: column; gap: 3px; }
.pro-filter-group label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); font-weight: 600;
}
.pro-filter-group select {
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: #1a1d1a; color: var(--text); font-size: 12px;
  cursor: pointer; min-width: 110px;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 28px;
}
.pro-filter-group select:focus { border-color: var(--green); outline: none; }
.pro-filter-group select option {
  background: #1a1d1a; color: var(--text); padding: 4px;
}
.pro-filter-apply {
  padding: 6px 16px; border-radius: 6px; border: none;
  background: var(--green); color: #fff; font-size: 12px;
  font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.pro-filter-apply:hover { opacity: 0.85; }
.pro-filter-clear {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 12px;
  cursor: pointer; transition: all 0.2s;
}
.pro-filter-clear:hover { border-color: var(--text-dim); color: var(--text-dim); }
@media (max-width: 600px) {
  .pro-filters-row { gap: 8px; }
  .pro-filter-group select { min-width: 90px; font-size: 11px; }
}


/* === HISTORY === */
.hist-list { max-height: 400px; overflow-y: auto; }
.hist-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.hist-item:last-child { border-bottom: none; }
.hist-query { flex: 1; color: var(--text); font-weight: 500; }
.hist-game { color: var(--green); font-size: 11px; white-space: nowrap; }
.hist-time { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
/* === NO REPEAT TOGGLE === */
.pro-filter-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; color: var(--text-dim); white-space: nowrap;
  user-select: none; padding: 0 4px;
}
.pro-filter-toggle input[type="checkbox"] {
  accent-color: var(--green); width: 14px; height: 14px; cursor: pointer;
}


/* === ALERTS BELL === */
.alerts-btn { position: relative; }
.alerts-btn.hidden { display: none; }
.alerts-badge {
  position: absolute; top: -4px; right: -4px;
  background: #e24b4a; color: white; font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.alerts-badge.hidden { display: none; }
/* === ALERTS PANEL === */
.alerts-list { max-height: 400px; overflow-y: auto; }
.alert-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.alert-item:last-child { border-bottom: none; }
.alert-item.has-update { background: rgba(49,174,36,0.05); border-radius: 6px; padding: 10px 8px; }
.alert-mod-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.alert-item-info { flex: 1; min-width: 0; }
.alert-item-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-item-game { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.alert-update-badge {
  font-size: 10px; background: var(--green); color: white; padding: 1px 6px;
  border-radius: 4px; font-weight: 600; margin-left: 6px;
}
.alert-unfollow {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-size: 13px; flex-shrink: 0; transition: all 0.2s;
}
.alert-unfollow:hover { border-color: #e24b4a; color: #e24b4a; }
.user-panel-btn.alerts-panel { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.user-panel-btn.alerts-panel:hover { border-color: var(--green); color: var(--green); }
/* === FOLLOW BTN STATE === */
.mod-pro-btn.follow-btn:hover { border-color: #f0ad4e; color: #f0ad4e; }


/* === ANIMATED BACKGROUND COVERS === */
.bg-covers {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; overflow: hidden; pointer-events: none;
  display: flex; gap: 8px; padding: 0 2%;
  filter: blur(6px);
  opacity: 0.07;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%);
}
.bg-col {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
  animation: bgScroll linear infinite;
}
.bg-cover-img {
  width: 100%; aspect-ratio: 460/215; border-radius: 6px;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
@keyframes bgScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
/* Ensure content stays above */
.header { position: relative; z-index: 10; }
.main { position: relative; z-index: 5; }
footer { position: relative; z-index: 5; }
.cookie-banner { z-index: 1000; }
.game-question-overlay { z-index: 1100; }
@media (max-width: 768px) {
  .bg-covers { display: flex; gap: 4px; opacity: 0.05; }
  .bg-col:nth-child(n+5) { display: none; }
}
@media (max-width: 480px) {
  .bg-col:nth-child(n+4) { display: none; }
}


/* ================================================================
   MOTION-FIRST DESIGN SYSTEM — BuscaMods IMS
   Physics-based animations, scroll-bound transforms, ambient pulse
   ================================================================ */

/* === SPRING EASINGS (physics-based, not linear) === */
:root {
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

/* === AMBIENT PULSE — site feels alive even when idle === */
@keyframes ambientGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(49,174,36,0.08), 0 0 30px rgba(49,174,36,0.02); }
  50% { box-shadow: 0 0 0 1px rgba(49,174,36,0.15), 0 0 40px rgba(49,174,36,0.05); }
}
@keyframes ambientFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
@keyframes ambientPulseGreen {
  0%, 100% { text-shadow: 0 0 10px rgba(49,174,36,0.3); }
  50% { text-shadow: 0 0 20px rgba(49,174,36,0.5), 0 0 40px rgba(49,174,36,0.15); }
}

/* Hero title ambient breathing */
.hero-title span {
  animation: ambientPulseGreen 4s ease-in-out infinite;
}

/* Search bar ambient glow */
.search-bar {
  animation: ambientGlow 5s ease-in-out infinite;
}

/* Logo ambient float */
.logo-icon {
  animation: ambientFloat 6s ease-in-out infinite;
}

/* === SCROLL-REVEAL SYSTEM (Intersection Observer driven) === */
.motion-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s var(--spring-soft), transform 0.7s var(--spring-bounce);
}
.motion-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children delays */
.motion-stagger > .motion-reveal:nth-child(1) { transition-delay: 0s; }
.motion-stagger > .motion-reveal:nth-child(2) { transition-delay: 0.06s; }
.motion-stagger > .motion-reveal:nth-child(3) { transition-delay: 0.12s; }
.motion-stagger > .motion-reveal:nth-child(4) { transition-delay: 0.18s; }
.motion-stagger > .motion-reveal:nth-child(5) { transition-delay: 0.24s; }
.motion-stagger > .motion-reveal:nth-child(6) { transition-delay: 0.3s; }
.motion-stagger > .motion-reveal:nth-child(7) { transition-delay: 0.36s; }
.motion-stagger > .motion-reveal:nth-child(8) { transition-delay: 0.42s; }
.motion-stagger > .motion-reveal:nth-child(9) { transition-delay: 0.48s; }
.motion-stagger > .motion-reveal:nth-child(10) { transition-delay: 0.54s; }

/* === GAME CARDS — Spring hover with depth === */
.game-card {
  transition: transform 0.4s var(--spring-bounce), border-color 0.3s ease, box-shadow 0.4s var(--spring-soft);
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(49,174,36,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 15px rgba(49,174,36,0.08);
}
.game-card:active {
  transform: translateY(-2px) scale(0.98);
  transition: transform 0.1s ease;
}

/* === MOD CARDS — Spring physics === */
.mod-card {
  transition: transform 0.4s var(--spring-bounce), border-color 0.3s ease, box-shadow 0.4s var(--spring-soft);
}
.mod-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(49,174,36,0.3);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 12px rgba(49,174,36,0.06);
}

/* Fade-up with spring overshoot */
@keyframes fadeUpSpring {
  0% { opacity: 0; transform: translateY(24px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.mod-card.fade-up {
  animation: fadeUpSpring 0.6s var(--spring-soft) forwards;
  opacity: 0;
}

/* === CATEGORY BUTTONS — Reactive hover with spring === */
.cat-btn {
  transition: transform 0.3s var(--spring-bounce), background 0.2s ease,
              border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}
.cat-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cat-btn:active {
  transform: translateY(0) scale(0.96);
  transition: transform 0.1s ease;
}
.cat-btn.active {
  box-shadow: 0 0 12px rgba(49,174,36,0.2);
}

/* === BUTTONS — Global spring interaction === */
.search-submit-btn {
  transition: transform 0.3s var(--spring-bounce), background 0.2s ease, box-shadow 0.3s ease;
}
.search-submit-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 15px rgba(49,174,36,0.25);
}
.search-submit-btn:active {
  transform: scale(0.95);
  transition: transform 0.08s ease;
}

.header-btn {
  transition: transform 0.3s var(--spring-bounce), border-color 0.2s ease, color 0.2s ease;
}
.header-btn:hover { transform: scale(1.1); }
.header-btn:active { transform: scale(0.9); transition: transform 0.08s ease; }

.user-btn {
  transition: transform 0.3s var(--spring-bounce), border-color 0.2s ease;
}
.user-btn:hover { transform: scale(1.08); }

.back-btn {
  transition: transform 0.3s var(--spring-bounce), border-color 0.2s ease,
              color 0.2s ease, background 0.2s ease;
}
.back-btn:hover { transform: translateX(-3px); }

/* === PRO BUTTONS — Micro spring === */
.mod-pro-btn {
  transition: transform 0.25s var(--spring-bounce), border-color 0.2s ease, color 0.2s ease;
}
.mod-pro-btn:hover { transform: scale(1.06); }
.mod-pro-btn:active { transform: scale(0.94); transition: transform 0.08s ease; }

/* === SORT BUTTONS === */
.sort-btn {
  transition: transform 0.25s var(--spring-bounce), background 0.2s ease,
              border-color 0.2s ease, color 0.2s ease;
}
.sort-btn:hover { transform: scale(1.05); }

/* === SEARCH BAR — Focus spring expansion === */
.search-bar {
  transition: box-shadow 0.4s var(--spring-soft), transform 0.3s var(--spring-soft);
}
.search-bar:focus-within {
  transform: scale(1.01);
  box-shadow: 0 0 0 1px rgba(49,174,36,0.4), 0 0 30px rgba(49,174,36,0.1), 0 8px 25px rgba(0,0,0,0.3);
  animation: none;
}

/* === CTA BANNER — Breathing border === */
@keyframes ctaPulse {
  0%, 100% { border-color: var(--border-light); }
  50% { border-color: rgba(49,174,36,0.3); }
}
.cta-banner {
  animation: ctaPulse 4s ease-in-out infinite;
  transition: transform 0.4s var(--spring-bounce), background 0.3s ease;
}
.cta-banner:hover {
  transform: scale(1.01);
  animation: none;
  border-color: var(--green-deep);
}

/* === AI NOTE — Slide in from left === */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  60% { opacity: 1; transform: translateX(3px); }
  100% { opacity: 1; transform: translateX(0); }
}
.ai-note { animation: slideInLeft 0.5s var(--spring-soft) forwards; }

/* === POPUPS / OVERLAYS — Scale spring entry === */
@keyframes popupSpring {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  60% { opacity: 1; transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.game-question-overlay {
  animation: overlayFadeIn 0.25s ease forwards;
}
@keyframes overlayFadeIn {
  0% { background: rgba(0,0,0,0); }
  100% { background: rgba(0,0,0,0.7); }
}
.game-question-box,
.auth-box {
  animation: popupSpring 0.4s var(--spring-bounce) forwards;
}

/* === GAME HEADER — Entry animation === */
@keyframes gameHeaderIn {
  0% { opacity: 0; transform: translateY(-10px); }
  60% { opacity: 1; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}
.game-header { animation: gameHeaderIn 0.5s var(--spring-soft) forwards; }

/* === LOADING DOTS — Spring bounce === */
@keyframes loadBounce {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}
.loading-dots span {
  animation: loadBounce 1.2s var(--spring-bounce) infinite;
}

/* === BADGE REVIEW — Subtle float === */
.badge-review {
  transition: transform 0.3s var(--spring-bounce), box-shadow 0.3s ease;
}
.badge-review:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(49,174,36,0.3);
}

/* === FOOTER — Subtle reveal on scroll === */
footer {
  opacity: 0;
  animation: fadeUpSpring 0.8s var(--spring-soft) 0.5s forwards;
}

/* === FILTER BAR — Slide down spring === */
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  60% { opacity: 1; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}
.pro-filters { animation: slideDown 0.4s var(--spring-soft) forwards; }

/* === ALERTS BADGE — Pop in === */
@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.alerts-badge:not(.hidden) {
  animation: badgePop 0.4s var(--spring-bounce) forwards;
}

/* === SCROLL PROGRESS INDICATOR (ambient) === */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--green-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* === REDUCED MOTION — Respect user preference === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg-covers { display: none; }
}

/* === PROMO BANNER === */
.promo-banner { width:100%; max-width:700px; margin:0 auto 18px; }
.promo-banner.hidden { display:none; }
.promo-banner-content {
  display:flex; align-items:center; gap:14px; padding:14px 18px;
  background:linear-gradient(135deg, rgba(49,174,36,0.15), rgba(49,174,36,0.05));
  border:1px solid rgba(49,174,36,0.4); border-radius:12px;
  position:relative;
}
.promo-banner-icon { font-size:28px; flex-shrink:0; }
.promo-banner-text { flex:1; font-size:14px; color:#ccc; line-height:1.4; }
.promo-banner-text strong { display:block; color:#fff; font-size:15px; margin-bottom:2px; }
.promo-banner-btn {
  flex-shrink:0; padding:8px 18px; background:#31ae24; color:#fff;
  border:none; border-radius:8px; font-weight:600; font-size:13px;
  cursor:pointer; transition:background 0.2s;
}
.promo-banner-btn:hover { background:#28991e; }
.promo-banner-close {
  position:absolute; top:6px; right:8px; background:none; border:none;
  color:#666; font-size:14px; cursor:pointer; padding:4px;
}
.promo-banner-close:hover { color:#fff; }

/* === PROMO BANNER RESPONSIVE === */
@media (max-width:600px) {
  .promo-banner-content { flex-wrap:wrap; gap:10px; padding:12px 14px; }
  .promo-banner-icon { display:none; }
  .promo-banner-btn { width:100%; text-align:center; }
}

/* === TRIAL OFFER POPUP === */
.trial-offer-box { text-align:center; max-width:420px; }
.trial-offer-price { font-size:36px; font-weight:700; color:#31ae24; margin:12px 0 4px; }
.trial-offer-original { font-size:14px; color:#666; text-decoration:line-through; margin-bottom:8px; }
.trial-offer-timer { font-size:13px; color:#E24B4A; font-weight:600; margin:8px 0 16px; }
.trial-offer-btn {
  width:100%; padding:14px; background:#31ae24; color:#fff; border:none;
  border-radius:10px; font-size:16px; font-weight:700; cursor:pointer;
  transition:background 0.2s, transform 0.1s;
}
.trial-offer-btn:hover { background:#28991e; transform:scale(1.02); }
.trial-offer-skip { background:none; border:none; color:#666; font-size:12px; margin-top:12px; cursor:pointer; }
.trial-offer-skip:hover { color:#999; }

/* === DOWNLOAD PACK POPUP === */
.pack-download-box { text-align:center; max-width:440px; }
.pack-download-instructions { text-align:left; font-size:13px; color:#bbb; line-height:1.6; margin:12px 0; padding:12px; background:rgba(255,255,255,0.05); border-radius:8px; }
.pack-download-instructions ol { margin:0; padding-left:20px; }
.pack-download-btn {
  display:inline-flex; align-items:center; gap:8px; padding:12px 28px;
  background:#31ae24; color:#fff; border:none; border-radius:10px;
  font-size:15px; font-weight:600; cursor:pointer; text-decoration:none;
  transition:background 0.2s;
}
.pack-download-btn:hover { background:#28991e; }

/* === TRIAL DAYS COUNTER === */
.trial-days-left { color:#31ae24; font-weight:600; }
.user-panel-btn.pack-download { background:rgba(49,174,36,0.15); border:1px solid rgba(49,174,36,0.4); color:#31ae24; }
.user-panel-btn.pack-download:hover { background:rgba(49,174,36,0.25); }


/* === CUSTOMIZE GAMES BUTTON === */
.customize-games-btn {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(49,174,36,0.1); border:1px solid rgba(49,174,36,0.3);
  color:#31ae24; padding:6px 14px; border-radius:20px;
  font-size:0.8rem; font-family:Inter,sans-serif; cursor:pointer;
  transition:all 0.2s; margin-left:12px;
}
.customize-games-btn:hover {
  background:rgba(49,174,36,0.2); border-color:#31ae24;
}
/* Customize overlay */
.popup-overlay {
  position:fixed; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,0.7); display:flex; align-items:center;
  justify-content:center; z-index:1000; backdrop-filter:blur(4px);
}
/* Customize popup scrollbar */
.customize-popup::-webkit-scrollbar { width:6px; }
.customize-popup::-webkit-scrollbar-track { background:#1a1d1a; }
.customize-popup::-webkit-scrollbar-thumb { background:#31ae24; border-radius:3px; }


/* ============================================================
   MOD CARD EXPANDIDA — Vista detallada in-place
   ============================================================ */

/* La card normal vuelve interactiva el área de click */
.mod-card { cursor: pointer; }
.mod-card .mod-link,
.mod-card .mod-pro-btn { cursor: pointer; }

/* Cuando se expande: ocupa todo el ancho del grid */
.mod-card.expanded {
  grid-column: 1 / -1;
  cursor: default;
  border-color: rgba(49,174,36,0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.mod-card.expanded:hover { transform: none; }

/* Contenedor del contenido expandido */
.mod-expanded-content {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--darker);
  animation: expandFade 0.35s var(--spring-soft) both;
}
@keyframes expandFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header del bloque expandido (botón cerrar) */
.mod-expanded-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.mod-expanded-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}
.mod-expanded-close:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--white);
  color: var(--white);
}

/* Imagen principal grande */
.mod-expanded-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #000;
}

/* Galería de imágenes secundarias */
.mod-expanded-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.mod-expanded-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.mod-expanded-gallery img:hover { transform: scale(1.03); }

/* Vídeos */
.mod-expanded-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.mod-expanded-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.mod-expanded-video iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* Descripción HTML */
.mod-expanded-description {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  word-wrap: break-word;
}
.mod-expanded-description p { margin: 0 0 10px 0; }
.mod-expanded-description strong { color: var(--white); }
.mod-expanded-description em { font-style: italic; }
.mod-expanded-description ul,
.mod-expanded-description ol {
  margin: 8px 0 12px 22px;
  padding: 0;
}
.mod-expanded-description li { margin-bottom: 4px; }
.mod-expanded-description a {
  color: #31ae24;
  text-decoration: none;
  border-bottom: 1px dotted rgba(49,174,36,0.5);
}
.mod-expanded-description a:hover { border-bottom-style: solid; }
.mod-expanded-description h2,
.mod-expanded-description h3,
.mod-expanded-description h4 {
  color: var(--white);
  margin: 14px 0 8px 0;
  font-family: 'Rajdhani', sans-serif;
}

/* Botón "Ver en Nexus" del bloque expandido */
.mod-expanded-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mod-expanded-actions a {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0e5733, #31ae24);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s var(--spring-bounce), box-shadow 0.2s ease;
}
.mod-expanded-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(49,174,36,0.3);
}

/* Estados de carga y error */
.mod-expanded-loading,
.mod-expanded-error {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-dim);
  font-size: 14px;
}
.mod-expanded-loading::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 10px;
  border: 2px solid var(--border);
  border-top-color: #31ae24;
  border-radius: 50%;
  animation: spinExp 0.8s linear infinite;
  vertical-align: -3px;
}
@keyframes spinExp { to { transform: rotate(360deg); } }

/* Lightbox de imágenes de galería */
.mod-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  padding: 20px;
  cursor: zoom-out;
}
.mod-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Mobile: ajustes */
@media (max-width: 700px) {
  .mod-expanded-content { padding: 14px; }
  .mod-expanded-hero { max-height: 260px; }
  .mod-expanded-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .mod-expanded-gallery img { height: 100px; }
  .mod-expanded-videos {
    grid-template-columns: 1fr;
  }
  .mod-expanded-actions a { min-width: 100%; }
}


/* ============================================================
   CONTENIDO SEO / GEO (sección semántica estática)
   ============================================================ */
.seo-content {
  max-width: 900px;
  margin: 60px auto 20px;
  padding: 0 20px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
}
.seo-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
  letter-spacing: 0.5px;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin: 18px 0 6px;
}
.seo-content p { margin: 0 0 14px; }
.seo-content strong { color: #e8e8e8; font-weight: 600; }
.seo-content em { color: #31ae24; font-style: normal; }
.seo-faq h3 {
  position: relative;
  padding-left: 18px;
}
.seo-faq h3::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #31ae24;
}
@media (max-width: 700px) {
  .seo-content { margin-top: 40px; font-size: 14px; }
  .seo-content h2 { font-size: 21px; }
}


/* ============================================================
   SELECTOR DE VERSIÓN DEL JUEGO
   ============================================================ */
.version-filter {
  background: #15171a;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  margin-right: 8px;
  transition: border-color 0.2s ease;
}
.version-filter:hover,
.version-filter:focus {
  border-color: #31ae24;
  color: var(--white);
  outline: none;
}

/* Badge de versión en la card (esquina inferior derecha de la imagen) */
.version-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(10, 15, 12, 0.85);
  border: 1px solid rgba(49, 174, 36, 0.55);
  color: #31ae24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Separadores del filtro suave */
.version-separator {
  grid-column: 1 / -1;
  color: #7a8a7e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 18px 4px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .version-filter { font-size: 12px; padding: 5px 8px; }
}
