@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #0a0e1a;
  --bg-dark: #0d1526;
  --bg-card: #111d35;
  --bg-sidebar: #0c1422;
  --bg-nav: #091020;
  --accent-orange: #f5821f;
  --accent-orange-hover: #ff9a3c;
  --accent-gold: #f0c040;
  --accent-gold-light: #ffd966;
  --accent-blue: #1a6fff;
  --accent-cyan: #00d4ff;
  --text-primary: #e8eef8;
  --text-secondary: #8fa3c0;
  --text-muted: #4d6480;
  --border-color: #1e3050;
  --border-glow: rgba(26,111,255,0.3);
  --green: #00c853;
  --red: #ff3d3d;
  --sidebar-width: 200px;
  --topbar-height: 44px;
  --navbar-height: 58px;
}

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

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 3px; }

/* ===== TOP BAR ===== */
#topbar {
  background: var(--bg-nav);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 8px;
}

#topbar .tb-left,
#topbar .tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#topbar .tb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 5px;
  transition: color 0.2s;
  white-space: nowrap;
}

#topbar .tb-item:hover { color: var(--text-primary); }

#topbar .tb-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.tb-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

.tb-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background: transparent;
  transition: all 0.2s;
}
.tb-lang:hover { border-color: var(--accent-blue); color: var(--text-primary); }

.btn-freemoney {
  background: linear-gradient(135deg, #e8a000, #f5c842);
  color: #1a0a00;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: pulse-gold 2s infinite;
  white-space: nowrap;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,192,64,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(240,192,64,0); }
}

.btn-promo {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-promo:hover { background: var(--accent-blue); color: #fff; }

/* ===== NAVBAR ===== */
#navbar {
  background: var(--bg-nav);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--topbar-height);
  z-index: 999;
  gap: 20px;
}

#logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
#logo span { color: var(--accent-gold); }

#nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

#nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
#nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
#nav-links a.active { color: #fff; }

#nav-links .nav-aviator {
  font-style: italic;
  color: var(--accent-gold);
  font-family: 'Rajdhani', sans-serif;
}

#nav-links .nav-bonus-buy {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 20px;
  padding: 5px 12px;
}
#nav-links .nav-bonus-buy:hover { background: var(--accent-gold); color: var(--bg-deep); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-register {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-register:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }

.btn-login {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-login:hover { background: var(--accent-blue); border-color: var(--accent-blue); }

/* ===== LAYOUT ===== */
#page-wrapper {
  display: flex;
  min-height: calc(100vh - var(--topbar-height) - var(--navbar-height));
}

/* ===== SIDEBAR ===== */
#sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: calc(var(--topbar-height) + var(--navbar-height));
  height: calc(100vh - var(--topbar-height) - var(--navbar-height));
  overflow-y: auto;
  flex-shrink: 0;
  padding: 12px 0;
}

.sidebar-bonus {
  margin: 0 10px 12px;
  background: linear-gradient(135deg, #1a3060, #0d1e40);
  border: 1px solid var(--accent-gold);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.sidebar-bonus .sb-crown { font-size: 1.4rem; margin-bottom: 4px; }
.sidebar-bonus .sb-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.sidebar-bonus .sb-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 2px 0;
}
.sidebar-bonus .sb-btn {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 6px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.sidebar-bonus .sb-btn:hover { background: var(--accent-orange-hover); }

.sidebar-cat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 4px 14px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--text-primary);
  background: rgba(26,111,255,0.08);
  border-left-color: var(--accent-blue);
}
.sidebar-nav a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-nav a:hover svg,
.sidebar-nav a.active svg { opacity: 1; }

.sidebar-search {
  margin: 10px 10px 0;
  position: relative;
}
.sidebar-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 12px 7px 34px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.sidebar-search input:focus { outline: none; border-color: var(--accent-blue); }
.sidebar-search input::placeholder { color: var(--text-muted); }
.sidebar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== MAIN CONTENT ===== */
#main {
  flex: 1;
  min-width: 0;
  padding: 0 0 40px;
}

