/* ================================================================
   KLAVBET - PREMIUM BETTING PLATFORM
   style.css — Complete Design System
   Dark (default) & Light Theme | Karanlık & Aydınlık Mod
   ================================================================ */

/* ----------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ----------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* BRAND */
  --brand-primary:     #C9A84C;   /* altın sarısı */
  --brand-primary-rgb: 201, 168, 76;
  --brand-secondary:   #E8D5A3;
  --brand-accent:      #FFD700;
  --brand-danger:      #FF3B3B;
  --brand-success:     #2ECC71;
  --brand-warning:     #F39C12;
  --brand-info:        #3498DB;

  /* DARK THEME (Default) */
  --bg-base:           #0A0A0B;
  --bg-surface:        #111113;
  --bg-elevated:       #18181C;
  --bg-overlay:        #1F1F25;
  --bg-card:           #16161A;
  --bg-modal:          #1A1A20;
  --bg-input:          #1C1C22;
  --bg-hover:          #22222A;
  --bg-active:         #2A2A35;
  --bg-glass:          rgba(255,255,255,0.04);

  --border-default:    rgba(255,255,255,0.08);
  --border-subtle:     rgba(255,255,255,0.04);
  --border-strong:     rgba(255,255,255,0.16);
  --border-brand:      rgba(201,168,76,0.40);
  --border-focus:      rgba(201,168,76,0.80);

  --text-primary:      #F4F4F6;
  --text-secondary:    #A0A0B0;
  --text-muted:        #5A5A70;
  --text-inverse:      #0A0A0B;
  --text-brand:        #C9A84C;
  --text-danger:       #FF5F5F;
  --text-success:      #4ADE80;
  --text-warning:      #FBBF24;
  --text-info:         #60A5FA;

  --shadow-sm:         0 1px 3px rgba(0,0,0,0.6);
  --shadow-md:         0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg:         0 8px 32px rgba(0,0,0,0.7);
  --shadow-xl:         0 20px 60px rgba(0,0,0,0.8);
  --shadow-brand:      0 0 30px rgba(201,168,76,0.18);
  --shadow-glow:       0 0 60px rgba(201,168,76,0.12);

  /* LAYOUT */
  --header-height:     64px;
  --sidebar-width:     260px;
  --sidebar-mini:      72px;
  --footer-height:     80px;
  --container-max:     1440px;
  --content-max:       1200px;
  --narrow-max:        720px;

  /* SPACING */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* RADIUS */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* TYPOGRAPHY */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  42px;
  --text-4xl:  56px;
  --text-5xl:  72px;
  --text-6xl:  96px;

  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  /* TRANSITIONS */
  --ease-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-INDEX */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   1000;
  --z-toast:   2000;
  --z-tooltip: 3000;
  --z-topmost: 9999;
}

/* ----------------------------------------------------------------
   3. LIGHT THEME
   ---------------------------------------------------------------- */
[data-theme="light"] {
  --bg-base:      #F7F7F9;
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #F0F0F5;
  --bg-overlay:   #E8E8F0;
  --bg-card:      #FFFFFF;
  --bg-modal:     #FFFFFF;
  --bg-input:     #F4F4F8;
  --bg-hover:     #EBEBF5;
  --bg-active:    #E0E0EE;
  --bg-glass:     rgba(0,0,0,0.03);

  --border-default: rgba(0,0,0,0.09);
  --border-subtle:  rgba(0,0,0,0.04);
  --border-strong:  rgba(0,0,0,0.16);
  --border-brand:   rgba(201,168,76,0.40);
  --border-focus:   rgba(201,168,76,0.80);

  --text-primary:   #0D0D12;
  --text-secondary: #4A4A60;
  --text-muted:     #9090A8;
  --text-inverse:   #F4F4F6;
  --text-brand:     #A07C30;
  --text-danger:    #CC2222;
  --text-success:   #18925A;
  --text-warning:   #B45309;
  --text-info:      #1D4ED8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-brand: 0 0 30px rgba(201,168,76,0.14);
  --shadow-glow:  0 0 60px rgba(201,168,76,0.08);
}

/* ----------------------------------------------------------------
   4. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--ease-normal), color var(--ease-normal);
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }
* { scrollbar-width: thin; scrollbar-color: var(--bg-overlay) transparent; }

/* SELECTION */
::selection { background: rgba(var(--brand-primary-rgb), 0.25); color: var(--text-primary); }

a { color: var(--text-brand); text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--brand-accent); }

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* FOCUS RING */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------
   5. LAYOUT SYSTEM
   ---------------------------------------------------------------- */
