/*
=============================================================
  sportg1.com - Global Stylesheet
  Reference Audit: sibp9j.sa.com (789BET Vietnam)
  Competitor Skeleton: Mixed homepage (Banner Slider + H1 + 2-col content+sidebar + Promo Sliders + FAQ + Heavy Footer)
  Template Mapping:
    Competitor #1: Full-width banner slider -> Our: Full-width banner image
    Competitor #2: H1 + 9/3 col (content+sidebar with recent posts) -> Our: H1 + 9/3 col (content+sidebar with quick links)
    Competitor #3: Promo card sliders (2-col grid) -> Our: Feature card grid (2-col)
    Competitor #4: Warning/Safety section -> Our: Safety tips section
    Competitor #5: FAQ accordion -> Our: FAQ accordion
    Competitor Footer: Single-col centered links + contact + payment icons -> Our: 4-col footer + contact + copyright
  Style DNA:
    layout_bias: mixed (分发型 + 长文SEO)
    hero_layout: 全宽Banner轮播
    nav_alignment: 左Logo 中导航 右按钮
    card_geometry: 中等圆角
    background_treatment: 深色分区色块 + 渐变
    section_divider: 色块分区
    shadow_density: 层叠阴影
    icon_style: 实心图标
    cta_emphasis: 高
    copy_tone: 权威说明型 + 转化引导型
=============================================================
*/

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fcd34d;
  --accent: #ef4444;
  --accent-dark: #dc2626;
  --bg-dark: #0f0f1a;
  --bg-mid: #1a1a2e;
  --bg-card: #16213e;
  --bg-section: #0d1117;
  --bg-light: #1e2a3a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2d3748;
  --border-light: #374151;
  --success: #10b981;
  --warning: #f59e0b;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(245,158,11,0.2);
  --transition: 0.25s ease;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --container-max: 1200px;
  --header-height: 90px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-stack);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--text-primary); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container-fluid { width: 100%; padding: 0 20px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; gap: 16px; align-items: center; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar a { color: var(--text-muted); font-size: 0.78rem; }
.topbar a:hover { color: var(--primary); }
.topbar-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-mid);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-wrap img,
.logo-wrap svg {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ===== MAIN NAV ===== */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(245,158,11,0.1);
}

/* ===== HEADER BUTTONS ===== */
.header-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.btn-register {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.btn-register:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.5);
}
.btn-login {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-login:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  font-weight: 800;
  padding: 12px 28px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
}
.btn-secondary:hover {
  background: rgba(245,158,11,0.1);
  color: var(--primary-light);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 10px 24px;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-nav-overlay a:hover { color: var(--primary); }
.mobile-nav-overlay .mobile-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.mobile-nav-overlay .mobile-cta-row .btn { flex: 1; justify-content: center; }

/* ===== BANNER ===== */
.hero-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-mid);
  line-height: 0;
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-light); }
.breadcrumb .current { color: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-lg { padding: 80px 0; }
.section-dark { background: var(--bg-section); }
.section-mid { background: var(--bg-mid); }
.section-card { background: var(--bg-card); }
.section-gradient {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
}

/* ===== SECTION TITLES ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-header-left { text-align: left; }
.section-header-left h2::after { margin: 10px 0 0; }

/* ===== 2-COLUMN LAYOUT (content + sidebar) ===== */
.content-sidebar-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.content-main { min-width: 0; }
.sidebar { min-width: 0; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-3px);
}
.card-body { padding: 20px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.card-text { font-size: 0.88rem; color: var(--text-secondary); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ===== FEATURE CARDS GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* ===== SHORTCUT ICON GRID ===== */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}
.shortcut-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.shortcut-item:hover {
  border-color: var(--primary);
  background: rgba(245,158,11,0.08);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.shortcut-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}
.shortcut-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}
.shortcut-item:hover span { color: var(--primary); }

