/* ============================================================
   WinLuxo Landing Page — CSS
   Theme: Dark gaming, neon-lime accent #D7FF00
   ============================================================ */

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

:root {
  --bg-primary:    #13121E;
  --bg-secondary:  #1D1B29;
  --bg-card:       #252338;
  --bg-hover:      #2E2B47;
  --accent:        #D7FF00;
  --accent-dim:    rgba(215, 255, 0, 0.12);
  --accent-border: rgba(215, 255, 0, 0.3);
  --text-primary:  #F5F9FF;
  --text-secondary:#B8C7E0;
  --text-muted:    #5E6F8A;
  --border:        rgba(255, 255, 255, 0.07);
  --border-light:  rgba(255, 255, 255, 0.12);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 8px 32px rgba(215, 255, 0, 0.25);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --nav-h:     68px;
  --sidebar-w: 240px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

/* ============================================================
   PAGE LAYOUT — sidebar + main
   ============================================================ */
.page-body { margin-left: var(--sidebar-w); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--nav-h));
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 70;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

/* thin scrollbar inside nav area */
.sb-nav { overflow-y: auto; flex: 1; }
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-track { background: transparent; }
.sb-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* mobile backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sidebar-backdrop.open { display: block; }

/* hamburger in nav (mobile) */
.nav__hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav__hamburger:hover { color: var(--text-primary); }
.nav__hamburger svg { width: 18px; height: 18px; }

/* sidebar header */
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 14px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-title svg { width: 18px; height: 18px; color: var(--text-muted); }
.sb-lang-flag {
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 2px;
  border-radius: 4px;
  transition: transform 0.2s;
}
.sb-lang-flag:hover { transform: scale(1.15); }

/* search */
.sb-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 11px;
  transition: border-color 0.2s;
}
.sb-search-wrap:focus-within { border-color: var(--accent-border); }
.sb-search-wrap svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.sb-search-input {
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
}
.sb-search-input::placeholder { color: var(--text-muted); }

/* casino / sports toggle */
.sb-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.sb-cat svg { width: 15px; height: 15px; flex-shrink: 0; }
.sb-cat:hover { color: var(--text-primary); border-color: var(--border-light); }
.sb-cat.active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }

/* nav items */
.sb-nav { padding: 8px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  margin-bottom: 2px;
}
.sb-item:hover { background: var(--bg-card); color: var(--text-primary); }
.sb-item.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sb-icon { width: 19px; height: 19px; flex-shrink: 0; }
.sb-label { flex: 1; }
.sb-chevron { width: 13px; height: 13px; color: var(--text-muted); flex-shrink: 0; }
.sb-item.vip .sb-icon { color: #f59e0b; }


/* ============================================================
   LOBBY CATEGORY TABS
   ============================================================ */
.lobby-tabs {
  display: flex;
  gap: 6px;
  padding: 0 24px;
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.lobby-tabs::-webkit-scrollbar { display: none; }
.lobby-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.lobby-tab svg { width: 14px; height: 14px; }
.lobby-tab:hover { color: var(--text-secondary); }
.lobby-tab.active { background: var(--bg-secondary); color: var(--accent); border-color: var(--border-light); }


/* ============================================================
   GAME CARD GRADIENT PLACEHOLDER
   ============================================================ */
.game-card--grad .game-card__img { display: none; }
.game-card--grad {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.game-card__grad-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}


/* ============================================================
   LIVE CASINO SECTION
   ============================================================ */
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  z-index: 2;
}
.live-players {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  text-align: center;
}


/* ============================================================
   SPORTSBOOK LIST
   ============================================================ */
.sports-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.sport-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sport-item:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
  transform: translateX(3px);
}
.sport-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sport-icon svg { width: 20px; height: 20px; color: var(--text-secondary); }
.sport-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.sport-cta {
  padding: 8px 18px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.sport-item:hover .sport-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D0C17;
}

/* sport-item as <a> tag */
a.sport-item { text-decoration: none; }


/* ============================================================
   RESPONSIVE — sidebar
   ============================================================ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .page-body { margin-left: 0; }
  .nav__hamburger { display: flex; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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


/* ============================================================
   PROMO BAR
   ============================================================ */
.promo-bar {
  background: var(--accent);
  color: #0D0C17;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 100;
  transition: height 0.3s var(--ease), opacity 0.3s;
  overflow: hidden;
}

