/* ============================================================
   BETIFY — style.css
   Design: Dark casino theme
   Approach: Mobile-First
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #0a0e17;
  --bg-card: #141925;
  --bg-sidebar: #0f1320;
  --green: #22c55e;
  --green-hover: #16a34a;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --red: #ef4444;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border-color: #1e293b;
  --radius-card: 8px;
  --radius-btn: 12px;
  --header-h: 80px;
  --sidebar-w: 260px;
  --sidebar-collapsed-w: 60px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #070a12;
  border-bottom: 1px solid var(--border-color);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hamburger-btn {
  font-size: 1.25rem;
  color: var(--text-secondary);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: color 0.2s, border-color 0.2s;
}

.hamburger-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.logo img {
  height: 38px;
  width: auto;
}

.header-spacer {
  flex: 1;
}

.header-search-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
}

.header-search-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Header outline button = green border */
.header-right .btn-outline {
  border-color: var(--green);
  color: var(--green);
}

.header-right .btn-outline:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--green-hover);
}

@media (max-width: 480px) {
  .btn-header {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a transparent;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0, 0, 0, 0.6);
  z-index: 89;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

/* ---------- 1. Badges (Daily Mission + Cash Back) ---------- */
.sb-badges {
  display: flex;
  gap: 8px;
}

.sb-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 12px;
  flex: 1;
  color: #fff;
  min-height: 70px;
  transition: opacity 0.2s;
}

.sb-badge:hover {
  opacity: 0.9;
}

.sb-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sb-badge-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  font-style: italic;
}

.sb-badge-main {
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
}

