:root {
  --bg-primary: #0f0b1e;
  --bg-secondary: #1a1333;
  --bg-card: #231b3a;
  --bg-card-hover: #2e2448;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --gold: #ffd679;
  --gold-dark: #d4a843;
  --text-primary: #ffffff;
  --text-secondary: #a8a3b8;
  --text-muted: #6b6580;
  --border: rgba(139, 92, 246, 0.15);
  --gradient-hero: linear-gradient(135deg, #1a0a3e 0%, #0f0b1e 50%, #1a1333 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #d946ef);
  --gradient-gold: linear-gradient(135deg, #ffd679, #f59e0b);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 11, 30, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.header__logo img {
  height: 34px;
  width: auto;
}

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

.header__nav a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent-light);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn--gold {
  background: var(--gradient-gold);
  color: #1a0a3e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 214, 121, 0.25);
}

.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 214, 121, 0.35);
}

.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background: var(--gradient-hero);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('header-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-primary) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FEATURES ========== */
.features {
  padding: 50px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.feature-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

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

.section__title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__title-icon {
  font-size: 1.6rem;
}

.section__link {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* ========== GAME CARDS ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.game-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-secondary);
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 11, 30, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

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

.game-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.game-card__provider {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.game-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.game-card__badge--hot {
  background: #ef4444;
  color: #fff;
}

.game-card__badge--new {
  background: #22c55e;
  color: #fff;
}

.game-card__badge--top {
  background: var(--gold);
  color: #1a0a3e;
}

/* ========== CATEGORY TABS ========== */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.category-tab__icon {
  font-size: 1.1rem;
}

/* ========== BONUS CARDS ========== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bonus-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-2px);
}

.bonus-card__icon {
  font-size: 2.8rem;
}

.bonus-card__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.bonus-card__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex-grow: 1;
}

.bonus-card__highlight {
  display: inline-block;
  background: var(--gradient-gold);
  color: #1a0a3e;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ========== SEO TEXT ========== */
.seo-text {
  padding: 50px 0;
}

.seo-text__inner {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.seo-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
}

.seo-text h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.seo-text h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.seo-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.seo-text ol,
.seo-text ul {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 12px;
}

.seo-text li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  gap: 16px;
  user-select: none;
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--accent-light);
}

.faq-item__arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-item__arrow {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========== LIVE TABLE ========== */
.live-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.live-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-table td {
  padding: 14px 16px;
  background: var(--bg-card);
  font-size: 0.9rem;
}

.live-table tr td:first-child {
  border-radius: 10px 0 0 10px;
}

.live-table tr td:last-child {
  border-radius: 0 10px 10px 0;
}

.live-table .amount {
  color: #22c55e;
  font-weight: 700;
}

.live-table .game-name {
  font-weight: 600;
}

.live-table .provider {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ========== FOOTER ========== */
.footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand img {
  height: 34px;
  width: auto;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer__col-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__badge {
  padding: 5px 12px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  padding: 40px 0 30px;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ========== MOBILE MENU ========== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

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

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 20px 14px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .seo-text__inner {
    padding: 28px 20px;
  }

  .header__actions .btn--outline {
    display: none;
  }
}

/* ========== BREADCRUMBS ========== */
.breadcrumb {
  padding: 14px 0 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.breadcrumb__list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__list a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb__list a:hover {
  color: var(--accent-light);
}

.breadcrumb__sep {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.breadcrumb__current {
  color: var(--text-secondary);
}

/* ========== SEO LINK ========== */
.seo-link {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.3);
  text-underline-offset: 2px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.seo-link:hover {
  color: #c4b5fd;
  text-decoration-color: var(--accent-light);
}

/* ========== INTERNAL LINKS NAV ========== */
.internal-links {
  padding: 36px 0 0;
}

.internal-links__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.internal-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.internal-links__list a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.internal-links__list a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 48px 0 60px;
  text-align: center;
}

.cta-section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section__desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-section__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }
}