.app-wrapper {
  display: grid;
  grid-template-rows: var(--header-height) 1fr var(--footer-height);
  grid-template-areas:
    "header"
    "main"
    "footer";
  min-height: 100vh;
}

.app-wrapper--sidebar {
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr var(--footer-height);
  grid-template-areas:
    "header header"
    "sidebar main"
    "footer footer";
}

.app-wrapper--sidebar-mini {
  grid-template-columns: var(--sidebar-mini) 1fr;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow { max-width: var(--narrow-max); }
.container--content { max-width: var(--content-max); }

.section { padding: var(--space-16) 0; }
.section--sm { padding: var(--space-10) 0; }
.section--lg { padding: var(--space-24) 0; }

/* GRID */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

/* FLEX */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ----------------------------------------------------------------
   6. HEADER / NAVIGATION
   ---------------------------------------------------------------- */
.header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  height: var(--header-height);
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  transition: background var(--ease-normal);
}

[data-theme="light"] .header {
  background: rgba(255,255,255,0.88);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: #000;
  letter-spacing: 0;
  box-shadow: 0 0 20px rgba(var(--brand-primary-rgb), 0.4);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
}

.logo__text span {
  color: var(--brand-primary);
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all var(--ease-fast);
  white-space: nowrap;
}

.nav__item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav__item.active {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.08);
}

.nav__item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

.nav__badge {
  background: var(--brand-danger);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}

/* HEADER ACTIONS */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* DROPDOWN NAV */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: all var(--ease-normal);
  z-index: var(--z-modal);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--ease-fast);
}

.nav__dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   7. SIDEBAR
   ---------------------------------------------------------------- */
.sidebar {
  grid-area: sidebar;
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-default);
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: width var(--ease-normal);
}

.sidebar--mini { width: var(--sidebar-mini); }

.sidebar__section { padding: var(--space-4) 0; }

.sidebar__label {
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-5);
  display: block;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: 0;
  transition: all var(--ease-fast);
  position: relative;
  margin: 1px var(--space-3);
  border-radius: var(--radius-md);
}

.sidebar__item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.sidebar__item.active {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.08);
}

.sidebar__item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--brand-primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar__divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-3) var(--space-5);
}

/* LIVE INDICATOR */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--brand-success);
  letter-spacing: 0.5px;
}

.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--brand-success);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ----------------------------------------------------------------
   8. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  line-height: 1;
  white-space: nowrap;
  transition: all var(--ease-fast);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--ease-fast);
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(1px); }

/* PRIMARY */
.btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #B8912A 100%);
  color: #000;
  box-shadow: 0 2px 12px rgba(var(--brand-primary-rgb), 0.35);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(var(--brand-primary-rgb), 0.5);
  transform: translateY(-1px);
  color: #000;
}

/* SECONDARY */
.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

/* GHOST */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* DANGER */
.btn--danger {
  background: rgba(255,59,59,0.12);
  color: var(--text-danger);
  border: 1px solid rgba(255,59,59,0.25);
}

.btn--danger:hover {
  background: var(--brand-danger);
  color: #fff;
  border-color: var(--brand-danger);
}

/* SUCCESS */
.btn--success {
  background: rgba(46,204,113,0.12);
  color: var(--text-success);
  border: 1px solid rgba(46,204,113,0.25);
}

.btn--success:hover {
  background: var(--brand-success);
  color: #fff;
  border-color: var(--brand-success);
}

/* OUTLINE */
.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.btn--outline:hover {
  background: rgba(var(--brand-primary-rgb), 0.08);
}

/* GLASS */
.btn--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

/* SIZES */
.btn--xs { padding: 5px 10px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn--sm { padding: 7px var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: 14px var(--space-8); font-size: var(--text-md); border-radius: var(--radius-lg); }
.btn--xl { padding: 18px var(--space-10); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn--full { width: 100%; }
.btn--round { border-radius: var(--radius-full); }
.btn--icon { padding: 10px; width: 40px; height: 40px; }
.btn--icon-sm { padding: 7px; width: 32px; height: 32px; }
.btn--icon-lg { padding: 14px; width: 52px; height: 52px; }

/* LOADING STATE */
.btn--loading { pointer-events: none; opacity: 0.7; }
.btn--loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: var(--space-2);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   9. CARDS
   ---------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--ease-normal);
}

.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.card--elevated {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-color: var(--border-subtle);
}

.card--brand {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-brand);
}

.card--flat { border-color: transparent; background: var(--bg-elevated); }

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.card__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.card__body {
  padding: var(--space-6);
}

.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MATCH/SPORTS CARD */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--ease-normal);
  cursor: pointer;
}

.match-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

