/* ==========================================================================
   1. VARIABLES & BASE RESET (GOD55 Dark & Gold Theme)
   ========================================================================== */
:root {
  --primary-color: #d4af37; /* Gold */
  --primary-hover: #fced89; /* Light Gold */
  --brand-accent: #cc0000; /* Red for Join Now & Badges */
  --brand-accent-hover: #ff1a1a;
  
  --gold-gradient: linear-gradient(180deg, #fced89 0%, #d4af37 100%);
  --red-gradient: linear-gradient(180deg, #ff3333 0%, #b30000 100%);
  
  --bg-color: #141414; /* Dark grey for cards/panels */
  --bg-alt: #000000; /* Deep black for body */
  --secondary-color: #1a1a1a; /* Slightly lighter grey for headers/tables */
  
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #333333;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.8);
  --radius-md: 6px;
  --radius-lg: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-alt);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
}

/* Золотая кнопка Login */
.btn-login {
  background: var(--gold-gradient);
  color: #000000;
  box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

.btn-login:hover {
  background: linear-gradient(180deg, #fff4a3 0%, #e6c147 100%);
  transform: translateY(-1px);
}

/* Красная кнопка Join Now */
.btn-register {
  background: var(--red-gradient);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(204, 0, 0, 0.3);
}

.btn-register:hover {
  background: linear-gradient(180deg, #ff4d4d 0%, #cc0000 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary-color);
}

/* ==========================================================================
   3. MOBILE SIDEBAR MENU
   ========================================================================== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: #111111; 
  box-shadow: 2px 0 15px rgba(0,0,0,0.8);
  z-index: 1001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.mobile-sidebar.active {
  left: 0;
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.close-menu {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  color: var(--text-muted); 
}

.close-menu:hover {
  color: var(--primary-color);
}

.mobile-auth {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.mobile-auth .btn {
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
}

.mobile-nav ul li a {
  display: block;
  padding: 16px 0;
  color: var(--text-light); 
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border-color); 
  transition: var(--transition);
}

.mobile-nav ul li:last-child a {
  border-bottom: none;
}

.mobile-nav ul li a.active,
.mobile-nav ul li a:hover {
  color: var(--primary-color); 
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

.desktop-only { display: none; }

/* ==========================================================================
   4. GLOBAL TEMPLATE BLOCKS
   ========================================================================== */
.page-wrapper {
  padding-top: 20px;
  padding-bottom: 40px;
}

.hero-banner { margin-bottom: 25px; }
.hero-banner img {
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: var(--shadow-md);
}

/* Блок Джекпота (подготовка для HTML) */
.jackpot-banner {
  background: #0a0a0a;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.popular-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.game-card-mini {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: block;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.game-card-mini img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.game-card-mini span {
  display: block;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

.game-card-mini:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* In-Play / Promo Blocks */
.in-play-block {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 15px;
  margin-bottom: 25px;
}

.in-play-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.in-play-header h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
}

.live-badge {
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.in-play-list {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid var(--border-color);
}

.match-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.match-row:last-child {
  border-bottom: none;
}

.match-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.odd-btn {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.odd-btn:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-hover);
}

/* ==========================================================================
   5. ARTICLE & SEO CONTENT
   ========================================================================== */
.seo-article {
  background: var(--bg-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.breadcrumbs {
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumbs li::after {
  content: "›";
  margin-left: 5px;
}

.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--primary-color); }

.seo-article h1 {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--primary-color);
}

.seo-article h2 {
  font-size: 20px;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-hover);
}

.seo-article h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: var(--text-light);
}

.seo-article p { margin-bottom: 15px; color: #cccccc; }
.seo-article ul:not(.toc-list), .seo-article ol {
  margin-bottom: 15px;
  padding-left: 20px;
  color: #cccccc;
}
.seo-article li { margin-bottom: 8px; }

/* Золотая кнопка призыва к действию в тексте */
.content-promo-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold-gradient);
  color: #000000;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 800;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
  border: none;
}

.content-promo-btn:hover {
  background: linear-gradient(180deg, #fff4a3 0%, #e6c147 100%);
  color: #000000;
  transform: translateY(-2px);
}

/* TOC */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 25px 0;
}

.toc-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.toc-list li { margin-bottom: 10px; }
.toc-list a {
  color: #cccccc;
  font-weight: 500;
}
.toc-list a:hover {
  color: var(--primary-hover);
  padding-left: 5px;
}

/* Grids & Tables */
.games-grid-seo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 20px 0;
}

