/* ============================================
   Emerald Trust BD — Design System
   Visual Style: Premium Dark Emerald
   ============================================ */

:root {
  /* Color Tokens */
  --color-primary: #22c55e;
  --color-primary-dark: #16a34a;
  --color-primary-soft: rgba(34,197,94,0.12);
  --color-secondary: #10b981;
  --color-accent: #fbbf24;
  --color-bg: #020617;
  --color-bg-soft: #0a1628;
  --color-surface: #0f2a1e;
  --color-surface-strong: #0a3728;
  --color-card: #0d2f23;
  --color-card-alt: #112e24;
  --color-border: #1a4a36;
  --color-border-strong: #22c55e;
  --color-text: #e2e8f0;
  --color-text-soft: #d1fae5;
  --color-text-muted: #6ee7b7;
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-danger: #f87171;
  --color-footer-bg: #011a14;
  --color-footer-text: #94a3b8;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #011a14 0%, #022c22 50%, #020617 100%);
  --gradient-hero-soft: linear-gradient(135deg, #0a1628 0%, #0f2a1e 100%);
  --gradient-button: linear-gradient(135deg, #22c55e, #10b981);
  --gradient-button-hover: linear-gradient(135deg, #16a34a, #059669);
  --gradient-card-border: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(16,185,129,0.1));
  --gradient-card-bg: linear-gradient(145deg, #0d2f23, #0a1e16);
  --gradient-cta: linear-gradient(135deg, #022c22, #011a14);
  --gradient-footer: linear-gradient(180deg, #011a14 0%, #010e0a 100%);

  /* Shadow Tokens */
  --shadow-header: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 12px 32px rgba(34,197,94,0.15);
  --shadow-button: 0 4px 12px rgba(34,197,94,0.25);
  --shadow-cta: 0 8px 24px rgba(34,197,94,0.2);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.15);

  /* Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  --radius-card: 14px;
  --radius-image: 12px;
  --radius-form: 10px;

  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(1.8rem, 4vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 3vw, 1.9rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: 0.95rem;
  --fs-small: 0.85rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 0.95rem;
  --lh-heading: 1.3;
  --lh-body: 1.85;

  /* Spacing */
  --container-max: 1180px;
  --container-wide: 1320px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(36px, 4vw, 56px);
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 18px;
  --gap-lg: 28px;
  --gap-xl: 40px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(18px, 2.5vw, 28px);
  --footer-padding: 48px;

  /* Motion */
  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --motion-slow: 0.4s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-secondary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  margin: 0 0 var(--gap-md);
  color: #fff;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--gap-md); }
ul, ol { padding-left: 1.5em; }

/* ============================================
   Container
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, #011a14 0%, #022c22 100%);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--motion-normal);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}
.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, .8vw, 14px);
  display: flex;
  align-items: center;
}
.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, .6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px clamp(5px, .55vw, 10px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  transition: all var(--motion-fast);
  font-weight: 500;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: #fff;
  background: var(--color-primary-soft);
}
.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: var(--fs-button);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--motion-fast);
  text-decoration: none;
  line-height: 1.2;
  min-height: 42px;
  white-space: nowrap;
}
.btn-register {
  background: var(--gradient-button);
  color: #011a14;
  font-weight: 700;
  box-shadow: var(--shadow-button);
}
.btn-register:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
  color: #011a14;
}
.btn-login {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-login:hover {
  background: var(--color-primary);
  color: #011a14;
}
.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.3rem;
  padding: 0;
  transition: background var(--motion-fast);
}
.nav-toggle:hover { background: rgba(34,197,94,0.2); }

/* ============================================
   Mobile Header
   ============================================ */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    min-height: var(--mobile-header-h);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
  }
  .brand-wrap {
    flex: 0 1 auto;
    margin-right: 0;
  }
  .site-logo {
    height: clamp(30px, 8vw, 40px);
    max-width: clamp(104px, 27vw, 138px);
  }
  .primary-nav { display: none; }
  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
    gap: clamp(5px, 1.6vw, 8px);
  }
  .header-actions .btn {
    min-height: 38px;
    padding: 7px clamp(10px, 2.6vw, 14px);
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: 2px;
  }
}
@media (max-width: 375px) {
  .site-header .header-inner {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }
  .site-logo { max-width: 104px; }
  .header-actions .btn {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--mobile-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1,26,20,0.97);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
}
#mobile-menu.is-open { display: flex; }
#mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text-soft);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(34,197,94,0.1);
  border-radius: var(--radius-sm);
  transition: all var(--motion-fast);
}
#mobile-menu a:hover,
#mobile-menu a.active {
  color: #fff;
  background: var(--color-primary-soft);
}