.match-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.match-card__league { display: flex; align-items: center; gap: var(--space-2); }
.match-card__league-icon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }

.match-card__body {
  padding: var(--space-5) var(--space-6);
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.match-card__team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.match-card__team-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.match-card__vs {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.match-card__score {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  letter-spacing: 2px;
  text-align: center;
}

.match-card__odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.odd-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--ease-fast);
  font-family: var(--font-body);
}

.odd-btn:hover {
  background: rgba(var(--brand-primary-rgb), 0.08);
  border-color: var(--brand-primary);
}

.odd-btn.selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.odd-btn.selected .odd-btn__label,
.odd-btn.selected .odd-btn__value { color: #000; }

.odd-btn__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.odd-btn__value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
}

/* STAT CARD */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all var(--ease-normal);
}

.stat-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-brand);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.stat-card__icon--gold  { background: rgba(var(--brand-primary-rgb), 0.12); color: var(--brand-primary); }
.stat-card__icon--green { background: rgba(46,204,113,0.12); color: var(--text-success); }
.stat-card__icon--red   { background: rgba(255,59,59,0.12); color: var(--text-danger); }
.stat-card__icon--blue  { background: rgba(52,152,219,0.12); color: var(--text-info); }

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  letter-spacing: 1px;
  line-height: 1;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-card__delta {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-card__delta--up { color: var(--text-success); }
.stat-card__delta--down { color: var(--text-danger); }

/* ----------------------------------------------------------------
   10. FORMS & INPUTS
   ---------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.form-label--required::after {
  content: ' *';
  color: var(--text-danger);
}

.form-control {
  width: 100%;
  padding: 10px var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--ease-fast);
  outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:hover { border-color: var(--border-strong); }

.form-control:focus {
  border-color: var(--brand-primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.form-control--error { border-color: var(--brand-danger); }
.form-control--error:focus { box-shadow: 0 0 0 3px rgba(255,59,59,0.12); }
.form-control--success { border-color: var(--brand-success); }

.form-control--lg { padding: 14px var(--space-5); font-size: var(--text-md); border-radius: var(--radius-lg); }
.form-control--sm { padding: 7px var(--space-3); font-size: var(--text-xs); }

/* INPUT WITH ICON */
.input-wrapper { position: relative; }
.input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-icon--left { left: var(--space-4); }
.input-icon--right { right: var(--space-4); }
.input-wrapper .form-control--icon-left { padding-left: 40px; }
.input-wrapper .form-control--icon-right { padding-right: 40px; }

/* INPUT GROUP */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: 0;
  flex: 1;
}

.input-group .form-control:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .form-control:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.input-group-addon:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); border-right: none; }
.input-group-addon:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; border-left: none; }

/* SELECT */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: 40px;
  cursor: pointer;
}

/* CHECKBOX & RADIO */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check__input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  appearance: none;
  cursor: pointer;
  transition: all var(--ease-fast);
  flex-shrink: 0;
  position: relative;
}

.form-check__input:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.form-check__input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-check__input--radio {
  border-radius: 50%;
}

.form-check__input--radio:checked::after {
  border: none;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-check__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

/* TOGGLE / SWITCH */
.toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  transition: background var(--ease-fast);
  border: 1px solid var(--border-default);
}

.toggle__input { display: none; }

.toggle__input:checked + .toggle__track {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle__input:checked ~ .toggle__track .toggle__knob,
.toggle__input:checked + .toggle__track .toggle__knob {
  transform: translateX(20px);
}

/* RANGE SLIDER */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--brand-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(var(--brand-primary-rgb), 0.5);
  transition: transform var(--ease-spring);
}

.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* FORM FEEDBACK */
.form-feedback {
  font-size: var(--text-xs);
  margin-top: 4px;
}
.form-feedback--error { color: var(--text-danger); }
.form-feedback--success { color: var(--text-success); }
.form-feedback--hint { color: var(--text-muted); }

/* ----------------------------------------------------------------
   11. BETSLIP
   ---------------------------------------------------------------- */
.betslip {
  position: fixed;
  right: 0;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  width: 320px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  z-index: var(--z-raised);
  transform: translateX(100%);
  transition: transform var(--ease-normal);
}

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

.betslip__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.betslip__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: 1px;
  color: var(--text-primary);
}

.betslip__count {
  background: var(--brand-primary);
  color: #000;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.betslip__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-default);
}

.betslip__tab {
  flex: 1;
  padding: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--ease-fast);
  border-bottom: 2px solid transparent;
}

.betslip__tab.active {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.betslip__body { flex: 1; overflow-y: auto; padding: var(--space-4); }

.betslip__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  position: relative;
}

