@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0b0f;
  --bg2: #111318;
  --bg3: #181c24;
  --bg4: #1e2330;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --gold: #f0c040;
  --gold2: #e8a820;
  --gold-glow: rgba(240,192,64,0.15);
  --cyan: #00e5c8;
  --red: #ff4560;
  --text: #e8eaf0;
  --text2: #8b92a8;
  --text3: #555c74;
  --green: #22c87a;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

a { color: inherit; text-decoration: none; }

/* ── TOPBAR ── */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
  z-index: 200;
  position: relative;
}
.topbar-langs { display: flex; gap: 14px; }
.topbar-langs span {
  cursor: pointer;
  transition: color 0.2s;
  padding: 2px 0;
}
.topbar-langs span:hover { color: var(--gold); }
.topbar-langs span.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a { color: var(--text2); transition: color 0.2s; }
.topbar-right a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; border: none; transition: all 0.2s; }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text); padding: 5px 14px; border-radius: var(--radius-sm); font-size: 12px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: #000; padding: 5px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; font-family: 'Syne', sans-serif; }
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240,192,64,0.3); }
.btn-green { background: var(--green); color: #000; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }
.btn-green:hover { background: #1ab86e; transform: translateY(-1px); }
.btn-sm { padding: 4px 10px; font-size: 11px; border-radius: 4px; }

/* ── HEADER / NAV ── */
header {
  background: rgba(10,11,15,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  gap: 0;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
  flex-shrink: 0;
  margin-right: 24px;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  color: var(--text2);
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 6px;
  transition: all 0.18s;
  white-space: nowrap;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-glow);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 13px; right: 13px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}
.nav-right { margin-left: auto; display: flex; gap: 10px; }

/* ── PAGE LAYOUT ── */
.page-wrap {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  min-height: calc(100vh - 89px);
}

.sidebar-left {
  border-right: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidebar-right {
  border-left: 1px solid var(--border);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.content-area { min-width: 0; }

/* ── SIDEBAR COMPONENTS ── */
.sidebar-section { padding: 0 14px; margin-bottom: 20px; }
.sidebar-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding: 0 6px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
  transition: all 0.15s;
  margin-bottom: 1px;
}
.sidebar-item:hover { background: var(--bg3); color: var(--text); }
.sidebar-item.active { background: var(--gold-glow); color: var(--gold); }
.sidebar-item .si-icon { font-size: 14px; flex-shrink: 0; }
.sidebar-item .si-count {
  margin-left: auto;
  font-size: 10px;
  background: var(--bg3);
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
}
.sidebar-item.active .si-count { background: var(--gold-glow); color: var(--gold); }
.sidebar-divider { height: 1px; background: var(--border); margin: 14px 14px; }

/* ── SECTION ELEMENTS ── */
.section-head {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.section-head a { font-size: 12px; color: var(--gold); }
.section-head a:hover { text-decoration: underline; }

.section-sep {
  padding: 10px 20px 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── BADGES ── */
.badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.badge-cat { background: rgba(255,255,255,0.06); color: var(--text2); }
.badge-pinned { background: rgba(0,229,200,0.12); color: var(--cyan); }
.badge-deal { background: rgba(240,192,64,0.14); color: var(--gold); }
.badge-hot { background: rgba(255,69,96,0.14); color: var(--red); }
.badge-new { background: rgba(34,200,122,0.14); color: var(--green); }
.badge-urgent { background: rgba(255,69,96,0.2); color: var(--red); border: 1px solid rgba(255,69,96,0.3); }

/* ── TICKER ── */
.ticker-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.ticker-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(0.7)} }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex;
  gap: 32px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item { font-size: 12px; color: var(--text2); }
.ticker-item strong { color: var(--text); }
.ticker-item .act { color: var(--gold); }

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  background: var(--bg2);
  padding: 14px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--gold); }
.stat-lbl { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ── FILTER BAR ── */
.filter-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg2);
}
.filter-chip {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.filter-chip.active { background: var(--gold-glow); border-color: var(--gold); color: var(--gold); }

/* ── LISTING CARDS ── */
.listings-list { display: flex; flex-direction: column; background: var(--border); gap: 1px; }
.listing-card {
  background: var(--bg);
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.listing-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s;
}
.listing-card:hover { background: var(--bg2); }
.listing-card:hover::before { background: var(--gold); }
.listing-card.pinned::before { background: var(--cyan); }
.listing-card.hot::before { background: var(--red); }
.card-row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-title { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; flex: 1; line-height: 1.4; }
.card-badges { display: flex; gap: 5px; flex-shrink: 0; }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.meta-tag { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }

/* ── GRID CARDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 20px 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 0 20px 20px; }

.provider-card {
  background: var(--bg);
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.provider-card:hover { background: var(--bg2); }
.pc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pc-avatar {
  width: 38px; height: 38px;
  border-radius: 7px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 12px;
  color: var(--gold); flex-shrink: 0;
}
.pc-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; }
.pc-type { font-size: 11px; color: var(--text3); }
.pc-desc { font-size: 12px; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.pc-regions { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.region-tag { font-size: 10px; padding: 2px 7px; border-radius: 3px; background: var(--bg3); color: var(--text3); font-family: 'DM Mono', monospace; }
.pc-actions { display: flex; gap: 6px; }

/* ── AFFILIATE CARD ── */
.affiliate-card {
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.affiliate-card:last-child { border-bottom: none; }
.affiliate-card:hover { background: var(--bg2); }
.aff-avatar {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px;
  color: var(--cyan); flex-shrink: 0;
}
.aff-body { flex: 1; }
.aff-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.aff-commission { font-size: 11px; color: var(--gold); margin-bottom: 4px; font-family: 'DM Mono', monospace; }
.aff-desc { font-size: 12px; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.safe-pill { font-size: 10px; color: var(--green); display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-family: 'DM Mono', monospace; }

/* ── GAME THUMB ── */
.game-thumb {
  border-radius: 7px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 11px;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  padding: 8px;
}
.game-thumb:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.game-badge { position: absolute; top: 4px; left: 4px; font-size: 9px; background: var(--gold); color: #000; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.game-type-tag { position: absolute; bottom: 4px; right: 4px; font-size: 9px; background: rgba(0,0,0,0.7); padding: 1px 5px; border-radius: 3px; color: var(--text2); }

/* ── RIGHT PANEL ── */
.rp-section { padding: 16px; border-bottom: 1px solid var(--border); }
.rp-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.rp-title::before { content: ''; width: 3px; height: 12px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }

.activity-item { padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.act-ava { width: 26px; height: 26px; border-radius: 5px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-family: 'Syne', sans-serif; flex-shrink: 0; color: var(--text3); }
.act-info { flex: 1; font-size: 11px; color: var(--text2); line-height: 1.5; }
.act-info strong { color: var(--text); }
.act-info .act-type { color: var(--cyan); }
.act-time { font-size: 10px; color: var(--text3); font-family: 'DM Mono', monospace; }

.vip-box { background: linear-gradient(135deg, rgba(240,192,64,0.1) 0%, rgba(232,168,32,0.04) 100%); border: 1px solid rgba(240,192,64,0.2); border-radius: 8px; padding: 14px; }
.vip-price { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--gold); }
.vip-price span { font-size: 12px; font-weight: 400; color: var(--text2); }
.vip-perks { margin: 10px 0; display: flex; flex-direction: column; gap: 5px; }
.vip-perk { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.vip-perk::before { content: '✦'; color: var(--gold); font-size: 8px; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 20px;
}
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.page-hero p { color: var(--text2); font-size: 13px; max-width: 600px; }
.page-hero .hero-meta { display: flex; gap: 16px; margin-top: 12px; }
.hero-chip { font-size: 11px; background: var(--bg3); padding: 4px 10px; border-radius: 4px; color: var(--text2); font-family: 'DM Mono', monospace; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text3); }
.empty-state .es-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state p { font-size: 13px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 20px 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text3); font-size: 12px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; }

/* ── SCROLL TOP ── */
.scroll-top { position: fixed; bottom: 22px; right: 22px; width: 36px; height: 36px; background: var(--gold); color: #000; border: none; border-radius: 7px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all 0.2s; z-index: 500; }
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-2px); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp 0.3s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }

/* ── RESPONSIVE HINTS ── */
@media (max-width: 1200px) {
  .page-wrap { grid-template-columns: 200px 1fr 240px; }
}
@media (max-width: 960px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
}