/* ============================================
   Sections
   ============================================ */
section { padding: var(--section-y) 0; }
.bg-dark { background: var(--color-bg); }
.bg-surface { background: var(--color-surface); }
.bg-alt { background: var(--color-footer-bg); }
.bg-gradient-hero { background: var(--gradient-hero); }

.section-badge {
  display: inline-block;
  background: var(--color-primary-soft);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.section-title { margin-bottom: 8px; }
.section-title span { color: var(--color-primary); }
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--gap-xl);
  max-width: 600px;
}
.divider-green {
  width: 56px;
  height: 4px;
  background: var(--gradient-button);
  border-radius: 2px;
  margin: 10px 0 20px;
}
.divider-green.center { margin-left: auto; margin-right: auto; }

/* ============================================
   Hero
   ============================================ */
.page-home .hero-section {
  background: var(--gradient-hero);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.page-home .hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}
.hero-content h1 span { color: var(--color-primary); }
.hero-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--gap-lg);
}
.btn-hero-primary {
  background: var(--gradient-button);
  color: #011a14;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 30px;
  font-size: 1rem;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
  box-shadow: var(--shadow-button);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
  color: #011a14;
}
.btn-hero-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 10px 26px;
  font-weight: 600;
  transition: all var(--motion-fast);
}
.btn-hero-outline:hover {
  background: var(--color-primary);
  color: #011a14;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: var(--gap-xl);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}
.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.hero-img {
  border-radius: var(--radius-image);
  border: 1px solid var(--color-border);
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

/* Inner page heroes */
.inner-hero {
  background: var(--gradient-hero);
  padding: clamp(36px, 5vw, 60px) 0;
  position: relative;
}
.inner-hero .breadcrumb {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.85rem;
}
.inner-hero .breadcrumb a { color: var(--color-text-muted); }
.inner-hero .breadcrumb span { color: var(--color-text-soft); }
.inner-hero h1 { margin-bottom: 12px; }
.inner-hero .lead { color: var(--color-text-muted); font-size: 1rem; max-width: 680px; }

/* ============================================
   Cards
   ============================================ */
.card-dark {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal) var(--ease-soft), box-shadow var(--motion-normal);
  height: 100%;
}
.card-dark:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}
.card-dark h5 { color: #fff; font-weight: 600; margin-bottom: 8px; font-size: 1.05rem; }
.card-dark p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

.icon-circle {
  width: 52px; height: 52px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.icon-circle-accent {
  background: rgba(251,191,36,0.1);
  color: var(--color-accent);
}

/* Card grid */
.card-grid {
  display: grid;
  gap: var(--gap-md);
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Step cards */
.step-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  text-align: center;
  height: 100%;
}
.step-num {
  width: 46px; height: 46px;
  background: var(--gradient-button);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #011a14;
  margin: 0 auto 14px;
}

/* ============================================
   Content Sections
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}
.content-grid-reverse { direction: rtl; }
.content-grid-reverse > * { direction: ltr; }

.content-img {
  width: 100%;
  border-radius: var(--radius-image);
  border: 1px solid var(--color-border);
}
.content-prose {
  max-width: var(--container-narrow);
}
.content-prose p {
  color: var(--color-text);
  line-height: var(--lh-body);
  font-size: 0.95rem;
}
.content-prose h3 {
  margin-top: var(--gap-lg);
  margin-bottom: 12px;
}

/* Info/Privacy notice */
.info-notice {
  background: rgba(34,197,94,0.06);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: var(--gap-lg) 0;
}
.info-notice h6 { color: var(--color-primary); font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; }
.info-notice p { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; }

.warning-notice {
  background: rgba(251,191,36,0.06);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: var(--gap-lg) 0;
}
.warning-notice h6 { color: var(--color-accent); font-weight: 700; margin-bottom: 8px; }
.warning-notice p { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; }

/* ============================================
   Tables
   ============================================ */
.table-wrap { overflow-x: auto; margin: var(--gap-md) 0; }
.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.styled-table thead th {
  background: var(--color-surface-strong);
  color: var(--color-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-primary);
  font-size: 0.95rem;
  text-align: left;
}
.styled-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  background: var(--color-card);
}
.styled-table tbody tr:last-child td { border-bottom: none; }

/* ============================================
   CTA Sections
   ============================================ */
.cta-section {
  background: var(--gradient-cta);
  padding: var(--section-y) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40px; right: 10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: var(--gap-lg); }

/* Inline CTA */
.inline-cta {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg) var(--card-padding);
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  margin: var(--gap-xl) 0;
}
.inline-cta .cta-text { flex: 1; }
.inline-cta .cta-text h3 { margin-bottom: 6px; }
.inline-cta .cta-text p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* ============================================
   FAQ
   ============================================ */