.betslip__item-league { font-size: var(--text-xs); color: var(--text-muted); }
.betslip__item-match { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-primary); margin-top: 2px; }
.betslip__item-selection { font-size: var(--text-sm); color: var(--brand-primary); margin-top: 4px; }
.betslip__item-odds { font-family: var(--font-mono); font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-primary); }

.betslip__item-remove {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.betslip__item-remove:hover { color: var(--text-danger); background: rgba(255,59,59,0.1); }

.betslip__stake {
  padding: var(--space-4);
  border-top: 1px solid var(--border-default);
}

.betslip__totals {
  padding: var(--space-4) var(--space-4) 0;
}

.betslip__total-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 4px 0;
}

.betslip__total-row--highlight {
  color: var(--brand-primary);
  font-weight: var(--weight-semi);
  font-size: var(--text-md);
}

.betslip__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-default);
}

/* QUICK STAKES */
.quick-stakes {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.quick-stake {
  padding: 5px var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
  font-family: var(--font-body);
}

.quick-stake:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ----------------------------------------------------------------
   12. MODALS
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--ease-spring);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal--lg { max-width: 640px; }
.modal--xl { max-width: 860px; }
.modal--sm { max-width: 360px; }
.modal--fullscreen { max-width: 100%; max-height: 100vh; border-radius: 0; }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.modal__title { font-size: var(--text-xl); font-weight: var(--weight-semi); color: var(--text-primary); }

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--ease-fast);
}

.modal__close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal__body { padding: var(--space-6); }
.modal__footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ----------------------------------------------------------------
   13. TABS
   ---------------------------------------------------------------- */
.tabs { display: flex; flex-direction: column; gap: var(--space-6); }

.tabs__nav {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-default);
  gap: 0;
}

.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ease-fast);
  white-space: nowrap;
  font-family: var(--font-body);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* PILL TABS */
.tabs--pills .tabs__nav {
  border-bottom: none;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  gap: var(--space-1);
  display: inline-flex;
}

.tabs--pills .tab-btn {
  border-bottom: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  margin: 0;
}

.tabs--pills .tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------
   14. BADGES & TAGS
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  line-height: 1.4;
  white-space: nowrap;
}

.badge--default  { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-default); }
.badge--primary  { background: rgba(var(--brand-primary-rgb), 0.15); color: var(--brand-primary); }
.badge--success  { background: rgba(46,204,113,0.12); color: var(--text-success); }
.badge--danger   { background: rgba(255,59,59,0.12); color: var(--text-danger); }
.badge--warning  { background: rgba(251,191,36,0.12); color: var(--text-warning); }
.badge--info     { background: rgba(96,165,250,0.12); color: var(--text-info); }
.badge--live     { background: rgba(255,59,59,0.12); color: var(--text-danger); animation: pulse-badge 2s infinite; }

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.badge--lg { padding: 5px 14px; font-size: var(--text-sm); }

/* SPORT TAGS */
.sport-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all var(--ease-fast);
}

.sport-tag:hover,
.sport-tag.active {
  background: rgba(var(--brand-primary-rgb), 0.10);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.sport-tag__emoji { font-size: 14px; }

/* ----------------------------------------------------------------
   15. TABLES
   ---------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table thead { background: var(--bg-elevated); }

.table th {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.table td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

.table tbody tr { transition: background var(--ease-fast); }
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr.table__row--highlight { background: rgba(var(--brand-primary-rgb), 0.04); }

/* ODDS TABLE */
.odds-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--ease-fast);
  display: inline-block;
}

.odds-value:hover {
  background: rgba(var(--brand-primary-rgb), 0.12);
}

.odds-value.up { color: var(--text-success); }
.odds-value.down { color: var(--text-danger); }

/* ----------------------------------------------------------------
   16. SCORES & LIVE SPORTS
   ---------------------------------------------------------------- */
.scoreboard {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.scoreboard__header {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-overlay) 100%);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
}

.scoreboard__timer {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-danger);
  min-width: 40px;
  text-align: center;
}

.scoreboard__body { padding: var(--space-6); }

.scoreboard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.scoreboard__team {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.scoreboard__score {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--text-primary);
  letter-spacing: 4px;
  text-align: center;
}

/* MATCH TRACKER */
.match-tracker {
  width: 100%;
  height: 8px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.match-tracker__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ----------------------------------------------------------------
   17. CASINO GAME CARDS
   ---------------------------------------------------------------- */
.game-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.game-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.game-card:hover .game-card__thumb { transform: scale(1.06); }

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity var(--ease-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.game-card__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
}

.game-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: #fff;
}

.game-card__provider {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
}

