/* ============================================================
   SPORTH8.COM - Global Stylesheet
   Target: Bangladesh | Language: Bengali (bn-BD)
   Style DNA: Mixed dispatch + long-form SEO | Dark premium
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --color-primary:    #f5a623;
  --color-primary-dk: #d4891a;
  --color-accent:     #f7c948;
  --color-bg-deep:    #050d1f;
  --color-bg-main:    #0a1628;
  --color-bg-card:    #0f1e35;
  --color-bg-card2:   #132240;
  --color-bg-section: #07111f;
  --color-border:     #1a2a4a;
  --color-text:       #c8d4e8;
  --color-text-muted: #7a8faa;
  --color-text-light: #e8eef8;
  --color-white:      #ffffff;
  --color-danger:     #e84040;
  --color-success:    #2ecc71;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:99px;

  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(245,166,35,0.2);
  --shadow-btn:  0 4px 14px rgba(245,166,35,0.35);

  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-bn:    "Noto Sans Bengali", "Hind Siliguri", system-ui, Arial, sans-serif;

  --header-h: 72px;
  --topbar-h: 36px;
  --container: 1200px;
  --gap: 24px;
}

/* ---- 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: var(--color-bg-deep);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-stack);
  color: var(--color-text-light);
  line-height: 1.3;
  font-weight: 700;
}
p { margin-bottom: 1rem; }
strong { color: var(--color-text-light); font-weight: 700; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Topbar ---- */
.topbar {
  background: var(--color-bg-section);
  border-bottom: 1px solid var(--color-border);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.topbar-left span { display: flex; align-items: center; gap: 5px; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.topbar-right a {
  color: var(--color-text-muted);
  transition: color .2s;
}
.topbar-right a:hover { color: var(--color-primary); }
.topbar-badge {
  background: var(--color-primary);
  color: var(--color-bg-deep);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img,
.site-logo svg {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
}
@media (max-width: 768px) {
  .site-logo img,
  .site-logo svg { height: 36px; max-width: 140px; }
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(245,166,35,0.12);
  color: var(--color-primary);
}

/* Header CTA Buttons */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-register {
  background: var(--color-primary);
  color: var(--color-bg-deep);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}
.btn-register:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-deep);
  transform: translateY(-1px);
}
.btn-login {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-login:hover {
  background: rgba(245,166,35,0.12);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg-deep);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: rgba(245,166,35,0.1);
  color: var(--color-accent);
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: all .3s;
}
.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 Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5,13,31,0.97);
  z-index: 999;
  flex-direction: column;
  padding: 80px 24px 40px;
  overflow-y: auto;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer a {
  color: var(--color-text-light);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
}
.mobile-nav-drawer a:hover { color: var(--color-primary); }
.mobile-nav-drawer .mobile-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.mobile-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ---- Banner ---- */
.home-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-main);
  border-bottom: 2px solid var(--color-border);
}
.home-banner img,
.home-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* ---- Sections ---- */
.section {
  padding: 64px 0;
}
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }
.section-dark { background: var(--color-bg-section); }
.section-card { background: var(--color-bg-card); }
.section-alt  { background: var(--color-bg-main); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid rgba(245,166,35,0.25);
}
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---- H1 Hero Block ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-bg-section) 0%, var(--color-bg-main) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245,166,35,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-text-light);
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--color-primary); }
.page-hero p {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 28px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-current { color: var(--color-primary); }

/* ---- Shortcut Cards (Quick Nav) ---- */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.shortcut-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.shortcut-card:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-card2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245,166,35,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(245,166,35,0.2);
}
.shortcut-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
}

/* ---- Feature Cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity .25s;
}
.feature-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(245,166,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  border: 1px solid rgba(245,166,35,0.2);
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--color-text-light);
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Content Cards (Article/Post style) ---- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.content-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.content-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.content-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.content-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.content-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.content-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-text-light);
  line-height: 1.4;
}
.content-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 16px;
}
.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: auto;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Long-form Content Area ---- */
.longform {
  max-width: 860px;
  margin: 0 auto;
}
.longform h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--color-text-light);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.longform h3 {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--color-primary);
  margin: 28px 0 12px;
}
.longform p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}
.longform ul, .longform ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.longform ul { list-style: disc; }
.longform ol { list-style: decimal; }
.longform li {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 8px;
}
.longform strong { color: var(--color-text-light); }
.longform a { color: var(--color-primary); }
.longform a:hover { color: var(--color-accent); }
.info-box {
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--color-text);
}
.info-box strong { color: var(--color-primary); }
.warning-box {
  background: rgba(232,64,64,0.07);
  border: 1px solid rgba(232,64,64,0.2);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--color-text);
}

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(245,166,35,0.35); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-light);
  gap: 12px;
  user-select: none;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245,166,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-primary);
  transition: transform .3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.faq-item.open .faq-answer { display: block; }

/* ---- YouTube Video Module ---- */
.video-section { background: var(--color-bg-section); }
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---- CTA Block ---- */
.cta-block {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-card2) 100%);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h2 {
  font-size: clamp(22px, 3vw, 36px);
  margin-bottom: 16px;
  position: relative;
}
.cta-block p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ---- Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--color-bg-card2);
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.data-table tr:hover td { background: rgba(245,166,35,0.04); }
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ---- Listing / Archive Grid ---- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.listing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.listing-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  overflow: hidden;
}
.listing-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.listing-card h4 {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.listing-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 14px;
}
.listing-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.listing-card-link:hover { color: var(--color-accent); }

/* ---- Steps / Process ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  text-align: center;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-bg-deep);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--color-text-light);
}
.step-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-bg-section);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand {}
.footer-brand .footer-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-contact a { color: var(--color-text-muted); }
.footer-contact a:hover { color: var(--color-primary); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--color-primary); }
.footer-links a::before {
  content: '›';
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1;
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-primary); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 900;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); color: var(--color-bg-deep); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.text-light   { color: var(--color-text-light); }
.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; }
.mt-5 { margin-top: 48px; }
.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; }
.mb-5 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.d-none { display: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-gold { background: rgba(245,166,35,0.15); color: var(--color-primary); border: 1px solid rgba(245,166,35,0.3); }
.badge-green { background: rgba(46,204,113,0.12); color: var(--color-success); border: 1px solid rgba(46,204,113,0.25); }
.badge-red   { background: rgba(232,64,64,0.12); color: var(--color-danger); border: 1px solid rgba(232,64,64,0.25); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 40px 0;
}
.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin: 40px 0;
}

/* ---- Two-col layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.two-col-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* ---- Sidebar Card ---- */
.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Related Links ---- */
.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg-card2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all .2s;
  text-decoration: none;
}
.related-link-item:hover {
  border-color: rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.05);
}
.related-link-item span {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- 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: 120px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 0;
}
.error-page h1 {
  font-size: 32px;
  margin-bottom: 16px;
}
.error-page p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .two-col-3-2 { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-ctas .btn-login { display: none; }
  .section { padding: 44px 0; }
  .section-lg { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-block { padding: 40px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-ctas .btn { padding: 8px 14px; font-size: 13px; }
  .topbar { display: none; }
}