.games-grid-seo .game-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.games-grid-seo .game-card:hover {
  border-color: var(--primary-color);
}

.games-grid-seo .game-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 16px;
}

.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

.bonus-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--bg-alt);
}

.bonus-table th, .bonus-table td {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  text-align: left;
  color: #cccccc;
}

.bonus-table th {
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
}

/* FAQ */
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.faq-item:hover {
  background: var(--secondary-color);
}

.faq-item h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--primary-hover);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gold-gradient);
  color: #000;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
  background: #0a0a0a;
  color: #a0a0a0;
  padding: 40px 0 20px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer h4 {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-section { margin-bottom: 30px; }

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.logo-grid img {
  height: 30px;
  background: #1a1a1a;
  padding: 5px;
  border: 1px solid #333;
  border-radius: 4px;
}

.footer-links ul li { margin-bottom: 8px; }
.footer-links a { color: #a0a0a0; }
.footer-links a:hover { color: var(--primary-color); }

.footer-disclaimer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 12px;
  text-align: justify;
}

.resp-logos {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.resp-logos img { height: 35px; }

/* ==========================================================================
   7. DESKTOP MEDIA QUERIES (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .desktop-only { display: flex; }
  
  .main-nav ul {
    display: flex;
    gap: 25px;
  }
  
  .main-nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    padding: 5px 0;
    text-transform: uppercase;
  }

  .main-nav a.active, .main-nav a:hover {
    color: var(--primary-color);
  }

  .page-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
  }

  .main-content-area { grid-column: 1 / 2; }
  .sidebar-area {
    grid-column: 2 / 3;
    position: sticky;
    top: 80px;
  }

  .popular-games-grid {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .in-play-block { padding: 20px; }
  .match-row {
    flex-direction: row;
    align-items: center;
  }
  .match-info {
    width: 50%;
    margin-bottom: 0;
  }
  .odds-grid { width: 50%; }

  .seo-article { padding: 40px; }
  .seo-article h1 { font-size: 32px; }
  .seo-article h2 { font-size: 24px; }

  .games-grid-seo { grid-template-columns: repeat(2, 1fr); }
  .content-promo-btn {
    width: auto;
    padding: 15px 40px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  .footer-disclaimer { grid-column: 1 / -1; }
}

/* ==========================================================================
   8. JACKPOT MOBILE FIX & SPORTS CAROUSEL
   ========================================================================== */
/* Адаптивность Джекпота */
.jackpot-banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.jackpot-title {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: right;
}
.jackpot-title span {
  font-size: 32px;
  color: #fff;
}
.jackpot-numbers {
  display: flex;
  gap: 4px;
  font-size: 36px;
  font-weight: bold;
  font-family: monospace;
  flex-wrap: wrap;
  justify-content: center;
}
.jackpot-numbers span {
  background: #000;
  padding: 5px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .jackpot-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .jackpot-title { text-align: center; font-size: 20px; }
  .jackpot-title span { font-size: 26px; }
  .jackpot-numbers { font-size: 22px; gap: 2px; }
  .jackpot-numbers span { padding: 4px 6px; }
}

/* Спортивная карусель (Карточки матчей) */
.sports-carousel {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.sports-carousel::-webkit-scrollbar {
  display: none; /* Safari / Chrome */
}
.sports-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.sports-card-header {
  background: var(--gold-gradient);
  color: #000;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}
.sports-card-body {
  padding: 15px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.team-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}
.badge-h { background: #22c55e; } /* Зеленый для Home */
.badge-a { background: #f97316; } /* Оранжевый для Away */

.sports-card-odds {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.odds-pill {
  background: #333333;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.odds-pill span.label {
  color: #888;
  font-weight: 500;
  font-size: 11px;
}