/* ===== HERO BANNER ===== */
#hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,24,48,0.25) 0%, rgba(13,32,72,0.18) 40%, rgba(10,21,40,0.25) 100%),
    url('img/banner1.png') center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 30px 30px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(26,111,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.hero-tag {
  display: inline-block;
  background: rgba(26,111,255,0.2);
  border: 1px solid var(--accent-blue);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-title span { color: var(--accent-orange); }

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.hero-jackpot {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  background: rgba(240,192,64,0.1);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 18px;
}
.hero-jackpot .hj-label { font-size: 0.72rem; color: var(--text-secondary); }
.hero-jackpot .hj-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-play {
  background: linear-gradient(135deg, var(--accent-orange), #e06010);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(245,130,31,0.4);
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,130,31,0.6);
  background: linear-gradient(135deg, var(--accent-orange-hover), var(--accent-orange));
}

.hero-visual {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.hero-jackpot-display {
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.2) 0%, transparent 70%),
              linear-gradient(135deg, #0d2060, #1a0d60);
  border: 2px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 24px 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,212,255,0.3), inset 0 0 30px rgba(0,212,255,0.05);
}
.hero-jackpot-display .brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  color: var(--accent-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-jackpot-display .game-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-jackpot-display .big-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(240,192,64,0.5);
}
.hero-jackpot-display .currency {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}
.hero-dots span.active { background: var(--accent-orange); width: 20px; border-radius: 4px; }

/* ===== LIVE WINNERS ===== */
#live-winners {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  height: 44px;
}

.lw-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lw-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.lw-ticker {
  display: flex;
  gap: 20px;
  overflow: hidden;
  flex: 1;
}

.lw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.78rem;
}
.lw-item .username { color: var(--text-secondary); }
.lw-item .game { color: var(--text-primary); }
.lw-item .amount { color: var(--accent-gold); font-weight: 700; }

/* ===== GAME FILTER ===== */
#game-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-dark);
  overflow-x: auto;
}

.gf-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(26,111,255,0.1);
}

/* ===== SECTION ===== */
.section {
  padding: 20px 20px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-orange);
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-arrow {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nav-arrow:hover { border-color: var(--accent-blue); color: var(--accent-cyan); }

.btn-all {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-all:hover { border-color: var(--accent-blue); color: var(--accent-cyan); }

/* ===== GAME GRID ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.25s, border-color 0.25s;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-blue);
  z-index: 2;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s;
}
.game-card:hover img { filter: brightness(1.1); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 12px;
}
.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-play {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.game-card-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
}

.game-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-hot { background: var(--red); color: #fff; }
.badge-new { background: var(--accent-blue); color: #fff; }
.badge-jackpot { background: var(--accent-gold); color: #1a0a00; }

.game-card .provider-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== PLACEHOLDER GAME CARD ===== */
.game-placeholder {
  background: linear-gradient(135deg, var(--bg-card), #0d1e3a);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}
.game-placeholder .gp-icon {
  width: 48px;
  height: 48px;
  opacity: 0.15;
}
.game-placeholder .gp-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}
.game-placeholder .gp-provider {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* crash game cards - wider layout */
.crash-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.crash-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.25s, border-color 0.25s;
}
.crash-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-blue);
  z-index: 2;
}
.crash-card img { width: 100%; height: 100%; object-fit: cover; }
.crash-card-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.crash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s;
}
.crash-card:hover .crash-img { filter: brightness(1.1); }
.crash-card-inner .crash-game-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  text-transform: uppercase;
}
.crash-card-inner .crash-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.crash-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.crash-card:hover .crash-card-overlay { opacity: 1; }
.crash-card-overlay .play-btn {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 22px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ===== BONUS BANNER ===== */
#bonus-banner {
  margin: 20px 20px 0;
  background: linear-gradient(135deg, #0d2048, #1a0d40);
  border: 1px solid rgba(240,192,64,0.3);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  position: relative;
}
#bonus-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(240,192,64,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.bb-content .bb-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.bb-content .bb-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}
.bb-content .bb-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.bb-amount {
  text-align: center;
  flex-shrink: 0;
}
.bb-amount .amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}
.bb-amount .currency { font-size: 0.8rem; color: var(--text-muted); }
.bb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.bb-actions .btn-register {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ===== APP SECTION ===== */
#app-section {
  margin: 20px 20px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.as-content .as-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.as-content .as-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.as-content .as-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 400px;
}
.as-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-store {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  transition: all 0.2s;
}
.btn-store:hover { border-color: var(--accent-blue); }
.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-store .store-info { text-align: left; }
.btn-store .store-label { font-size: 0.62rem; color: var(--text-muted); }
.btn-store .store-name { font-weight: 700; font-size: 0.82rem; }

/* ===== CONTENT SECTION ===== */
#content-section {
  margin: 20px 20px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 32px;
}

/* Content typography via CSS selectors - no classes needed in HTML */
#content-section h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
  border-left: 3px solid var(--accent-orange);
  padding-left: 14px;
}

#content-section h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}
#content-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

#content-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 16px 0 8px;
}

#content-section p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

#content-section a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#content-section a:hover { color: var(--accent-blue); }

#content-section ul,
#content-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

#content-section li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}
#content-section ul li::marker { color: var(--accent-orange); }
#content-section ol li::marker { color: var(--accent-blue); font-weight: 700; }

#content-section strong { color: var(--text-primary); font-weight: 700; }
#content-section em { color: var(--accent-gold); font-style: italic; }