.faq-section { background: var(--color-footer-bg); }
.faq-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap-xl);
  align-items: start;
}
.faq-item {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background var(--motion-fast);
}
.faq-question:hover { background: rgba(34,197,94,0.06); }
.faq-question[aria-expanded="true"] { color: var(--color-primary); background: rgba(34,197,94,0.06); }
.faq-icon {
  flex: 0 0 20px;
  transition: transform var(--motion-normal);
  color: var(--color-primary);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}
.faq-answer.is-open { display: block; }

/* ============================================
   Forms (Login/Register)
   ============================================ */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}
.auth-form-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
}
.form-group { margin-bottom: var(--gap-md); }
.form-group label {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-form);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.form-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-button);
  color: #011a14;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--motion-fast);
  margin-top: var(--gap-sm);
}
.form-btn:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

/* ============================================
   Article / Policy Layout
   ============================================ */
.article-body, .policy-body {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.article-body h2, .policy-body h2 { margin-top: var(--gap-xl); }
.article-body h3, .policy-body h3 { margin-top: var(--gap-lg); }
.article-body p, .policy-body p {
  font-size: 0.95rem;
  line-height: var(--lh-body);
  color: var(--color-text);
}
.article-body ul, .policy-body ul {
  color: var(--color-text);
  margin-bottom: var(--gap-md);
}
.article-body li, .policy-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.policy-toc {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}
.policy-toc h3 { margin: 0 0 12px; font-size: 1.1rem; }
.policy-toc ul { list-style: none; padding: 0; }
.policy-toc li { margin-bottom: 8px; }
.policy-toc a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.policy-toc a:hover { color: var(--color-primary); }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-bar {
  padding: 12px 0;
  font-size: 0.85rem;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.breadcrumb-list a { color: var(--color-text-muted); }
.breadcrumb-list .sep { color: rgba(255,255,255,0.3); }
.breadcrumb-list .current { color: var(--color-text-soft); }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--gradient-footer);
  border-top: 2px solid var(--color-border);
  padding: var(--footer-padding) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-xl);
}
.footer-brand {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-desc {
  color: var(--color-footer-text);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--color-footer-text);
  font-size: 0.87rem;
  transition: color var(--motion-fast);
}
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 36px;
  padding: 18px 0;
  color: var(--color-footer-text);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--color-footer-text); margin-left: 16px; }
.footer-bottom a:hover { color: var(--color-primary); }

/* ============================================
   Utility
   ============================================ */
.text-green { color: var(--color-primary); }
.text-center { text-align: center; }
.mt-section { margin-top: var(--section-y); }
.mb-section { margin-bottom: var(--section-y); }

/* ============================================
   Focus & Accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .hero-img { max-height: 320px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid-reverse { direction: ltr; }
  .faq-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: var(--section-y-sm) 0; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .inline-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 414px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; }
}

/* ============================================
   Page-specific overrides
   ============================================ */
/* About page */
.page-about .timeline { position: relative; padding-left: 28px; }
.page-about .timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.page-about .timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}
.page-about .timeline-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 6px;
  width: 12px; height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}
.page-about .timeline-item h6 { color: var(--color-primary); font-weight: 700; margin-bottom: 4px; }
.page-about .timeline-item p { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; }

/* Register page progress */
.progress-steps {
  display: flex;
  justify-content: center;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}
.prog-step { text-align: center; }
.prog-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.prog-dot.active {
  background: var(--gradient-button);
  border-color: var(--color-primary);
  color: #011a14;
}
.prog-label { font-size: 0.75rem; color: var(--color-text-muted); }

/* Trust badges */
.trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--gap-md);
}
.trust-badge {
  background: var(--color-primary-soft);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Game detail sidebar */
.game-sidebar .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.game-sidebar .feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(34,197,94,0.1);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.game-sidebar .feature-list li:last-child { border-bottom: none; }
