*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #131a24;
  --bg-card: #1a2332;
  --bg-card-hover: #1e2a3d;
  --bg-sidebar: #111827;
  --bg-header: #0d1117;
  --accent-blue: #1a6fa3;
  --accent-blue-light: #4db8ff;
  --accent-green: #22c55e;
  --accent-green-dark: #16a34a;
  --accent-teal: #0891b2;
  --text-primary: #e2e8f0;
  --text-secondary: #cad5e2;
  --text-muted: #64748b;
  --border-color: #1e2d3d;
  --sidebar-width: 170px;
  --header-height: 56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  background: transparent;
  border: 1px solid #2d3f55;
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-login:hover {
  border-color: var(--accent-blue-light);
  color: var(--accent-blue-light);
}

.btn-register {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-register:hover {
  background: #1e7fc2;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26,111,163,0.5);
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ─── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #2d3f55 transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #2d3f55; border-radius: 4px; }

/* Fortune Wheel Button */
.fortune-wheel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f3460 0%, #1a4a7a 50%, #0f3460 100%);
  border: 1px solid #1e4d7a;
  padding: 10px 12px;
  cursor: pointer;
  color: #4db8ff;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
}
.fortune-wheel-btn:hover {
  background: linear-gradient(135deg, #1a4a7a 0%, #245a8a 50%, #1a4a7a 100%);
}
.fortune-wheel-icon { flex-shrink: 0; }
.fortune-wheel-btn .arrow-right {
  margin-left: auto;
  font-size: 18px;
  color: #4db8ff;
}

/* Quick Icons */
.sidebar-quick-icons {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
}
.quick-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.quick-icon-item span {
  font-size: 10px;
  color: var(--text-secondary);
}
.quick-icon {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}
.quick-icon:hover { border-color: var(--accent-blue-light); }

.badge {
  position: absolute;
  top: -5px; right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-green { background: var(--accent-green); font-size: 8px; width: 20px; border-radius: 8px; }

/* Android Banner */
.android-banner {
  margin: 6px 8px;
  background: linear-gradient(135deg, #1a2a4a 0%, #243050 100%);
  border: 1px solid #2d4060;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.android-banner:hover { border-color: #4db8ff; }
.android-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
}
.android-icon { font-size: 22px; }
.android-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.android-sub { font-size: 9px; color: var(--text-secondary); }

/* Sidebar Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: rgba(77,184,255,0.08);
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(77,184,255,0.12);
  color: #fff;
  border-left-color: var(--accent-blue-light);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; }
.nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 14px;
}

/* ─── MAIN CONTENT ───────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 16px 20px 40px;
  max-width: calc(100vw - var(--sidebar-width));
}

/* ─── BONUS BANNER ───────────────────────────────────── */
.bonus-banner {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #000603 0%, #000000 30%, #002b16 60%, #04872f 100%);
  border: 1px solid #1a6040;
}
.bonus-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  min-height: 140px;
}
.banner-left { flex: 1; }
.banner-label {
  font-size: 12px;
  color: #86efac;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.banner-amount {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(134,239,172,0.4);
}
.fs-amount {
  color: #4ade80;
  font-size: 28px;
}
.banner-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #86efac;
  margin-bottom: 16px;
}
.timer-dot {
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.btn-bonus {
  background: var(--accent-green);
  border: none;
  color: #fff;
  padding: 11px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}
.btn-bonus:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
}

.banner-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gift-box {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(134,239,172,0.3));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── SEARCH BAR ─────────────────────────────────────── */
.search-bar-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent-blue-light); }
.search-icon { font-size: 16px; color: var(--text-muted); }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.search-bar input::placeholder { color: var(--text-muted); }