.game-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.game-card__jackpot {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #000;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

/* ----------------------------------------------------------------
   18. PROMOTIONS / BANNERS
   ---------------------------------------------------------------- */
.promo-banner {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.promo-banner__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
}

.promo-banner__content {
  position: relative;
  z-index: 1;
  padding: var(--space-10) var(--space-10);
  max-width: 500px;
}

.promo-banner__tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}

.promo-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: #fff;
  letter-spacing: 2px;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.promo-banner__desc {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-6);
}

/* PROMO CARD */
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--ease-normal);
}

.promo-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-brand);
  transform: translateY(-3px);
}

.promo-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.promo-card__body { padding: var(--space-5); }
.promo-card__title { font-size: var(--text-md); font-weight: var(--weight-semi); color: var(--text-primary); }
.promo-card__desc { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--space-2); }
.promo-card__footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-subtle); }

/* ----------------------------------------------------------------
   19. LEADERBOARD / RANKING
   ---------------------------------------------------------------- */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  transition: background var(--ease-fast);
}

.leaderboard-item:hover { background: var(--bg-hover); }

.leaderboard-item__rank {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.leaderboard-item__rank--1 { color: #FFD700; }
.leaderboard-item__rank--2 { color: #C0C0C0; }
.leaderboard-item__rank--3 { color: #CD7F32; }

.leaderboard-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-default);
}

.leaderboard-item__info { flex: 1; min-width: 0; }
.leaderboard-item__name { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-primary); }
.leaderboard-item__sub { font-size: var(--text-xs); color: var(--text-muted); }

.leaderboard-item__value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
}

/* ----------------------------------------------------------------
   20. TOAST NOTIFICATIONS
   ---------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: toast-in 0.35s var(--ease-spring) forwards;
  backdrop-filter: blur(12px);
}

.toast--exit { animation: toast-out 0.25s ease forwards; }

@keyframes toast-in {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.toast--success { border-left: 3px solid var(--brand-success); }
.toast--danger  { border-left: 3px solid var(--brand-danger); }
.toast--warning { border-left: 3px solid var(--brand-warning); }
.toast--info    { border-left: 3px solid var(--brand-info); }

.toast__icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.toast__title { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--text-primary); }
.toast__msg { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }

/* ----------------------------------------------------------------
   21. TOOLTIPS
   ---------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-overlay);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--ease-fast);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-default);
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::before {
  opacity: 1;
  bottom: calc(100% + 12px);
}

/* ----------------------------------------------------------------
   22. HERO / LANDING
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(var(--brand-primary-rgb), 0.12) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 0%, var(--bg-base) 100%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  background: rgba(var(--brand-primary-rgb), 0.08);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
  border-radius: var(--radius-full);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  letter-spacing: 4px;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   23. ACCOUNT / USER PANEL
   ---------------------------------------------------------------- */
.user-avatar {
  position: relative;
  flex-shrink: 0;
}

.user-avatar__img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar--sm .user-avatar__img  { width: 32px; height: 32px; }
.user-avatar--md .user-avatar__img  { width: 40px; height: 40px; }
.user-avatar--lg .user-avatar__img  { width: 56px; height: 56px; }
.user-avatar--xl .user-avatar__img  { width: 80px; height: 80px; }

.user-avatar__initials {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: #000;
  font-weight: var(--weight-bold);
}

.user-avatar__status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
}

.user-avatar__status--online  { background: var(--brand-success); }
.user-avatar__status--away    { background: var(--brand-warning); }
.user-avatar__status--offline { background: var(--text-muted); }

/* WALLET */
.wallet-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

.wallet-display__symbol {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.wallet-display__amount {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  color: var(--brand-primary);
}

/* VIP BADGE */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.5px;
}

