/* =============================================
   ApostasEsports — Gaming RGB / Dark + Multicolor Neon
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #0a0a0f;
  --primary: #ff3864;
  --secondary: #2dcddf;
  --accent: #ffe227;
  --text: #eaeaf0;
  --muted: #5a5a70;
  --surface: #12121a;
  --border: #1e1e2e;
  --font-main: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --gradient-rgb: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  --gradient-btn: linear-gradient(135deg, var(--primary), var(--secondary));
  --glow-pink: 0 0 20px rgba(255, 56, 100, 0.4);
  --glow-cyan: 0 0 20px rgba(45, 205, 223, 0.4);
  --glow-yellow: 0 0 20px rgba(255, 226, 39, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
  overflow-x: hidden;
  position: relative;
}

/* --- Scanline Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-shadow: var(--glow-pink);
}

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

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* --- Animated Gradient Border Keyframes --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 56, 100, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 56, 100, 0.6), 0 0 40px rgba(45, 205, 223, 0.3); }
}

@keyframes borderGlow {
  0% { border-color: var(--primary); }
  33% { border-color: var(--secondary); }
  66% { border-color: var(--accent); }
  100% { border-color: var(--primary); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 56, 100, 0.5); }
  50% { text-shadow: 0 0 20px rgba(45, 205, 223, 0.7), 0 0 40px rgba(255, 226, 39, 0.3); }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Scroll Animation --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

.navbar-brand span {
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-shadow: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 56, 100, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(45, 205, 223, 0.05) 0%, transparent 50%),
              var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 .gradient-text {
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
  padding: 20px 25px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  position: relative;
  min-width: 140px;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.stat-box .stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--secondary);
  display: block;
  line-height: 1;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  display: block;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-pink), var(--glow-cyan);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* =============================================
   GAME CATEGORY TABS
   ============================================= */
.game-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.game-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-tab .game-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.game-tab:hover,
.game-tab.active {
  color: var(--text);
  border-color: var(--primary);
}

.game-tab.active {
  background: rgba(255, 56, 100, 0.1);
}

.game-tab[data-game="cs2"] .game-icon { color: var(--accent); }
.game-tab[data-game="lol"] .game-icon { color: #c89b3c; }
.game-tab[data-game="valorant"] .game-icon { color: var(--primary); }
.game-tab[data-game="dota2"] .game-icon { color: var(--secondary); }

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-header h2 .gradient-text {
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  margin: 15px auto 0;
  border: none;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* =============================================
   RANKING / LEADERBOARD
   ============================================= */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rank-card {
  display: grid;
  grid-template-columns: 60px 1fr 150px 180px 120px 140px;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.rank-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.rank-card.rank-1 {
  border-color: var(--accent);
}

.rank-card.rank-1::before {
  height: 3px;
  background: var(--accent);
}

.rank-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--muted);
  text-align: center;
  line-height: 1;
}

.rank-card.rank-1 .rank-number { color: var(--accent); }
.rank-card.rank-2 .rank-number { color: var(--secondary); }
.rank-card.rank-3 .rank-number { color: var(--primary); }

.rank-info h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  text-transform: none;
}

.rank-info .rank-games {
  display: flex;
  gap: 8px;
}

.rank-info .rank-games span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(45, 205, 223, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(45, 205, 223, 0.2);
}

.rank-bonus {
  text-align: center;
}

.rank-bonus .bonus-amount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
}

.rank-bonus .bonus-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.rank-score {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rank-score .score-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.score-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border-radius: 2px;
  transition: width 1s ease;
}

.rank-odds {
  text-align: center;
}

.rank-odds .odds-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  display: block;
}

.rank-odds .odds-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.rank-cta .btn {
  white-space: nowrap;
}

/* =============================================
   TOURNAMENT SECTION
   ============================================= */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tournament-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.tournament-card:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.tournament-game {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.tournament-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: none;
}

.tournament-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.tournament-meta span {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tournament-meta .meta-icon {
  color: var(--accent);
  font-weight: 700;
}

.tournament-prizepool {
  font-family: var(--font-mono);
  color: var(--accent) !important;
  font-weight: 600;
}

/* =============================================
   HOW-TO / STEPS SECTION
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.step-card:hover {
  border-color: var(--primary);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 15px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* =============================================
   ARTICLES GRID
   ============================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.article-card:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.article-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.article-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: none;
}

.article-card-body p {
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
}

.article-card-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-card-footer .read-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.article-card-footer .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

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

.footer-brand {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-about p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
  text-shadow: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Responsible Gambling Notice --- */
.responsible-gambling {
  background: rgba(255, 56, 100, 0.05);
  border: 1px solid rgba(255, 56, 100, 0.2);
  border-radius: 2px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.responsible-gambling h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 10px;
}

.responsible-gambling p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.age-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* =============================================
   ARTICLE PAGE STYLES
   ============================================= */
.article-hero {
  padding: 120px 0 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 56, 100, 0.06) 0%, transparent 60%),
              var(--bg);
  border-bottom: 1px solid var(--border);
}

.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-hero .breadcrumb a {
  color: var(--muted);
}

.article-hero .breadcrumb a:hover {
  color: var(--secondary);
}

.article-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  text-transform: none;
}

.article-meta {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta .meta-icon {
  color: var(--secondary);
}

.article-content {
  padding: 60px 0;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 3px solid var(--primary);
  text-transform: none;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 30px 0 15px;
  text-transform: none;
}

.article-body p {
  font-size: 1.05rem;
  color: #c5c5d5;
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
}

.article-body li {
  font-size: 1.02rem;
  color: #c5c5d5;
  margin-bottom: 8px;
}

/* --- Info Box (in articles) --- */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: 2px;
  padding: 20px 25px;
  margin: 25px 0;
}

.info-box h4 {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 10px;
}

.info-box p, .info-box li {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- CTA Box (in articles) --- */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 30px;
  text-align: center;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.cta-box h3 {
  margin-bottom: 10px;
  text-transform: none;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* --- FAQ Section --- */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(45, 205, 223, 0.05);
}

.faq-question .faq-toggle {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-answer.open {
  padding: 0 25px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: var(--surface);
}

.comparison-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--secondary);
  border-bottom: 2px solid var(--border);
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: #c5c5d5;
}

.comparison-table tbody tr:hover {
  background: rgba(45, 205, 223, 0.03);
}

.comparison-table .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* --- TOC (Table of Contents) --- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 25px 30px;
  margin: 25px 0;
}

.toc h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--secondary);
  text-shadow: none;
}

/* =============================================
   SIDEBAR (for articles if needed)
   ============================================= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.sidebar-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rgb);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .rank-card {
    grid-template-columns: 50px 1fr 1fr;
    gap: 15px;
  }

  .rank-score, .rank-odds {
    display: none;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 { font-size: 2.2rem; }

  .hero-stats { gap: 15px; }

  .stat-box { min-width: 120px; padding: 15px; }

  .rank-card {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .rank-bonus, .rank-score, .rank-odds {
    display: none;
  }

  .rank-cta {
    grid-column: 1 / -1;
  }

  .rank-cta .btn {
    display: block;
    width: 100%;
  }

  .game-tabs {
    gap: 6px;
  }

  .game-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .article-hero h1 { font-size: 1.8rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 50px; }
  .hero h1 { font-size: 1.8rem; }

  .stat-box { min-width: 100px; }

  .rank-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rank-number {
    font-size: 1.5rem;
  }
}