.promo-bar.dismissed {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.promo-bar__text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-bar__text::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #0D0C17;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

.promo-bar__dismiss {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  color: #0D0C17;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.promo-bar__dismiss:hover { background: rgba(0,0,0,0.28); }

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


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  background: rgba(19, 18, 30, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 16px;
}

/* Hide old logo image — show only the wordmark */
.nav__logo-img { display: none; }

.nav__logo-wordmark {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav__logo-wordmark em {
  font-style: normal;
  color: var(--accent);
}

/* Nav tabs */
.nav__tabs {
  display: flex;
  gap: 2px;
}

.nav__tab {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

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

.nav__tab.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

/* Spacer */
.nav__spacer { flex: 1; }

/* Language switcher */
.nav__lang {
  position: relative;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.nav__lang-btn:hover {
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.nav__lang-btn svg {
  transition: transform 0.2s;
}

.nav__lang-btn.open svg {
  transform: rotate(180deg);
}

.nav__lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  min-width: 160px;
  padding: 6px;
  display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  animation: dropdown-in 0.15s var(--ease);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__lang-dropdown.open { display: block; }

.nav__lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

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

.nav__lang-option.active {
  color: var(--accent);
}

.nav__lang-flag {
  font-size: 18px;
  line-height: 1;
}

/* Auth buttons */
.nav__auth {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

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

.btn-outline:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-primary {
  background: var(--accent);
  color: #0D0C17;
}

.btn-primary:hover {
  background: #cbf000;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--r-md);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #13121E 35%, rgba(19,18,30,0.1) 100%),
    linear-gradient(0deg, #13121E 0%, transparent 40%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}

.hero__stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
}

.hero__stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__banner-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.hero__banner-wrap img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 80px rgba(215,255,0,0.08);
}

.hero__banner-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(215,255,0,0.25) 0%, transparent 70%);
  pointer-events: none;
}


/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.cat-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border), 0 16px 48px rgba(0,0,0,0.5);
}

.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.cat-card:hover .cat-card__img {
  transform: scale(1.04);
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,12,23,0.82) 0%, rgba(13,12,23,0.25) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px 24px;
}

.cat-card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.cat-card.active .cat-card__title { color: var(--accent); }

.cat-card__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 3px;
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 56px 0;
}

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section__title-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section__title-icon svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.section__viewall {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.section__viewall:hover { color: var(--accent); }

.section__viewall svg { width: 14px; height: 14px; }


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

.game-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
}

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

.game-card:hover .game-card__img {
  transform: scale(1.07);
}

/* Always-visible bottom name */
.game-card__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(13,12,23,0.92) 0%, transparent 100%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  transition: opacity 0.25s;
}

/* Hover overlay */
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,12,23,0.97) 0%, rgba(13,12,23,0.6) 50%, rgba(13,12,23,0.2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px;
  gap: 7px;
  opacity: 0;
  transition: opacity 0.25s;
}

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

.game-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

.game-card__provider {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.game-card__btn {
  padding: 8px 4px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}

.game-card__btn--play {
  background: var(--accent);
  color: #0D0C17;
}

.game-card__btn--play:hover { background: #cbf000; }

.game-card__btn--demo {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.game-card__btn--demo:hover { background: rgba(255,255,255,0.18); }


/* ============================================================
   LIVE BETS FEED
   ============================================================ */
.livefeed {
  padding: 48px 0 56px;
}

.livefeed__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.livefeed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.livefeed__tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 4px;
  border: 1px solid var(--border);
}

.livefeed__tab {
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}

.livefeed__tab.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.livefeed__tab:hover:not(.active) { color: var(--text-secondary); }

.livefeed__live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.livefeed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 10px rgba(34,197,94,0.7); }
  50%       { opacity: 0.5; box-shadow: 0 0  3px rgba(34,197,94,0.2); }
}