.vip-badge--bronze   { background: linear-gradient(135deg, #CD7F32, #B5651D); color: #fff; }
.vip-badge--silver   { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #000; }
.vip-badge--gold     { background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #000; }
.vip-badge--platinum { background: linear-gradient(135deg, #E8E8E8, #B0B0B0); color: #000; }
.vip-badge--diamond  { background: linear-gradient(135deg, #B9F2FF, #4FC3F7); color: #000; }
.vip-badge--vip      { background: linear-gradient(135deg, #9B59B6, #6C3483); color: #fff; }

/* ----------------------------------------------------------------
   24. FILTERS & SEARCH
   ---------------------------------------------------------------- */
.search-bar {
  position: relative;
  width: 100%;
}

.search-bar__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar__input {
  width: 100%;
  padding: 11px var(--space-5) 11px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--ease-fast);
}

.search-bar__input::placeholder { color: var(--text-muted); }
.search-bar__input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.10);
}

.search-bar__clear {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
  background: none;
  border: none;
  padding: 4px;
  border-radius: 50%;
}

.search-bar__clear:hover { color: var(--text-primary); background: var(--bg-hover); }

/* FILTER PILLS */
.filter-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--border-brand);
  color: var(--brand-primary);
}

.filter-pill.active {
  background: rgba(var(--brand-primary-rgb), 0.10);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-pill__remove {
  color: inherit;
  cursor: pointer;
  margin-left: 2px;
  opacity: 0.7;
}

.filter-pill__remove:hover { opacity: 1; }

/* ----------------------------------------------------------------
   25. PAGINATION
   ---------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all var(--ease-fast);
  font-family: var(--font-body);
}

.page-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.page-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #000;
  font-weight: var(--weight-bold);
}

.page-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ----------------------------------------------------------------
   26. PROGRESS & METERS
   ---------------------------------------------------------------- */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.progress--sm { height: 4px; }
.progress--lg { height: 12px; }

.progress--success .progress__fill { background: linear-gradient(90deg, var(--brand-success), #4ADE80); }
.progress--danger  .progress__fill { background: linear-gradient(90deg, var(--brand-danger), #FF7F7F); }
.progress--info    .progress__fill { background: linear-gradient(90deg, var(--brand-info), #93C5FD); }

/* CIRCULAR PROGRESS */
.circular-progress {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.circular-progress svg { transform: rotate(-90deg); }

.circular-progress__track { fill: none; stroke: var(--bg-overlay); }
.circular-progress__fill  { fill: none; stroke: var(--brand-primary); stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }

.circular-progress__label {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   27. ACCORDION
   ---------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: var(--space-2); }

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease-fast);
}

.accordion-item.open { border-color: var(--border-brand); }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--ease-fast);
}

.accordion-trigger:hover { background: var(--bg-hover); }

.accordion-icon {
  transition: transform var(--ease-normal);
  color: var(--text-muted);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease-slow);
}

.accordion-item.open .accordion-content { max-height: 1000px; }

.accordion-body {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ----------------------------------------------------------------
   28. SKELETONS / LOADING
   ---------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-overlay) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text { height: 14px; border-radius: var(--radius-full); }
.skeleton--title { height: 24px; border-radius: var(--radius-full); }
.skeleton--avatar { border-radius: 50%; }
.skeleton--card { height: 200px; border-radius: var(--radius-xl); }
.skeleton--btn { height: 40px; border-radius: var(--radius-md); }

/* SPINNER */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-default);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.spinner--lg { width: 40px; height: 40px; border-width: 4px; }

/* FULL-PAGE LOADER */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: var(--z-topmost);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.page-loader__logo {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  letter-spacing: 6px;
  color: var(--brand-primary);
  animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.97); }
}

/* ----------------------------------------------------------------
   29. EMPTY STATES
   ---------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  gap: var(--space-4);
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-2xl);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
}

.empty-state__title { font-size: var(--text-xl); font-weight: var(--weight-semi); color: var(--text-primary); }
.empty-state__desc { font-size: var(--text-sm); color: var(--text-muted); max-width: 320px; }

/* ----------------------------------------------------------------
   30. FOOTER
   ---------------------------------------------------------------- */
.footer {
  grid-area: footer;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  padding: var(--space-12) 0;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  max-width: 260px;
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.footer__links { display: flex; flex-direction: column; gap: var(--space-2); }

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--ease-fast);
}

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

.footer__bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* PAYMENT LOGOS */
.payment-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.payment-logo {
  height: 22px;
  opacity: 0.45;
  transition: opacity var(--ease-fast);
  filter: grayscale(1);
}

.payment-logo:hover { opacity: 0.85; filter: grayscale(0); }

/* AGE VERIFICATION */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   31. MOBILE BOTTOM NAVIGATION
   ---------------------------------------------------------------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  backdrop-filter: blur(20px);
  padding: var(--space-2) 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav__items {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
  border-radius: var(--radius-md);
  min-width: 48px;
}

.mobile-nav__item.active { color: var(--brand-primary); }
.mobile-nav__item--cta {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #000;
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.4);
}

.mobile-nav__label { font-size: 10px; font-weight: var(--weight-medium); }

/* ----------------------------------------------------------------
   32. DRAWERS / SHEETS
   ---------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-normal);
}

.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-modal);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  border: 1px solid var(--border-default);
  z-index: calc(var(--z-modal) + 1);
  transform: translateY(100%);
  transition: transform var(--ease-spring);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.drawer-overlay.open .drawer { transform: translateY(0); }

.drawer--left {
  bottom: auto;
  top: 0;
  left: 0;
  right: auto;
  width: min(320px, 90vw);
  height: 100%;
  max-height: none;
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  transform: translateX(-100%);
}

.drawer-overlay.open .drawer--left { transform: translateX(0); }

.drawer__handle {
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  margin: var(--space-3) auto;
  flex-shrink: 0;
}

.drawer__header {
  padding: var(--space-2) var(--space-6) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.drawer__title { font-size: var(--text-lg); font-weight: var(--weight-semi); color: var(--text-primary); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6); }

/* ----------------------------------------------------------------
   33. THEME TOGGLE
   ---------------------------------------------------------------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease-fast);
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-brand);
  color: var(--brand-primary);
}

.theme-toggle__icon { transition: all var(--ease-spring); }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"]  .theme-toggle .icon-sun  { display: none; }

/* ----------------------------------------------------------------
   34. SECTION HEADERS
   ---------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1;
}

.section-title .accent { color: var(--brand-primary); }

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ----------------------------------------------------------------
   35. SPORT ICONS / EMOJI
   ---------------------------------------------------------------- */
.sport-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--ease-fast);
}

.sport-icon:hover { background: rgba(var(--brand-primary-rgb), 0.10); }

/* ----------------------------------------------------------------
   36. CHAT / SUPPORT WIDGET
   ---------------------------------------------------------------- */
.chat-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-overlay);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #000;
  box-shadow: 0 4px 20px rgba(var(--brand-primary-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease-spring);
  border: none;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(var(--brand-primary-rgb), 0.55);
}