#content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.85rem;
}
#content-section table th {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--accent-blue);
}
#content-section table td {
  padding: 9px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}
#content-section table tr:hover td { background: rgba(255,255,255,0.02); }

#content-section blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 10px 18px;
  margin: 14px 0;
  background: rgba(240,192,64,0.05);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

#content-section hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 18px 0;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px 20px;
  margin-top: 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.footer-brand .brand-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-brand .brand-logo span { color: var(--accent-gold); }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent-cyan); }

.footer-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.payment-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

.footer-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.age-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 5px;
}
.lic-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .crash-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 60px; }
  .sidebar-nav a span { display: none; }
  .sidebar-nav a { justify-content: center; padding: 10px; }
  .sidebar-bonus, .sidebar-search, .sidebar-cat-label { display: none; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .crash-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet / great mobile ── */
@media (max-width: 700px) {
  :root { --sidebar-width: 0px; }

  /* sidebar — hidden */
  #sidebar { display: none; }

  /* topbar */
  #topbar { padding: 0 12px; overflow: hidden; }
  .tb-item { display: none; }
  .tb-divider { display: none; }
  .btn-promo { display: none; }
  #topbar .tb-right { gap: 6px; }

  /* navbar */
  #navbar { gap: 10px; padding: 0 12px; }
  #nav-links { display: none; }

  /* hero */
  #hero { min-height: 200px; padding: 20px 16px 36px; }
  .hero-title { font-size: 1.7rem; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 12px; }
  .hero-jackpot { padding: 6px 12px; margin-bottom: 14px; }
  .hero-jackpot .hj-amount { font-size: 1.3rem; }
  .btn-play { font-size: 0.9rem; padding: 10px 22px; }

  /* game overlay visible on touch devices */
  .game-card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  }
  .crash-card-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.3);
  }

  /* sections */
  .section { padding: 14px 12px 0; }

  /* grids */
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .crash-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* bonus banner */
  #bonus-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin: 12px 12px 0;
    padding: 18px 14px;
    gap: 10px;
  }
  .bb-content .bb-title { font-size: 1.2rem; }
  .bb-actions { justify-content: center; }

  /* app section */
  #app-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin: 12px 12px 0;
    padding: 18px 14px;
    gap: 14px;
  }
  .as-content .as-desc { max-width: 100%; }
  .as-buttons { justify-content: center; flex-wrap: wrap; }

  /* content */
  #content-section { margin: 12px 12px 0; padding: 20px 16px; }
  #content-section h1 { font-size: 1.35rem; }
  #content-section h2 { font-size: 1.1rem; }

  /* footer */
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-badges { justify-content: center; }
  #footer { padding: 20px 14px; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  html { font-size: 14px; }

  /* topbar — show only buttons */
  #topbar { padding: 0 10px; gap: 6px; }
  .btn-freemoney { padding: 4px 10px; font-size: 0.72rem; }
  .btn-promo { padding: 4px 10px; font-size: 0.72rem; }
  .tb-lang { display: none; }

  /* navbar */
  #navbar { padding: 0 10px; gap: 6px; }
  #logo { font-size: 1.45rem; }
  .btn-login { display: none; }
  .btn-register { padding: 7px 14px; font-size: 0.76rem; }

  /* hero */
  #hero { min-height: 180px; padding: 16px 12px 36px; }
  .hero-tag { font-size: 0.62rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-sub { font-size: 0.82rem; }
  .hero-jackpot .hj-amount { font-size: 1.15rem; }
  .btn-play { font-size: 0.82rem; padding: 9px 18px; }

  /* live winners */
  #live-winners { padding: 0 10px; height: 38px; }
  .lw-label { font-size: 0.68rem; }

  /* game filter */
  #game-filter { padding: 8px 10px; gap: 6px; }
  .filter-btn { font-size: 0.7rem; padding: 4px 10px; }

  /* sections */
  .section { padding: 12px 10px 0; }
  .section-title { font-size: 0.9rem; }

  /* grids */
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .crash-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* bonus banner */
  #bonus-banner { margin: 10px 10px 0; padding: 14px 12px; }
  .bb-amount .amount { font-size: 1.8rem; }

  /* app section */
  #app-section { margin: 10px 10px 0; padding: 14px 12px; }
  .btn-store { padding: 7px 12px; }

  /* content */
  #content-section { margin: 10px 10px 0; padding: 16px 12px; }
  #content-section h1 { font-size: 1.2rem; }
  #content-section table { font-size: 0.78rem; }
  #content-section table th,
  #content-section table td { padding: 7px 8px; }

  /* footer */
  #footer { padding: 16px 10px; }
  .footer-brand .brand-logo { font-size: 1.3rem; }
}