.btn-providers {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-providers:hover { border-color: var(--accent-blue-light); color: var(--accent-blue-light); }

/* ─── CATEGORY TABS ──────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.category-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.tab-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.tab-btn.active {
  background: rgba(77,184,255,0.15);
  color: #4db8ff;
  font-weight: 600;
}

/* ─── GAMES SECTION ──────────────────────────────────── */
.games-section { margin-bottom: 24px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-see-all {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-see-all:hover { border-color: var(--accent-blue-light); color: var(--accent-blue-light); }

.nav-arrow {
  width: 30px; height: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.nav-arrow:hover { border-color: var(--accent-blue-light); color: var(--accent-blue-light); }

/* Games Grid Layout */
.games-grid-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
}

/* Featured Game Card */
.game-card-featured {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.game-card-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.game-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-bamboo {
  background: linear-gradient(135deg, #1a4a1a 0%, #2d6e2d 40%, #1e5a1e 70%, #0f3a0f 100%);
}
.game-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panda-art { font-size: 70px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }

.bamboo-stems {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  height: 40%;
}
.stem {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #2d5a1e, #4a8a2a);
}
.s1 { height: 70%; }
.s2 { height: 100%; }
.s3 { height: 55%; }

.game-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.game-name-big {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.game-provider-big {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.game-card-footer {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rtp-info { display: flex; flex-direction: column; gap: 2px; }
.rtp-label { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.rtp-value { color: var(--accent-green); }
.players-label { font-size: 10px; color: var(--text-muted); }
.players-count { color: var(--text-secondary); }

.btn-play {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-play:hover {
  background: #1e7fc2;
  box-shadow: 0 4px 12px rgba(26,111,163,0.5);
}

/* Small Games Grid */
.games-grid-small {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.game-card-small {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.game-card-small:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border-color: rgba(77,184,255,0.3);
}
.game-card-small:hover .game-hover-overlay {
  opacity: 1;
}

.game-thumbnail { border-radius: 0; }

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-info-small {
  padding: 6px 8px;
}
.game-name-small {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-provider-small {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.game-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-play-small {
  background: var(--accent-blue);
  border: none;
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* Hot badge */
.game-card-hot::after {
  content: 'HOT';
  position: absolute;
  top: 6px; right: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
}

/* ─── QUESTS SECTION ─────────────────────────────────── */
.quests-section {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0f1f3d 0%, #172040 50%, #0f1f3d 100%);
  border: 1px solid #1e3a5f;
}
.quests-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px;
  position: relative;
}
.quest-coin {
  position: absolute;
  font-size: 50px;
  opacity: 0.6;
  animation: float 4s ease-in-out infinite;
}
.left-coin { left: 30px; animation-delay: 0.5s; }
.right-coin { right: 30px; animation-delay: 1.5s; }
.quests-center { text-align: center; }
.quests-title-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.quests-amount {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.currency-icon { font-size: 28px; animation: spin 4s linear infinite; }
@keyframes spin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }

.quests-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}
.quest-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.quest-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(77,184,255,0.3);
}
.quest-card-active {
  border-color: rgba(77,184,255,0.5);
  background: rgba(77,184,255,0.06);
}
.quest-badge {
  background: linear-gradient(135deg, #1a3a6a, #1e4a80);
  border: 1px solid #2d5a9a;
  color: #4db8ff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.quest-task {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}
.btn-confirm {
  background: var(--accent-green);
  border: none;
  color: #fff;
  padding: 7px 20px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.btn-confirm:hover {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(34,197,94,0.4);
}

/* ─── HOT/COLD SECTION ───────────────────────────────── */
.hot-cold-section {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 30%, #1a1a0a 60%, #0a0f1a 100%);
  border: 1px solid #2d1a1a;
  padding-bottom: 20px;
}
.hot-cold-bg {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, #ef4444, #f97316, #60a5fa, #3b82f6);
}
.hot-cold-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.hot-cold-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.hot-cold-tab.active {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
}
.hot-cold-tab:not(.active):hover {
  background: rgba(255,255,255,0.1);
}

.hot-cold-games {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.hc-game-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.hc-game-card:hover { transform: translateY(-4px); }

.hc-thumbnail {
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.hc-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.hc-rtp {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7);
  color: var(--accent-green);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
}
.hc-name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}
.hc-provider {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: #fff; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent-blue-light); }
.btn-submit {
  width: 100%;
  background: var(--accent-blue);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  margin-top: 4px;
}
.btn-submit:hover { background: #1e7fc2; box-shadow: 0 6px 20px rgba(26,111,163,0.4); }
.modal-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.modal-switch a { color: var(--accent-blue-light); text-decoration: none; }
.modal-switch a:hover { text-decoration: underline; }

/* ─── HEADER NAV ─────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.header-nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.header-nav-link:hover {
  background: rgba(77,184,255,0.1);
  color: var(--text-primary);
}
.header-nav-link.active {
  background: rgba(77,184,255,0.15);
  color: #4db8ff;
  font-weight: 600;
}

/* ─── LIVE WINS BAR ──────────────────────────────────── */
.live-wins-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 9px 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.live-wins-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1.5px;
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}
.live-dot {
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 1s infinite;
}
.live-wins-scroll {
  display: flex;
  gap: 0;
  overflow: hidden;
  flex: 1;
  position: relative;
}
.win-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  padding-right: 24px;
  animation: winFadeIn 0.5s ease;
}
.win-chip::after {
  content: '·';
  position: absolute;
  color: var(--border-color);
}
.win-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.win-player-name { color: var(--text-secondary); font-weight: 600; }
.win-verb { color: var(--text-muted); }
.win-sum { color: #4ade80; font-weight: 700; }
.win-game-name { color: var(--accent-blue-light); }
.win-time { color: var(--text-muted); font-size: 11px; }
@keyframes winFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 1200px) {
  .games-grid-small { grid-template-columns: repeat(4, 1fr); }
  .hot-cold-games { grid-template-columns: repeat(4, 1fr); }
  .quests-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .header-nav { display: none; }
  .main-content { margin-left: 0; max-width: 100vw; }
  .games-grid-container { grid-template-columns: 1fr; }
  .games-grid-small { grid-template-columns: repeat(3, 1fr); }
  .hot-cold-games { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .games-grid-small { grid-template-columns: repeat(2, 1fr); }
  .hot-cold-games { grid-template-columns: repeat(2, 1fr); }
  .quests-cards { grid-template-columns: repeat(2, 1fr); }
  .banner-amount { font-size: 26px; }
  .banner-right { display: none; }
}

/* ─── SEO Text Block ─── */
.seo-block {
  background: #0d1626;
  border: 1px solid #1e2d3d;
  border-radius: 14px;
  padding: 32px 36px;
  margin-top: 32px;
  color: #cad5e2;
  line-height: 1.75;
}
.seo-block h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.seo-block h2 {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 24px 0 10px;
  border-left: 3px solid #4db8ff;
  padding-left: 12px;
}
.seo-block h3 {
  font-size: 15px;
  font-weight: 600;
  color: #93c5fd;
  margin: 18px 0 8px;
}
.seo-block p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.seo-block ul,
.seo-block ol {
  font-size: 14px;
  color: #94a3b8;
  padding-left: 20px;
  margin-bottom: 12px;
}
.seo-block li {
  margin-bottom: 6px;
}
.seo-block strong {
  color: #cbd5e1;
  font-weight: 600;
}
.page-h1 {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 0 2px;
}