/* ----------------------------------------------------------------
   37. SCROLL SNAP CAROUSEL
   ---------------------------------------------------------------- */
.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
}

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

.carousel__item {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ----------------------------------------------------------------
   38. DIVIDERS
   ---------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-6) 0;
}

.divider--brand { border-top-color: var(--border-brand); }
.divider--strong { border-top-color: var(--border-strong); }

.divider--text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border: none;
  margin: var(--space-6) 0;
}

.divider--text::before,
.divider--text::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border-subtle);
}

/* ----------------------------------------------------------------
   39. FLOATING LABELS (Material Style)
   ---------------------------------------------------------------- */
.float-label {
  position: relative;
}

.float-label__input {
  width: 100%;
  padding: 20px var(--space-4) 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--ease-fast);
}

.float-label__label {
  position: absolute;
  top: 14px;
  left: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--ease-fast);
}

.float-label__input:focus + .float-label__label,
.float-label__input:not(:placeholder-shown) + .float-label__label {
  top: 6px;
  font-size: var(--text-xs);
  color: var(--brand-primary);
}

.float-label__input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.10);
}

/* ----------------------------------------------------------------
   40. ODDS MOVEMENT INDICATORS
   ---------------------------------------------------------------- */
.odds-change { display: inline-flex; align-items: center; gap: 3px; }
.odds-change--up { color: var(--text-success); }
.odds-change--down { color: var(--text-danger); }
.odds-change--up::before { content: '▲'; font-size: 8px; }
.odds-change--down::before { content: '▼'; font-size: 8px; }

/* ----------------------------------------------------------------
   41. COOKIE BANNER
   ---------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  z-index: var(--z-toast);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  backdrop-filter: blur(12px);
  transform: translateY(140%);
  transition: transform var(--ease-spring);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner__text { font-size: var(--text-sm); color: var(--text-secondary); flex: 1; }
.cookie-banner__text a { color: var(--brand-primary); }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }

/* ----------------------------------------------------------------
   42. NOTIFICATION CENTER
   ---------------------------------------------------------------- */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: background var(--ease-fast);
  cursor: pointer;
  position: relative;
}

.notification-item:hover { background: var(--bg-hover); }
.notification-item.unread { background: rgba(var(--brand-primary-rgb), 0.04); }

.notification-item__dot {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.notification-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notification-item__title { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-primary); }
.notification-item__msg { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }
.notification-item__time { font-size: var(--text-xs); color: var(--text-muted); }

/* ----------------------------------------------------------------
   43. CODE / MONO
   ---------------------------------------------------------------- */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--brand-primary);
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   44. RESPONSIVE UTILITIES
   ---------------------------------------------------------------- */
.show-mobile { display: none; }
.hide-mobile { display: block; }

/* ----------------------------------------------------------------
   45. TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------- */
