:root {
  --bg: #eef2f8;
  --bg2: #ffffff;
  --ink: #15202f;
  --muted: #646c7e;
  --line: rgba(21, 32, 47, 0.08);
  --gold: #feae1b;
  --gold2: #fe961b;
  --blue: #0484ff;
  --blue-deep: #0b5fd1;
  --sidebar: #1c2433;
  --sidebar-text: #d5dbe8;
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", sans-serif;
  --side-w: 250px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(254, 174, 27, 0.16), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(4, 132, 255, 0.1), transparent 50%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.app {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: auto;
  background: linear-gradient(180deg, #1a2230, #141b27);
  color: var(--sidebar-text);
  padding: 14px 12px 28px;
  z-index: 40;
}
.sidebar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.sidebar-close { display: none; color: #fff; }
.logo img { height: 30px; width: auto; filter: brightness(1.05); }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.mode {
  min-height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  color: #9aa6bb;
}
.mode.active {
  background: linear-gradient(135deg, rgba(254,174,27,0.25), rgba(4,132,255,0.2));
  color: #fff;
  border: 1px solid rgba(254,174,27,0.35);
}

.side-nav { display: grid; gap: 2px; }
.side-nav a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #c7d0e0;
}
.side-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-sep { height: 1px; margin: 8px 4px; background: rgba(255,255,255,0.08); }

.shell { min-width: 0; }
.promo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #15202f, #1e3a5f);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.promo-bar .tag {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1205;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}
.promo-bar p { margin: 0; flex: 1; }
.promo-bar a { color: var(--gold); font-weight: 800; white-space: nowrap; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(238, 242, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.top-modes { display: flex; gap: 6px; }
.pill {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}
.pill.active {
  background: #15202f;
  color: #fff;
  border-color: #15202f;
}
.top-logo { justify-self: center; }
.top-logo img { height: 28px; width: auto; }
.top-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.btn.primary {
  color: #1a1205;
  background: linear-gradient(135deg, #ffd76a, var(--gold) 45%, var(--gold2));
  box-shadow: 0 10px 24px rgba(254, 150, 27, 0.28);
}
.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn.xl { min-height: 52px; padding: 0 26px; font-size: 16px; }

.main {
  padding: 18px 20px 40px;
  max-width: 1200px;
}

.welcome {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #1a3f7a 0%, #0d6ecf 48%, #1aa0ff 100%);
  color: #fff;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 20px 50px rgba(13, 110, 207, 0.25);
}
.eyebrow {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}
.welcome h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  max-width: 14ch;
}
.bonus-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.16);
}
.bonus-chip strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold);
}
.bonus-chip span { font-size: 13px; color: rgba(255,255,255,0.8); }
.or { margin: 16px 0 10px; color: rgba(255,255,255,0.75); font-size: 14px; }
.socials { display: flex; gap: 10px; }
.social {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}
.welcome-art img {
  width: min(100%, 340px);
  margin-inline: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.stats > div {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 4px;
}
.stats span { color: var(--muted); font-size: 13px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-head h2,
.games-block h2,
.vip h2,
.bets h2,
.faq h2,
.currency h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
}
.badge {
  background: #e7eef9;
  color: var(--muted);
  border-radius: 999px;
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.link { margin-left: auto; color: var(--blue); font-weight: 700; font-size: 14px; }

.providers, .games-block, .currency, .vip, .bets, .faq, .final-cta {
  margin-bottom: 22px;
}
.provider-track {
  display: flex;
  gap: 26px;
  overflow: auto;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: center;
  scrollbar-width: none;
}
.provider-track::-webkit-scrollbar { display: none; }
.provider-track img {
  height: 26px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(0.2);
  flex: 0 0 auto;
}

.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.games a {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.games a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(21, 32, 47, 0.1);
}
.games img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  background: #ddd;
}
.games span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px 4px;
}

.panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.casino-panel {
  background:
    linear-gradient(120deg, rgba(254,174,27,0.12), transparent 40%),
    var(--bg2);
}
.sport-panel {
  background:
    linear-gradient(120deg, rgba(4,132,255,0.1), transparent 40%),
    var(--bg2);
}
.panel h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}
.panel p { margin: 0 0 14px; color: var(--muted); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f4f7fc;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.chips img { width: 18px; height: 18px; }
.panel-art {
  width: min(100%, 260px);
  margin-inline: auto;
}

.currency {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.currency p { color: var(--muted); }
.currency img { width: min(100%, 260px); margin-inline: auto; }

.vip, .bets, .faq, .final-cta {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.vip > p, .faq p, .final-cta p { color: var(--muted); }
.vip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.vip-grid article {
  padding: 14px;
  border-radius: 14px;
  background: #f6f8fc;
  border: 1px solid var(--line);
}
.vip-grid img { width: 32px; height: 32px; margin-bottom: 10px; }
.vip-grid h3 { margin: 0 0 6px; font-size: 15px; }
.vip-grid p { margin: 0; font-size: 13px; }

.table-wrap { overflow: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
th { color: var(--muted); }
td:nth-child(4), td:nth-child(5) { color: #149a3a; font-weight: 700; }

.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq a { color: var(--blue); font-weight: 700; }

.final-cta {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(254,174,27,0.12), transparent 50%),
    var(--bg2);
}
.final-cta img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.final-cta .btn { margin-top: 8px; }

.footer {
  display: grid;
  gap: 8px;
  padding: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.footer img { height: 26px; width: auto; }
.footer a { color: var(--blue-deep); font-weight: 700; }

.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.45);
  z-index: 30;
}

@media (max-width: 1100px) {
  .games { grid-template-columns: repeat(3, 1fr); }
  .vip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: none; }
  .sidebar-close { display: grid; place-items: center; }
  .backdrop.show { display: block; }
  .top-logo { display: none; }
  .promo-bar { font-size: 12px; }
  .welcome, .panel, .currency { grid-template-columns: 1fr; }
  .welcome h1 { max-width: none; }
}

@media (max-width: 640px) {
  .main { padding: 12px; }
  .top-actions .ghost { display: none; }
  .stats, .games, .vip-grid { grid-template-columns: 1fr 1fr; }
  .promo-bar p { display: none; }
}