/* Table shell */
.livefeed__table {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Header row */
.lf-head {
  display: grid;
  grid-template-columns: 2fr 1.1fr 0.75fr 1.1fr 0.85fr 1.1fr;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.lf-head-cell {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-align: right;
}
.lf-head-cell:first-child { text-align: left; }

/* Rows container */
.lf-rows {
  max-height: 480px;
  overflow: hidden;
}

/* Data row */
.lf-row {
  display: grid;
  grid-template-columns: 2fr 1.1fr 0.75fr 1.1fr 0.85fr 1.1fr;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
  transition: background 0.15s;
  animation: lf-in 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes lf-in {
  from { opacity: 0; transform: translateY(-10px); background: rgba(215,255,0,0.04); }
  to   { opacity: 1; transform: none;              background: transparent; }
}

.lf-row:hover { background: rgba(255,255,255,0.02); }
.lf-row:last-child { border-bottom: none; }

/* Game cell */
.lf-game {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.lf-thumb {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}

.lf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lf-game-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Generic right-aligned cell */
.lf-cell {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.lf-time {
  text-align: right;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Amount with currency badge */
.lf-amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.lf-cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 8.5px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

/* Multiplier */
.lf-mult {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Payout */
.lf-payout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lf-payout.up   { color: #22c55e; }
.lf-payout.down { color: #f43f5e; }

/* Responsive */
@media (max-width: 900px) {
  .lf-head,
  .lf-row { grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr; }
  .lf-col-time, .lf-time,
  .lf-col-mult, .lf-mult { display: none; }
}

@media (max-width: 520px) {
  .lf-head,
  .lf-row { grid-template-columns: 2fr 1.1fr 1.1fr; padding: 9px 14px; }
  .lf-col-player, .lf-cell { display: none; }
  .livefeed__tab { padding: 7px 13px; font-size: 12px; }
}


/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.features__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.features__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 48px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feat-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.feat-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45);
}

.feat-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feat-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feat-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feat-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ============================================================
   PAYMENTS
   ============================================================ */
.payments {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.payments__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payments__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.crypto-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.crypto-badge:hover {
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.crypto-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__brand .nav__logo-wordmark {
  display: block;
  font-size: 22px;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
  cursor: pointer;
}

.footer__contact-row:hover { color: var(--accent); }

.footer__contact-row svg { width: 14px; height: 14px; flex-shrink: 0; }

.footer__col-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__legal-links {
  display: flex;
  gap: 20px;
}

.footer__legal-link {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.footer__legal-link:hover { color: var(--text-secondary); }

.footer__disclaimer {
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 24px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--r-md);
  margin: 0 0 24px;
}


/* ============================================================
   GAME POPUP / MODAL  — cinematic full-bleed design
   ============================================================ */
.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 6, 18, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.popup-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Card shell — portrait, full-bleed image */
.popup {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 80px rgba(215, 255, 0, 0.06);
  transform: translateY(32px) scale(0.93);
  transition: transform 0.4s var(--ease);
}

.popup-backdrop.open .popup {
  transform: none;
}

/* Full-bleed background image */
.popup__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.6s var(--ease);
}

.popup-backdrop.open .popup__bg {
  transform: scale(1);
}

/* Cinematic gradient overlay — dark top + heavy dark bottom */
.popup__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 20, 0.62) 0%,
      rgba(8, 7, 20, 0.0)  28%,
      rgba(8, 7, 20, 0.0)  42%,
      rgba(8, 7, 20, 0.78) 68%,
      rgba(8, 7, 20, 0.97) 100%
    );
}

/* Accent glow strip at bottom edge */
.popup__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.7;
}

/* Close button */
.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 7, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.popup__close:hover {
  background: rgba(8, 7, 20, 0.88);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Top row: provider pill + optional featured badge */
.popup__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 64px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 2;
}

.popup__provider {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(8, 7, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Featured pill (auto-open only) */
.popup__featured {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(215, 255, 0, 0.12);
  border: 1px solid rgba(215, 255, 0, 0.35);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.popup__featured-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* Bottom content — floats over gradient */
.popup__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 22px 26px;
  z-index: 2;
}

.popup__title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.popup__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Popup bonus strip */
.popup__bonus {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(215, 255, 0, 0.1);
  border: 1px solid rgba(215, 255, 0, 0.25);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #D7FF00;
  margin-bottom: 16px;
  line-height: 1.3;
}
.popup__bonus-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.popup__bonus-icon svg { width: 14px; height: 14px; stroke: #D7FF00; }

.popup__btn-play {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 800;
  background: var(--accent);
  color: #0D0C17;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.popup__btn-play:hover {
  background: #cbf000;
  box-shadow: 0 6px 24px rgba(215, 255, 0, 0.4);
  transform: translateY(-1px);
}

.popup__btn-play:active { transform: scale(0.97); }

.popup__btn-demo {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.popup__btn-demo:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.popup__btn-demo:active { transform: scale(0.97); }

/* Mobile: slightly shorter card */
@media (max-width: 480px) {
  .popup { max-width: 340px; aspect-ratio: 5 / 7; }
  .popup__title { font-size: 28px; }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1 { transition-delay: 0.06s; }
  .reveal-delay-2 { transition-delay: 0.12s; }
  .reveal-delay-3 { transition-delay: 0.18s; }
  .reveal-delay-4 { transition-delay: 0.24s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; }
  .hero__visual { display: none; }
  .hero__stats { gap: 28px; margin-top: 28px; padding-top: 20px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  html, body { overflow-x: hidden; max-width: 100vw; }
  .page-body { overflow-x: hidden; }

  /* Nav */
  .nav__tabs { display: none; }
  .nav__inner { gap: 6px; padding: 0 12px; }
  .nav__logo { margin-right: 4px; }
  .nav__logo-wordmark { font-size: 18px; }

  /* Hero */
  .hero__inner { padding: 40px 16px 36px; gap: 0; }
  .hero__subtitle { font-size: 14px; margin-bottom: 28px; }
  .hero__stats { gap: 20px; margin-top: 24px; padding-top: 16px; }

  /* Layout */
  .categories { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* Live feed — horizontal scroll instead of overflow */
  .livefeed__inner { padding: 0; }
  .livefeed__table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lf-head, .lf-row { min-width: 520px; }

  /* Section inner padding */
  .section__inner { padding: 0 12px; }
  .livefeed__header { padding: 14px 12px 10px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .hero__cta { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__auth .btn-outline { display: none; }
  .nav__auth .btn-primary { padding: 8px 14px; font-size: 13px; }
  .payments__inner { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .sports-list { padding: 0; }
  .sport-item { padding: 12px 14px; }
  .sport-cta { padding: 7px 12px; font-size: 11px; }
  .feat-card { padding: 20px; }
}
