/* ============================================================
   LottoGo - Lottery Sambad Bangladesh
   Style DNA:
   - layout_bias: 混合型（聚合分发 + 长文SEO）
   - hero_layout: 全宽Banner
   - nav_alignment: 左Logo 中导航 右按钮（双层Header）
   - card_geometry: 中等圆角
   - background_treatment: 深色渐变层叠 + 分区色块
   - section_divider: 色块分区 + 柔和阴影
   - shadow_density: 层叠阴影
   - icon_style: 双色SVG
   - cta_emphasis: 高
   - copy_tone: 权威说明型 + 转化引导型
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary:       #0d1b3e;
  --primary-light: #1a2d5a;
  --accent:        #f5a623;
  --accent-dark:   #e8320a;
  --accent2:       #2ecc71;
  --text-main:     #1a1a2e;
  --text-light:    #4a5568;
  --text-muted:    #718096;
  --bg-white:      #ffffff;
  --bg-light:      #f7f9fc;
  --bg-section:    #eef2f8;
  --border:        #dde3ef;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --shadow-sm:     0 2px 8px rgba(13,27,62,0.08);
  --shadow-md:     0 4px 20px rgba(13,27,62,0.14);
  --shadow-lg:     0 8px 40px rgba(13,27,62,0.18);
  --font-main:     system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --max-width:     1200px;
  --header-h:      60px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP INFO BAR
   ============================================================ */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar a { color: rgba(255,255,255,0.75); font-size: 13px; }
.topbar a:hover { color: var(--accent); }
.topbar-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .5px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--primary-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-wrap img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-wrap img { height: 36px; max-width: 140px; }
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: .3px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(245,166,35,0.18);
  color: var(--accent);
}

/* Header CTA Buttons */
.header-ctas { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-register {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.btn-login {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-login:hover { background: var(--accent); color: #fff; }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background: var(--primary);
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-drawer a {
  display: block;
  color: rgba(255,255,255,0.88);
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-drawer a:last-child { border-bottom: none; }
.mobile-nav-drawer a:hover { color: var(--accent); }
.mobile-nav-ctas {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.mobile-nav-ctas .btn { flex: 1; justify-content: center; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-ctas { display: none; }
  .mobile-toggle { display: flex; }
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--primary);
  max-height: 480px;
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .hero-banner { max-height: 260px; }
  .hero-banner img, .hero-banner svg { max-height: 260px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-bar ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb-bar li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-bar li:not(:last-child)::after { content: "/"; color: var(--border); }
.breadcrumb-bar a { color: var(--primary); font-weight: 500; }
.breadcrumb-bar a:hover { color: var(--accent-dark); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--primary); color: #fff; }
.section-accent { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.section-dark .section-header h2,
.section-accent .section-header h2 { color: #fff; }
.section-header p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-dark .section-header p,
.section-accent .section-header p { color: rgba(255,255,255,0.75); }
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ============================================================
   SHORTCUT CARDS (Quick Entry Grid)
   ============================================================ */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.shortcut-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: var(--primary);
}
.shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  flex-shrink: 0;
}
.shortcut-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.shortcut-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ============================================================
   FEATURE CARDS (3-col)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(232,50,10,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.feature-card p { color: var(--text-light); font-size: 15px; line-height: 1.65; }

/* ============================================================
   CONTENT FEED / ARTICLE CARDS
   ============================================================ */
.content-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card-img {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  overflow: hidden;
}
.article-card-img-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,0.3);
}
.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1.4; }
.article-card p { font-size: 14px; color: var(--text-light); flex: 1; }
.article-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.article-card-link:hover { color: var(--primary); }

/* ============================================================
   LONG-FORM CONTENT AREA
   ============================================================ */
.longform-content {
  max-width: 860px;
  margin: 0 auto;
}
.longform-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--primary);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-section);
}
.longform-content h3 {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--primary-light);
  margin: 28px 0 10px;
}
.longform-content p {
  color: var(--text-light);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}
.longform-content ul, .longform-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.longform-content ul { list-style: disc; }
.longform-content ol { list-style: decimal; }
.longform-content li {
  color: var(--text-light);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.longform-content blockquote {
  background: var(--bg-section);
  border-left: 4px solid var(--accent);
  border-right: 4px solid var(--accent-dark);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-light);
}
.longform-content strong { color: var(--primary); }
.longform-content a { color: var(--accent-dark); font-weight: 600; }
.longform-content a:hover { color: var(--primary); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.open { background: var(--bg-section); color: var(--accent-dark); }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform .3s, background .2s;
  color: var(--primary);
}
.faq-question.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.75;
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--accent-dark); font-weight: 600; }

/* ============================================================
   YOUTUBE VIDEO MODULE
   ============================================================ */
.video-section { background: var(--bg-section); }
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.video-container {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1e3a6e 100%);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.cta-section h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 900; margin-bottom: 14px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 14px 36px;
  font-size: 17px;
  font-weight: 800;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 14px 36px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-lg);
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item p { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ============================================================
   RELATED LINKS / INTERNAL NAV
   ============================================================ */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.related-link {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: background .2s, color .2s;
}
.related-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.25;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* ============================================================
   SLOTS PAGE - GAME GRID
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.game-card-thumb {
  width: 100%;
  padding-top: 70%;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.game-card-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.game-card-body { padding: 14px 12px; }
.game-card-body h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.game-card-body p { font-size: 12px; color: var(--text-muted); }
.game-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
  letter-spacing: .5px;
}

/* ============================================================
   SPORTS PAGE - MATCH LIST
   ============================================================ */
.match-list { display: flex; flex-direction: column; gap: 14px; }
.match-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
  flex-wrap: wrap;
}
.match-card:hover { box-shadow: var(--shadow-md); }
.match-teams { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--primary); }
.match-vs { color: var(--accent-dark); font-size: 13px; font-weight: 900; }
.match-meta { font-size: 13px; color: var(--text-muted); }
.match-odds {
  display: flex;
  gap: 8px;
}
.odd-btn {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.odd-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sport-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sport-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-main);
  cursor: pointer;
  transition: all .2s;
}
.sport-tab.active, .sport-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   ABOUT PAGE - TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.timeline-item p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   PRIVACY / POLICY PAGE
   ============================================================ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}
.policy-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.policy-content h3 { font-size: 18px; font-weight: 700; color: var(--primary-light); margin: 22px 0 8px; }
.policy-content p { color: var(--text-light); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.policy-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.policy-content li { color: var(--text-light); font-size: 15px; line-height: 1.75; margin-bottom: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
  max-width: 300px;
}
.footer-logo { height: 44px; width: auto; max-width: 160px; margin-bottom: 4px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  min-width: 60px;
  flex-shrink: 0;
}
.footer-contact-value { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.footer-contact-value a { color: rgba(255,255,255,0.75); }
.footer-contact-value a:hover { color: var(--accent); }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent); }
.footer-keywords {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* ============================================================
   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: clamp(80px, 15vw, 160px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--primary); margin: 16px 0 12px; }
.error-page p { color: var(--text-light); font-size: 16px; margin-bottom: 28px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.highlight-box {
  background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(232,50,10,0.05));
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box p { margin: 0; color: var(--text-main); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--text-light);
}
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 999;
  border: none;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-feed { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .match-card { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}
