*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0e14;
  color: #e2e8f0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img.flag { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }
img.flag-sm { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }

/* Instant tooltip */
.flag-tooltip { position: relative; cursor: pointer; }
.flag-tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 8px; background: #1e2736; color: #e2e8f0; font-size: 11px; font-weight: 500; white-space: nowrap; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0.1s; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.flag-tooltip:hover::after { opacity: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f1219; }
::-webkit-scrollbar-thumb { background: #2a3348; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b4a66; }

/* ===== NAV ===== */
.nav { background: rgba(13,17,25,0.85); border-bottom: 1px solid #1e2736; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 12px; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.nav-logo-img { height: 44px; width: auto; object-fit: contain; }
.nav-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #06b6d4, #8b5cf6); border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px rgba(6,182,212,0.3); }
.nav-logo-icon span { color: #fff; font-weight: 700; font-size: 12px; }
.nav-logo-text { font-size: 18px; font-weight: 700; color: #f1f5f9; }
.nav-links { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; justify-content: center; flex-wrap: nowrap; }
.nav-link-btn {
  display: flex; align-items: center; gap: 3px; padding: 6px 8px;
  font-size: 13px; font-weight: 500; color: #8896b0; background: none; border: none;
  border-radius: 6px; cursor: pointer; transition: all 0.15s; text-decoration: none; white-space: nowrap;
}
.nav-link-btn .nav-link-icon { display: none; }
.nav-link-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.nav-link-btn.active { color: #22d3ee; }
.nav-link-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-link { position: relative; padding-bottom: 8px; margin-bottom: -8px; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #141a26; border: 1px solid #1e2d42; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(6,182,212,0.05); padding: 6px; z-index: 100;
  animation: dropIn 0.15s ease-out; max-height: 400px; overflow-y: auto;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  font-size: 13px; color: #c0cde0; border-radius: 8px; cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.nav-dropdown-item:hover { background: rgba(6,182,212,0.08); color: #e2e8f0; }
.nav-dropdown-item .dd-icon { width: 36px; height: 24px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #1a2235; display:flex; align-items:center; justify-content:center; font-size:12px; }
.nav-dropdown-item .dd-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-dropdown-item.dd-game .dd-icon { width: 64px; height: 30px; border-radius: 4px; }
.nav-dropdown-item .dd-label { font-weight: 500; }
.nav-compare-btn {
  padding: 8px 16px; background: linear-gradient(135deg, #06b6d4, #8b5cf6); color: #fff; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(6,182,212,0.2); white-space: nowrap;
}
.nav-compare-btn:hover { box-shadow: 0 0 20px rgba(6,182,212,0.4); transform: translateY(-1px); }
.nav-hamburger { display: none; padding: 8px; background: none; border: none; cursor: pointer; color: #8896b0; }
.nav-hamburger svg { width: 24px; height: 24px; }
.mobile-menu { display: none; background: #111827; border-bottom: 1px solid #1e2736; padding: 12px 16px; }
.mobile-menu.open { display: block; }
.mobile-menu-item { display: block; padding: 10px 12px; font-size: 15px; color: #c0cde0; border-radius: 8px; cursor: pointer; text-decoration: none; }
.mobile-menu-item:hover { background: rgba(6,182,212,0.08); }
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-compare-btn.desktop { display: none; }
  .nav-hamburger { display: block; }
}

/* ===== HERO ===== */
.hero { background: linear-gradient(180deg, #0d1119 0%, #0b0e14 100%); border-bottom: 1px solid #1a2235; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(6,182,212,0.08), rgba(139,92,246,0.05) 40%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; opacity: 0.5; }
.hero-inner { max-width: 72rem; margin: 0 auto; padding: 64px 1rem 72px; text-align: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,0.1); color: #22d3ee; font-size: 14px; font-weight: 500;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 24px;
  border: 1px solid rgba(6,182,212,0.2);
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: #f1f5f9; letter-spacing: -1px; line-height: 1.15; text-wrap: balance; }
.hero h1 .accent { background: linear-gradient(135deg, #22d3ee, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { margin-top: 24px; font-size: 18px; color: #7a8ba8; line-height: 1.6; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6); color: #fff; padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
  box-shadow: 0 2px 16px rgba(6,182,212,0.25);
}
.btn-primary:hover { box-shadow: 0 4px 24px rgba(6,182,212,0.4); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); color: #c0cde0; padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; border: 1px solid #2a3348; cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: #3b4a66; color: #f1f5f9; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: #0b0e14; border-bottom: 1px solid #1a2235; }
.hiw-inner { max-width: 72rem; margin: 0 auto; padding: 56px 1rem 48px; }
.hiw-header { text-align: center; margin-bottom: 40px; }
.hiw-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: #f1f5f9; margin-bottom: 12px; }
.hiw-subtitle { font-size: 16px; color: #7a8ba8; line-height: 1.6; max-width: 600px; margin: 0 auto; }
.hiw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hiw-card {
  background: #111827; border: 1px solid #1e2d42; border-radius: 14px;
  padding: 28px 22px; transition: all 0.25s;
}
.hiw-card:hover { border-color: rgba(6,182,212,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 16px rgba(6,182,212,0.04); transform: translateY(-2px); }
.hiw-card-icon { font-size: 28px; margin-bottom: 14px; }
.hiw-card-title { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.hiw-card-desc { font-size: 13px; color: #7a8ba8; line-height: 1.6; }
@media (max-width: 1024px) { .hiw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hiw-grid { grid-template-columns: 1fr; } }

/* ===== STATS BAR ===== */
.stats-bar { background: rgba(15,18,25,0.6); border-bottom: 1px solid #1a2235; }
.stats-inner { max-width: 72rem; margin: 0 auto; padding: 24px 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: #22d3ee; }
.stat-label { font-size: 14px; color: #5a6a84; margin-top: 2px; }
@media (max-width: 640px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }

/* ===== CATEGORY SECTIONS ===== */
.categories { max-width: 72rem; margin: 0 auto; padding: 48px 1rem; }
.cat-section { margin-bottom: 48px; }
.cat-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-section-left { display: flex; align-items: center; gap: 10px; }
.cat-section-title { font-size: 18px; font-weight: 700; color: #f1f5f9; }
.cat-section-count { font-size: 14px; color: #5a6a84; }
.cat-view-all { font-size: 13px; color: #22d3ee; font-weight: 500; text-decoration: none; transition: color 0.15s; display: flex; align-items: center; gap: 4px; }
.cat-view-all:hover { color: #a78bfa; }
.cat-view-all svg { width: 14px; height: 14px; }

/* ===== GAME CARDS ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 720px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  background: #111827; border: 1px solid #1e2d42; border-radius: 16px;
  cursor: pointer; transition: all 0.25s; position: relative;
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
}
.game-card:hover { border-color: rgba(6,182,212,0.4); box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 20px rgba(6,182,212,0.06); transform: translateY(-2px); }
.gc-image-wrap { width: 100%; height: 150px; overflow: hidden; position: relative; background: #0d1117; }
.gc-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.game-card:hover .gc-image { transform: scale(1.05); }
.gc-image-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(139,92,246,0.1)); }
.gc-body { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.gc-title { font-size: 16px; font-weight: 700; color: #f1f5f9; flex: 1; }
.gc-arrow { color: #3b4a66; transition: all 0.25s; flex-shrink: 0; margin-top: 2px; }
.game-card:hover .gc-arrow { transform: translateX(3px); color: #22d3ee; }
.gc-desc { font-size: 13px; color: #5a6a84; margin-top: 2px; line-height: 1.4; }
.gc-prices { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gc-price-row { display: flex; align-items: center; gap: 8px; }
.gc-price-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; width: 90px; flex-shrink: 0; }
.gc-price-label.cheapest { color: #34d399; }
.gc-price-label.expensive { color: #f87171; }
.gc-price-value { font-size: 13px; font-weight: 600; color: #c0cde0; }
.gc-price-value.cheapest { color: #34d399; }
.gc-price-value.expensive { color: #f87171; }
.gc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid #1a2235; }
.gc-platforms { display: flex; gap: 4px; }
.gc-plat-dot { width: 8px; height: 8px; border-radius: 50%; }
.gc-regions { font-size: 12px; color: #4a5a74; }
.gc-savings { font-size: 12px; font-weight: 600; color: #34d399; }

/* ===== DETAIL PAGE ===== */
.detail-page { max-width: 72rem; margin: 0 auto; padding: 32px 1rem 64px; }
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: #5a6a84; cursor: pointer; margin-bottom: 24px;
  padding: 6px 12px; border-radius: 8px; transition: all 0.15s; border: none; background: none; text-decoration: none;
}
.detail-back:hover { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.detail-back svg { width: 16px; height: 16px; }
.detail-banner { width: 100%; height: 260px; border-radius: 16px; overflow: hidden; margin-bottom: 28px; position: relative; background: #111827; border: 1px solid #1e2d42; }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; filter: blur(8px) brightness(0.65) saturate(1.2); transform: scale(1.08); }
.detail-banner-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.15)); }
.detail-banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: linear-gradient(to top, rgba(11,14,20,0.9) 0%, rgba(11,14,20,0.4) 50%, rgba(11,14,20,0.2) 100%); }
@media (max-width: 640px) { .detail-banner { height: 160px; } }
.detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 200px; }
.detail-title { font-size: 28px; font-weight: 700; color: #f1f5f9; }
.h1-subtitle { display: block; font-size: 13px; font-weight: 400; color: #5a6a84; margin-top: 2px; }
.detail-platforms { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.detail-plat-tag { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.3px; }
.detail-about { background: #111827; border: 1px solid #1e2d42; border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.detail-about-title { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.detail-about-text { font-size: 14px; color: #8896b0; line-height: 1.7; }

/* Currency Picker */
.currency-picker { position: relative; }
.currency-picker-btn {
  display: flex; align-items: center; gap: 5px; padding: 5px 10px;
  background: #111827; border: 1px solid #1e2d42; border-radius: 6px;
  color: #e2e8f0; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.currency-picker-btn:hover { border-color: #2a3d5c; background: #151d2e; }
.currency-picker-dropdown {
  position: absolute; top: calc(100% + 3px); left: 0; min-width: 110px;
  background: #141a26; border: 1px solid #1e2d42; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); padding: 3px; z-index: 100;
}
.currency-picker-item {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 10px;
  background: none; border: none; color: #c0cde0; font-size: 12px; font-weight: 500;
  border-radius: 5px; cursor: pointer; transition: all 0.15s; text-align: left;
}
.currency-picker-item:hover { background: rgba(6,182,212,0.08); color: #e2e8f0; }
.currency-picker-item.active { color: #22d3ee; background: rgba(6,182,212,0.12); }

/* Screenshots */
.detail-screenshots { background: #111827; border: 1px solid #1e2d42; border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.screenshots-grid { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth; }
.screenshots-grid::-webkit-scrollbar { height: 6px; }
.screenshots-grid::-webkit-scrollbar-track { background: transparent; }
.screenshots-grid::-webkit-scrollbar-thumb { background: #2a3348; border-radius: 3px; }
.screenshot-thumb { border-radius: 8px; overflow: hidden; cursor: pointer; flex-shrink: 0; width: 180px; aspect-ratio: 16/9; background: #0b0e14; }
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s, opacity 0.2s; display: block; }
.screenshot-thumb:hover img { transform: scale(1.05); opacity: 0.85; }
.screenshot-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.screenshot-lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.screenshot-lightbox-inner img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; display: block; }
.screenshot-close { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; background: #1e2736; border: 1px solid #2a3348; color: #e2e8f0; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.screenshot-close:hover { background: #2a3348; }
.screenshot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(30,39,54,0.8); border: 1px solid #2a3348; color: #e2e8f0; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.screenshot-nav:hover { background: rgba(42,51,72,0.9); }
.screenshot-prev { left: -52px; }
.screenshot-next { right: -52px; }
.screenshot-counter { text-align: center; margin-top: 10px; font-size: 13px; color: #8896b0; }
@media (max-width: 768px) {
  .screenshot-thumb { width: 140px; }
  .screenshot-prev { left: 8px; }
  .screenshot-next { right: 8px; }
}

.detail-stats { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.detail-stat { text-align: center; }
.detail-stat-val { font-size: 22px; font-weight: 700; }
.detail-stat-val.green { color: #34d399; }
.detail-stat-val.red { color: #f87171; }
.detail-stat-label { font-size: 12px; color: #4a5a74; margin-top: 2px; }

/* Filter bar */
.filter-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-bar.right { justify-content: flex-end; }
.filter-chip {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #1e2d42; background: #111827;
  font-size: 13px; font-weight: 500; color: #8896b0; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.filter-chip:hover { border-color: rgba(6,182,212,0.3); color: #e2e8f0; }
.filter-chip.active { background: #06b6d4; color: #fff; border-color: #06b6d4; }
.filter-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.currency-sel {
  padding: 6px 12px; border: 1px solid #1e2d42; border-radius: 8px; background: #111827;
  font-size: 13px; color: #c0cde0; cursor: pointer; outline: none; font-family: inherit; margin-left: auto;
}

/* ===== PRICE TABLE ===== */
.price-table-wrap { background: #111827; border: 1px solid #1e2d42; border-radius: 16px; overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: #4a5a74;
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #1e2d42;
  cursor: pointer; white-space: nowrap; user-select: none; transition: color 0.15s; background: rgba(15,18,25,0.5);
}
.ptable th:hover { color: #c0cde0; }
.ptable th.sorted { color: #22d3ee; }
.ptable td { padding: 12px 16px; border-bottom: 1px solid #161f2e; white-space: nowrap; }
.ptable tr:last-child td { border-bottom: none; }
.ptable tr:hover td { background: rgba(6,182,212,0.03); }
.sort-arrow { margin-left: 4px; font-size: 10px; }
.rank-col { width: 32px; text-align: center; padding-left: 8px; padding-right: 0; }
.region-cell { display: flex; align-items: center; gap: 8px; }
.region-rank { font-size: 12px; font-weight: 600; color: #5a6a84; }
.region-flag { font-size: 18px; line-height: 1; }
.region-name { font-weight: 500; color: #e2e8f0; }
.price-local { font-size: 13px; color: #4a5a74; }
.price-converted { font-weight: 600; color: #c0cde0; padding: 2px 8px; }
.price-cheapest { font-weight: 600; color: #34d399; background: rgba(52,211,153,0.1); padding: 2px 8px; border-radius: 4px; }
.price-expensive { font-weight: 600; color: #f87171; background: rgba(248,113,113,0.1); padding: 2px 8px; border-radius: 4px; }
.savings-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.savings-positive { background: rgba(52,211,153,0.1); color: #34d399; }
.savings-negative { background: rgba(248,113,113,0.1); color: #f87171; }
.savings-neutral { background: rgba(250,204,21,0.1); color: #facc15; }
.price-bar-wrap { width: 80px; height: 6px; background: #1a2235; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 8px; }
.price-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

/* Visual bars */
.visual-bars { padding: 8px 20px 20px; }
.vbar-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.vbar-label { width: 150px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 500; color: #8896b0; }
.vbar-track { flex: 1; height: 28px; background: #1a2235; border-radius: 6px; overflow: hidden; }
.vbar-fill {
  height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 10px;
  font-size: 12px; font-weight: 600; color: #fff; transition: width 0.6s ease; min-width: fit-content;
}

/* Tab bar */
.tab-bar { display: flex; gap: 2px; background: #0f1219; border-radius: 10px; padding: 3px; margin: 20px 0 0; }
.tab-btn {
  flex: 1; padding: 8px 16px; border: none; background: transparent; color: #5a6a84;
  font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 8px; font-family: inherit; transition: all 0.15s;
}
.tab-btn:hover { color: #c0cde0; }
.tab-btn.active { background: linear-gradient(135deg, #06b6d4, #8b5cf6); color: #fff; }
.table-scroll { overflow-x: auto; }
.no-price { color: #2a3348; font-style: italic; font-size: 13px; }

/* Legend */
.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px 20px 4px; font-size: 12px; color: #4a5a74; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 4px; vertical-align: middle; }

/* ===== SEARCH ===== */
.search-wrap { position: relative; flex: 1; max-width: 400px; }
.search-input {
  width: 100%; padding: 8px 12px 8px 36px; border: 1px solid #1e2d42; border-radius: 8px;
  font-size: 14px; color: #e2e8f0; outline: none; background: #111827; font-family: inherit; transition: border-color 0.15s;
}
.search-input:focus { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,0.15); }
.search-input::placeholder { color: #4a5a74; }
.search-icon-wrap { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #4a5a74; pointer-events: none; }
.search-icon-wrap svg { width: 16px; height: 16px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  padding: 8px 14px; border: 1px solid #1e2d42; border-radius: 8px; background: #111827;
  color: #8896b0; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.page-btn:hover { border-color: rgba(6,182,212,0.3); color: #e2e8f0; }
.page-btn.active { background: linear-gradient(135deg, #06b6d4, #8b5cf6); color: #fff; border-color: transparent; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== COMET VPN BANNER ===== */
.comet-banner { max-width: 72rem; margin: 0 auto; padding: 0 1rem 48px; }
.comet-banner-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #110d2e 0%, #15112e 40%, #0e1a30 100%);
  border-radius: 20px; padding: 48px 44px;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.25), 0 0 40px rgba(124,58,237,0.08), 0 8px 32px rgba(0,0,0,0.3);
}
.comet-banner-glow {
  position: absolute; top: -60%; right: -15%; width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18), rgba(99,102,241,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.comet-banner-glow-left {
  position: absolute; bottom: -50%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.1), transparent 70%);
  pointer-events: none;
}
.comet-banner-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.comet-banner-left { flex: 1; min-width: 280px; }
.comet-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.comet-logo { height: 28px; width: auto; filter: invert(1) drop-shadow(0 0 8px rgba(124,58,237,0.4)); }
.comet-headline { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #f1f5f9; line-height: 1.2; margin-bottom: 12px; }
.comet-headline .comet-accent { background: linear-gradient(135deg, #a78bfa, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.comet-desc { font-size: 15px; color: #8896b0; line-height: 1.7; max-width: 540px; }
.comet-features { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.comet-feat {
  font-size: 13px; font-weight: 600; color: #34d399;
  display: flex; align-items: center; gap: 6px;
}
.comet-feat-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52,211,153,0.12); display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}
.comet-banner-right { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.comet-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #6366f1, #7c3aed); background-size: 200% 100%;
  color: #fff; padding: 16px 36px; border-radius: 14px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35), 0 0 60px rgba(124,58,237,0.1);
  animation: ctaShimmer 3s ease-in-out infinite;
}
@keyframes ctaShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.comet-cta:hover { box-shadow: 0 6px 32px rgba(124,58,237,0.5), 0 0 80px rgba(124,58,237,0.15); transform: translateY(-2px); }
@media (max-width: 768px) {
  .comet-banner-inner { padding: 32px 24px; }
  .comet-banner-content { flex-direction: column; text-align: center; align-items: center; }
  .comet-banner-left { min-width: 0; }
  .comet-desc { max-width: none; }
  .comet-features { justify-content: center; }
}

/* ===== COMET INLINE CTA (Game Page) ===== */
.comet-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 24px 0 0; padding: 16px 20px;
  background: linear-gradient(135deg, #110d2e 0%, #15112e 40%, #0e1a30 100%);
  border: 1px solid rgba(124,58,237,0.25); border-radius: 12px;
  text-decoration: none; color: #e2e8f0; transition: border-color 0.2s, box-shadow 0.2s;
}
.comet-inline-cta:hover { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 24px rgba(124,58,237,0.12); }
.comet-inline-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.comet-inline-logo { height: 22px; width: auto; filter: invert(1) drop-shadow(0 0 6px rgba(124,58,237,0.3)); flex-shrink: 0; }
.comet-inline-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.comet-inline-title { font-size: 14px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comet-inline-sub { font-size: 12px; color: #8896b0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.comet-inline-sub strong { color: #e2e8f0; }
.comet-inline-flag { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.1); vertical-align: middle; }
.comet-inline-btn {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 2px 12px rgba(124,58,237,0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.comet-inline-cta:hover .comet-inline-btn { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
@media (max-width: 640px) {
  .comet-inline-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .comet-inline-title { white-space: normal; }
  .comet-inline-btn { align-self: stretch; justify-content: center; }
}

/* ===== HOW TO SECTION ===== */
.howto-section { background: #0b0e14; border-bottom: 1px solid #1a2235; }
.howto-inner { max-width: 72rem; margin: 0 auto; padding: 56px 1rem 48px; }
.howto-header { text-align: center; margin-bottom: 40px; }
.howto-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: #f1f5f9; margin-bottom: 10px; }
.howto-subtitle { font-size: 16px; color: #7a8ba8; }
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.howto-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.howto-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6); color: #fff;
  font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(6,182,212,0.2);
}
.howto-step-body { flex: 1; }
.howto-step-title { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.howto-step-desc { font-size: 13px; color: #7a8ba8; line-height: 1.6; }
@media (max-width: 1024px) { .howto-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 640px) { .howto-steps { grid-template-columns: 1fr; gap: 28px; } }

/* ===== RELATED GAMES ===== */
.related-games { margin-top: 32px; }
.related-title { font-size: 18px; font-weight: 700; color: #e2e8f0; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: flex; align-items: center; gap: 12px; padding: 10px; background: #111827; border: 1px solid #1e2d42; border-radius: 10px; text-decoration: none; transition: all 0.15s; }
.related-card:hover { border-color: rgba(6,182,212,0.3); background: #151d2e; transform: translateY(-1px); }
.related-img { width: 56px; height: 32px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #1a2235; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-img span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 16px; }
.related-info { min-width: 0; }
.related-name { font-size: 13px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-savings { font-size: 11px; color: #34d399; margin-top: 2px; }

/* ===== SYSTEM REQUIREMENTS ===== */
.sysreq-section { margin-top: 32px; padding: 24px; background: #111827; border: 1px solid #1e2d42; border-radius: 12px; }
.sysreq-title { font-size: 18px; font-weight: 700; color: #e2e8f0; margin-bottom: 20px; }
.sysreq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .sysreq-grid { grid-template-columns: 1fr; } }
.sysreq-col { padding: 16px; background: rgba(255,255,255,0.02); border: 1px solid #1e2d42; border-radius: 8px; }
.sysreq-content { font-size: 13px; color: #94a3b8; line-height: 1.7; }
.sysreq-content strong { color: #c0cde0; font-weight: 600; }
.sysreq-content ul { list-style: none; padding: 0; margin: 8px 0 0; }
.sysreq-content ul li { padding: 3px 0; }
.sysreq-content br { display: block; content: ''; margin-top: 2px; }

/* ===== FAQ SECTION ===== */
.faq-section { background: #0b0e14; }
.faq-inner { max-width: 72rem; margin: 0 auto; padding: 56px 1rem 64px; }
.faq-header { text-align: center; margin-bottom: 36px; }
.faq-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: #f1f5f9; margin-bottom: 10px; }
.faq-subtitle { font-size: 16px; color: #7a8ba8; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #111827; border: 1px solid #1e2d42; border-radius: 12px;
  cursor: pointer; transition: all 0.2s; overflow: hidden;
}
.faq-item:hover { border-color: rgba(6,182,212,0.25); }
.faq-item.open { border-color: rgba(6,182,212,0.3); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-size: 15px; font-weight: 600; color: #e2e8f0;
}
.faq-chevron { width: 18px; height: 18px; color: #5a6a84; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #22d3ee; }
.faq-answer {
  padding: 0 20px 18px; font-size: 14px; color: #7a8ba8; line-height: 1.7;
  animation: faqOpen 0.2s ease-out;
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FOOTER ===== */
.footer { background: #090c12; margin-top: 0; }
.footer-top { border-top: 1px solid #1a2235; }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 48px 1rem 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 16px; }
.footer-logo-text { font-size: 17px; font-weight: 700; color: #f1f5f9; }
.footer-logo .nav-logo-img { height: 56px; }
.footer-desc { font-size: 14px; color: #5a6a84; line-height: 1.7; margin-bottom: 20px; }
.footer-powered {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #4a5a74; text-decoration: none; transition: color 0.15s;
}
.footer-powered:hover { color: #7a8ba8; }
.footer-comet-logo { height: 16px; width: auto; opacity: 0.5; transition: opacity 0.15s; }
.footer-powered:hover .footer-comet-logo { opacity: 0.75; }
.footer-col h3 { font-size: 13px; font-weight: 600; color: #8896b0; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-link { display: block; font-size: 14px; color: #5a6a84; padding: 5px 0; cursor: pointer; transition: color 0.15s; text-decoration: none; }
.footer-link:hover { color: #22d3ee; }
.footer-bottom { background: #070a0f; border-top: 1px solid #141a26; }
.footer-bottom-inner {
  max-width: 72rem; margin: 0 auto; padding: 16px 1rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #3b4a66;
}
.footer-bottom-right { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-right { justify-content: center; }
}
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.35s ease-out both; }

/* Loading */
.spinner-wrap { display: flex; justify-content: center; align-items: center; padding: 80px 0; }
.spinner { width: 36px; height: 36px; border: 3px solid #1e2d42; border-top-color: #22d3ee; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