.sb-badge img,
.sb-badge-video {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Daily Mission : rose/magenta → bleu/violet */
.sb-badge--mission {
  background: linear-gradient(to right, #9b2d6b, #4c2889);
}

.sb-badge--mission .sb-badge-sub {
  color: #4ade80;
}

/* Cash Back : vert fonce → turquoise/cyan */
.sb-badge--cashback {
  background: linear-gradient(to right, #166534, #0d9488);
}

.sb-badge--cashback .sb-badge-sub {
  color: #86efac;
}

/* ---------- 2. Fortune block ---------- */
.sb-fortune {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 12px;
  background: linear-gradient(to right, #1e3a5f, #0ea5e9);
  color: #fff;
  min-height: 64px;
  transition: opacity 0.2s;
}

.sb-fortune:hover {
  opacity: 0.9;
}

.sb-fortune-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sb-fortune-label {
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  color: #f472b6;
}

.sb-fortune-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

.sb-fortune img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* ---------- 3. Menu items — each in its own #2A2A2A box ---------- */
.sb-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-item {
  background: #2a2a2a;
  border-radius: 10px;
  transition: background 0.2s;
}

.sb-item:hover {
  background: #333;
}

/* Simple link item (Mini-jeux) */
a.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

a.sb-item:hover {
  color: var(--text-primary);
}

a.sb-item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

a.sb-item i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---------- Dropdowns ---------- */
.sb-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-align: left;
  border-radius: 10px;
}

.sb-dropdown-btn:hover {
  color: var(--text-primary);
}

.sb-dropdown-btn i:first-child {
  width: 22px;
  text-align: center;
  font-size: 0.9375rem;
}

.sb-dropdown-btn span {
  flex: 1;
}

.sb-arrow {
  font-size: 0.625rem;
  transition: transform 0.3s ease;
}

.sb-dropdown.open .sb-arrow {
  transform: rotate(180deg);
}

.sb-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sb-dropdown.open .sb-dropdown-content {
  max-height: 300px;
}

.sb-dropdown-content a {
  display: block;
  padding: 8px 14px 8px 46px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.sb-dropdown-content a:hover {
  color: var(--text-primary);
}

/* ---------- 4. Sponsorship ---------- */
.sb-dropdown--sponsor {
  margin-top: 4px;
}

/* ---------- 5. Live Chat ---------- */
.sb-chat {
  margin-top: auto;
}

.sb-chat i {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---------- 6. Telegram banner ---------- */
.sb-telegram {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #2a2a2a;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  transition: background 0.2s, color 0.2s;
}

.sb-telegram:hover {
  background: #333;
  color: var(--text-primary);
}

.sb-telegram i {
  font-size: 1.25rem;
  color: #38bdf8;
  flex-shrink: 0;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  padding: 16px;
  padding-top: 16px;
  transition: margin-left 0.3s ease;
}

/* ---------- Sections ---------- */
.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-count {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

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

.btn-see-all {
  font-size: 0.8125rem;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-see-all:hover {
  opacity: 0.8;
}

.btn-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-link:hover {
  opacity: 0.8;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-section {
  margin-bottom: 32px;
}

.hero-wrapper {
  display: flex;
  gap: 16px;
}

.hero-carousel {
  flex: 1;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hero-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.hero-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

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

/* Hero arrows */
.hero-carousel > .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.hero-carousel > .carousel-arrow-left {
  left: 8px;
}

.hero-carousel > .carousel-arrow-right {
  right: 8px;
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.hero-dot.active {
  background: var(--green);
}

/* VIP Card */
.hero-vip {
  display: none;
}

.vip-card {
  background: linear-gradient(135deg, #1a1030 0%, #2d1b69 50%, #1a1030 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.vip-card img {
  width: 80px;
  height: 80px;
}

.vip-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   CATEGORIES (Jouer et Parier)
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  padding: 14px;
  transition: opacity 0.2s;
}

.cat-card:hover {
  opacity: 0.9;
}

/* Gradient backgrounds per card */
.cat-card--sport {
  background: linear-gradient(135deg, #14532d 0%, #22c55e 100%);
}

.cat-card--esports {
  background: linear-gradient(135deg, #1e293b 0%, #38bdf8 100%);
}

.cat-card--aviator {
  background: linear-gradient(135deg, #831843 0%, #ec4899 100%);
}

.cat-card--mines {
  background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%);
}

.cat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.cat-cta {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.cat-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
}

.cat-img {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: auto;
  height: 140px;
  max-width: 65%;
  object-fit: contain;
  z-index: 1;
}

/* ============================================================
   CASHBACK BANNER
   ============================================================ */
.cashback-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 150px;
  background: #1B203A;
}

.cashback-content {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.cashback-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
}

.cashback-subtitle {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 800;
  background: #ECCA2C;
  color: #000;
  padding: 5px 16px;
  border-radius: 6px;
  width: fit-content;
}

.cashback-deco {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: left center;
}

/* ============================================================
   GAME CAROUSELS
   ============================================================ */
.carousel-wrapper {
  position: relative;
}

.carousel-wrapper > .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.carousel-wrapper > .carousel-arrow-left {
  left: -4px;
}

.carousel-wrapper > .carousel-arrow-right {
  right: -4px;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  background: rgba(20, 25, 37, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: var(--bg-card);
  border-color: var(--text-secondary);
}

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* Game cards */
.game-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: block;
  background: var(--bg-card);
}

.game-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 2;
}

.badge-top {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: #fff;
}

.badge-new {
  background: linear-gradient(135deg, var(--green), var(--green-hover));
  color: #fff;
}

.game-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.game-card:hover .game-hover {
  opacity: 1;
}

.game-name {
  display: block;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   LIVE CASINO
   ============================================================ */
.live-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: block;
  background: var(--bg-card);
}

.live-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.live-card:hover img {
  transform: scale(1.05);
}

.live-info {
  padding: 10px 12px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.live-badge i {
  font-size: 0.375rem;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   PROVIDERS
   ============================================================ */
.provider-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  min-height: 80px;
  transition: border-color 0.2s;
}

.provider-card:hover {
  border-color: var(--text-secondary);
}

.provider-card img {
  max-height: 55px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.provider-card:hover img {
  opacity: 1;
}

/* ============================================================
   BATAILLES
   ============================================================ */
.battles-grid {
  display: grid;
  gap: 16px;
}

.battle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
}

.battle-header {
  margin-bottom: 16px;
}

.battle-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Timer */
.battle-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timer-label {
  background: var(--red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.timer-digits {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-block {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.timer-value {
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timer-unit {
  font-size: 0.625rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.timer-sep {
  font-weight: 700;
  color: var(--text-secondary);
}

/* Prize */
.battle-prize {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.prize-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.prize-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
}

.battle-dates {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Battle leaderboard */
.battle-leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.8125rem;
}

.battle-leaderboard th {
  text-align: left;
  padding: 8px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.battle-leaderboard td {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}

.battle-leaderboard td img {
  display: inline-block;
  vertical-align: middle;
}

.prize-gold { color: var(--orange); font-weight: 700; }
.prize-silver { color: #94a3b8; font-weight: 700; }
.prize-bronze { color: #b45309; font-weight: 700; }

.battle-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Battle info */
.battle-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.battle-podium-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-card);
  margin: 0 auto;
}

.battle-info-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.battle-info-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   LEADERBOARD TABLE
   ============================================================ */
.section-leaderboard {
  margin-bottom: 40px;
}

.leaderboard-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}

.tab-btn.active {
  color: var(--green);
}

.tab-btn.active::after {
  background: var(--green);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.leaderboard-table-wrapper {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.leaderboard-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tbody tr {
  transition: background 0.15s;
}

.leaderboard-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table td {
  padding: 10px 12px;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.td-game {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.td-game img {
  width: 32px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.td-multiplier {
  color: var(--green);
  font-weight: 600;
}

.multi-high {
  color: #fbbf24;
}

.td-payout {
  color: var(--green);
  font-weight: 700;
}

.payout-high {
  color: #fbbf24;
}

/* ============================================================
   SEO CONTENT
   ============================================================ */
.seo-content {
  background: #0d1117;
  padding: 48px 16px;
  border-top: 1px solid var(--border-color);
}

.seo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 48px;
  margin-bottom: 12px;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 24px;
  margin-bottom: 8px;
}

.seo-content p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 12px;
}

.seo-content a {
  color: var(--green);
}

.seo-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.seo-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.seo-content ul li {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 6px;
  padding-left: 24px;
  position: relative;
}

.seo-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.seo-content ol li {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 4px;
}

.seo-content li strong {
  color: #22c55e;
}

.seo-content p strong {
  color: #e5e7eb;
}

/* SEO Tables */
.seo-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.seo-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e5e7eb;
  background: #141925;
  border-bottom: 2px solid #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.seo-table tbody td {
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: #9ca3af;
  border-bottom: 1px solid #1e293b;
  background: #141925;
}

.seo-table tbody tr:nth-child(even) td {
  background: #1a1f2e;
}

.seo-table tbody tr:hover td {
  background: #1a2030;
}

/* SEO Badges */
.seo-badge {
  display: inline-block;
  background: #22c55e;
  color: #0a0e17;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* SEO FAQ (details/summary) */
.seo-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.seo-faq details {
  background: #141925;
  border: 1px solid #1e293b;
  border-left: 3px solid #22c55e;
  border-radius: 8px;
  overflow: hidden;
}

.seo-faq summary {
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e7eb;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
}

.seo-faq details[open] summary::after {
  content: '−';
}

.seo-faq details p {
  padding: 0 16px 14px;
  margin: 0;
}

@media (min-width: 1024px) {
  .seo-content {
    margin-left: var(--sidebar-w);
    padding: 48px 32px;
  }

  body.sidebar-collapsed .seo-content {
    margin-left: var(--sidebar-collapsed-w);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 16px 24px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

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

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--text-primary);
}

/* Payment logos */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.footer-payments img {
  height: 28px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.footer-payments img:hover {
  opacity: 0.8;
}

/* Legal */
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 800;
  font-size: 0.875rem;
}

.footer-legal p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-card {
    flex: 0 0 160px;
  }

  .live-card {
    flex: 0 0 220px;
  }

  .battles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-slide img {
    height: 240px;
  }

  .cashback-title {
    font-size: 2rem;
  }

  .percent {
    font-size: 2rem;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
  }

  .main-content {
    margin-left: var(--sidebar-w);
    padding: 24px 32px;
  }

  .site-footer {
    margin-left: var(--sidebar-w);
    padding: 40px 32px 24px;
  }

  /* Sidebar collapsed state on desktop */
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-w);
  }

  .sidebar.collapsed .sb-badge span,
  .sidebar.collapsed .sb-fortune-text,
  .sidebar.collapsed a.sb-item span,
  .sidebar.collapsed .sb-dropdown-btn span,
  .sidebar.collapsed .sb-arrow,
  .sidebar.collapsed .sb-dropdown-content,
  .sidebar.collapsed .sb-dropdown--sponsor,
  .sidebar.collapsed .sb-telegram span,
  .sidebar.collapsed .sb-chat span {
    display: none;
  }

  .sidebar.collapsed .sidebar-nav {
    padding: 12px 6px;
  }

  .sidebar.collapsed .sb-badges {
    flex-direction: column;
  }

  .sidebar.collapsed .sb-badge {
    padding: 8px;
    justify-content: center;
  }

  .sidebar.collapsed .sb-fortune {
    padding: 10px;
    justify-content: center;
  }

  .sidebar.collapsed a.sb-item,
  .sidebar.collapsed .sb-dropdown-btn {
    justify-content: center;
    padding: 10px;
  }

  .sidebar.collapsed .sb-chat,
  .sidebar.collapsed .sb-telegram {
    justify-content: center;
    padding: 10px;
  }

  body.sidebar-collapsed .main-content,
  body.sidebar-collapsed .site-footer {
    margin-left: var(--sidebar-collapsed-w);
  }

  .hero-vip {
    display: block;
    flex: 0 0 220px;
  }

  .hero-slide img {
    height: 260px;
  }

  .game-card {
    flex: 0 0 180px;
  }

  .live-card {
    flex: 0 0 240px;
  }

  .provider-card {
    flex: 0 0 170px;
  }

  .footer-columns {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Large Desktop (1280px+)
   ============================================================ */
@media (min-width: 1280px) {
  .game-card {
    flex: 0 0 200px;
  }

  .live-card {
    flex: 0 0 260px;
  }

  .hero-slide img {
    height: 280px;
  }
}