.text-xs      { font-size: var(--text-xs); }
.text-sm      { font-size: var(--text-sm); }
.text-base    { font-size: var(--text-base); }
.text-md      { font-size: var(--text-md); }
.text-lg      { font-size: var(--text-lg); }
.text-xl      { font-size: var(--text-xl); }
.text-2xl     { font-size: var(--text-2xl); }
.text-3xl     { font-size: var(--text-3xl); }
.text-display { font-family: var(--font-display); letter-spacing: 2px; line-height: var(--leading-tight); }
.text-mono    { font-family: var(--font-mono); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-brand     { color: var(--text-brand); }
.text-success   { color: var(--text-success); }
.text-danger    { color: var(--text-danger); }
.text-warning   { color: var(--text-warning); }
.text-info      { color: var(--text-info); }

.font-light   { font-weight: var(--weight-light); }
.font-regular { font-weight: var(--weight-regular); }
.font-medium  { font-weight: var(--weight-medium); }
.font-semi    { font-weight: var(--weight-semi); }
.font-bold    { font-weight: var(--weight-bold); }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.uppercase   { text-transform: uppercase; letter-spacing: 1px; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------------
   46. SPACING UTILITIES
   ---------------------------------------------------------------- */
.p-1  { padding: var(--space-1); }
.p-2  { padding: var(--space-2); }
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-5  { padding: var(--space-5); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }

.m-auto { margin: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* ----------------------------------------------------------------
   47. VISUAL UTILITIES
   ---------------------------------------------------------------- */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border         { border: 1px solid var(--border-default); }
.border-subtle  { border: 1px solid var(--border-subtle); }
.border-strong  { border: 1px solid var(--border-strong); }
.border-brand   { border: 1px solid var(--border-brand); }
.border-top     { border-top: 1px solid var(--border-default); }
.border-bottom  { border-bottom: 1px solid var(--border-default); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.bg-surface  { background: var(--bg-surface); }
.bg-elevated { background: var(--bg-elevated); }
.bg-overlay  { background: var(--bg-overlay); }

/* ----------------------------------------------------------------
   48. ANIMATIONS
   ---------------------------------------------------------------- */
.fade-in  { animation: fadeIn var(--ease-normal) forwards; }
.slide-up { animation: slideUp 0.4s var(--ease-spring) forwards; }
.scale-in { animation: scaleIn 0.3s var(--ease-spring) forwards; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float { animation: float 3s ease-in-out infinite; }

/* STAGGER CHILDREN */
.stagger > * { opacity: 0; animation: slideUp 0.4s var(--ease-spring) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }

/* GLOW */
.glow { box-shadow: var(--shadow-glow); }
.glow-brand { box-shadow: var(--shadow-brand); }

/* ----------------------------------------------------------------
   49. PRINT STYLES
   ---------------------------------------------------------------- */
@media print {
  .header, .sidebar, .betslip, .mobile-nav,
  .chat-fab, .cookie-banner, .toast-container { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .match-card { border: 1px solid #ccc; }
}

/* ----------------------------------------------------------------
   50. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------- */
/* Tablet — max 1024px */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }

  .hero__title { font-size: var(--text-4xl); }
  .footer__main { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile — max 768px */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --space-6: 20px;
  }

  .show-mobile { display: flex; }
  .hide-mobile { display: none; }

  .app-wrapper--sidebar { grid-template-columns: 1fr; grid-template-areas: "header" "main" "footer"; }
  .sidebar { display: none; }
  .mobile-nav { display: block; }

  body { padding-bottom: 70px; }

  .hero { min-height: 70vh; }
  .hero__title { font-size: var(--text-3xl); }
  .hero__content { max-width: 100%; }

  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-10) 0; }

  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }

  .footer__main { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__brand-desc { max-width: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .betslip {
    width: 100%;
    top: auto;
    bottom: 70px;
    left: 0;
    height: 80vh;
    border-top: 1px solid var(--border-default);
    border-left: none;
    transform: translateY(100%);
  }

  .betslip.open { transform: translateY(0); }

  .modal { max-width: 100%; margin: 0 var(--space-4); border-radius: var(--radius-2xl); }
  .modal-overlay { padding: var(--space-4); align-items: flex-end; }

  .tabs__nav { overflow-x: auto; scrollbar-width: none; }
  .tabs__nav::-webkit-scrollbar { display: none; }

  .nav { display: none; }

  .promo-banner { min-height: 160px; }
  .promo-banner__content { padding: var(--space-6); }
  .promo-banner__title { font-size: var(--text-2xl); }

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

  .toast-container { left: var(--space-4); right: var(--space-4); bottom: 80px; }
  .toast { min-width: auto; max-width: none; width: 100%; }

  .cookie-banner { flex-direction: column; bottom: 80px; }
}

/* Small Mobile — max 480px */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-card { flex-direction: column; }
  .header__inner { padding: 0 var(--space-4); }
}

/* ================================================================
   END OF KLEOBET STYLE.CSS
   ================================================================ */