/* ===== PROMO CARD GRID (2-col) ===== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.promo-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.promo-card-inner {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.promo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.promo-card h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 4px; }
.promo-card p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.82rem; color: var(--text-secondary); }

/* ===== CONTENT ARTICLE ===== */
.article-content { color: var(--text-secondary); line-height: 1.8; }
.article-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.article-content h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 24px 0 12px;
}
.article-content p { margin-bottom: 16px; color: var(--text-secondary); }
.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.article-content li { margin-bottom: 8px; color: var(--text-secondary); }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content strong { color: var(--text-primary); }
.article-content a { color: var(--primary); }
.article-content a:hover { color: var(--primary-light); text-decoration: underline; }
.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  background: rgba(245,158,11,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== SIDEBAR WIDGET ===== */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-link-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link-list a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.sidebar-link-list a:hover {
  color: var(--primary);
  background: rgba(245,158,11,0.08);
  border-color: var(--border);
}
.sidebar-link-list a::before {
  content: '▶';
  font-size: 0.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== FAQ ACCORDION ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--primary); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  gap: 12px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-toggle {
  width: 24px;
  height: 24px;
  background: rgba(245,158,11,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(180deg); background: var(--primary); color: var(--bg-dark); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-item.open .faq-answer { display: block; }

/* ===== VIDEO SECTION ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-section);
  box-shadow: var(--shadow-lg);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--bg-mid) 0%, rgba(245,158,11,0.08) 50%, var(--bg-mid) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 60px 0;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SAFETY TIPS ===== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.safety-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
}
.safety-item h4 { color: var(--accent); font-size: 0.95rem; margin-bottom: 8px; }
.safety-item p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ===== PROCESS STEPS ===== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  position: relative;
}
.step-item {
  text-align: center;
  padding: 24px 16px;
}
.step-number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.step-item h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 8px; }
.step-item p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ===== GAME CATEGORY CARDS ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.game-card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.game-card-body { padding: 16px; }
.game-card-body h3 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 4px; }
.game-card-body p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }
.game-card-tag {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ===== SPORTS EVENTS TABLE ===== */
.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.events-table th {
  background: var(--bg-section);
  color: var(--primary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.events-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.events-table tr:hover td { background: rgba(245,158,11,0.04); }
.event-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239,68,68,0.15);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.event-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ===== NOTICE BOX ===== */
.notice-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notice-box p { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }
.notice-box strong { color: var(--primary); }

/* ===== RELATED LINKS ===== */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.related-link-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}
.related-link-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245,158,11,0.06);
}
.related-link-item .rl-icon {
  width: 32px;
  height: 32px;
  background: rgba(245,158,11,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-section);
  border-top: 2px solid var(--border);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .footer-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 160px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a::before { content: '›'; color: var(--primary); font-size: 1rem; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-contact-item .ci-icon {
  width: 28px;
  height: 28px;
  background: rgba(245,158,11,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-item a { color: var(--text-muted); }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--primary); }
.footer-copyright { font-size: 0.8rem; color: var(--text-muted); }
.footer-payment-row {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-payment-row span { font-size: 0.8rem; color: var(--text-muted); }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 500;
  border: none;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); color: var(--bg-dark); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-section) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); font-size: 1rem; max-width: 600px; }

/* ===== POLICY PAGE ===== */
.policy-content { max-width: 860px; }
.policy-content h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.policy-content h3 { font-size: 1.05rem; color: var(--text-primary); margin: 20px 0 10px; }
.policy-content p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; margin-bottom: 14px; }
.policy-content ul { padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { list-style: disc; color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 6px; }

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h2 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 28px; }
.error-nav-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(239,68,68,0.05));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.highlight-box h3 { color: var(--primary); margin-bottom: 12px; }

/* ===== TABLE OF CONTENTS ===== */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}
.toc-box h4 { font-size: 0.88rem; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.toc-list { display: flex; flex-direction: column; gap: 6px; }
.toc-list a { color: var(--text-secondary); font-size: 0.85rem; }
.toc-list a:hover { color: var(--primary); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-primary { background: rgba(245,158,11,0.15); color: var(--primary); }
.badge-accent { background: rgba(239,68,68,0.15); color: var(--accent); }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 32px 0;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary-color { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .content-sidebar-row { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-inner { height: 64px; }
  .logo-wrap img, .logo-wrap svg { height: 36px; max-height: 36px; max-width: 140px; }
  .header-cta .btn-login { display: none; }
  .section { padding: 40px 0; }
  .section-lg { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .promo-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.4rem; }
  .cta-section h2 { font-size: 1.4rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .topbar { display: none; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .error-code { font-size: 4rem; }
  .header-cta .btn-register { padding: 8px 14px; font-size: 0.8rem; }
}
