/* ═══════════════════════════════════════════════
   Emerald Trust Gaming UI — Design System
   Visual Style: Premium Bangladesh Gaming Platform
   ═══════════════════════════════════════════════ */

:root {
  /* Color Tokens */
  --color-primary: #0d9668;
  --color-primary-dark: #087a54;
  --color-primary-soft: #d1fae5;
  --color-secondary: #1e3a5f;
  --color-accent: #f59e0b;
  --color-bg: #f8fffe;
  --color-bg-soft: #f0fdf8;
  --color-surface: #ffffff;
  --color-surface-strong: #ecfdf5;
  --color-card: #ffffff;
  --color-card-alt: #f0fdf8;
  --color-border: #e5e7eb;
  --color-border-strong: #d1fae5;
  --color-text: #1a1f2e;
  --color-text-soft: #4b5563;
  --color-text-muted: #9ca3af;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0f172a;
  --color-footer-text: #94a3b8;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #064e3b 0%, #0d9668 50%, #047857 100%);
  --gradient-hero-soft: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  --gradient-button: linear-gradient(135deg, #0d9668 0%, #059669 100%);
  --gradient-button-hover: linear-gradient(135deg, #087a54 0%, #047857 100%);
  --gradient-cta: linear-gradient(135deg, #1e3a5f 0%, #0d9668 100%);
  --gradient-footer: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --gradient-card-border: linear-gradient(135deg, #d1fae5, #a7f3d0, #6ee7b7);

  /* Shadow Tokens */
  --shadow-header: 0 2px 16px rgba(13,150,104,.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-card-hover: 0 10px 25px rgba(13,150,104,.12), 0 4px 10px rgba(0,0,0,.06);
  --shadow-button: 0 2px 8px rgba(13,150,104,.2);
  --shadow-cta: 0 4px 14px rgba(13,150,104,.18);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.05);
  --shadow-menu: 0 10px 40px rgba(0,0,0,.12);

  /* Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  --radius-card: 12px;
  --radius-image: 10px;

  /* Typography Tokens */
  --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.75rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.35rem, 3vw, 1.85rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 0.95rem;
  --lh-heading: 1.3;
  --lh-body: 1.8;
  --lh-readable: 1.9;

  /* Spacing Tokens */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 780px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 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(16px, 2vw, 24px);

  /* Motion Tokens */
  --motion-fast: 150ms;
  --motion-normal: 250ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast) var(--ease-soft); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ═══ Focus Visible ═══ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══ 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); }

/* ═══ Section ═══ */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-dark { background: var(--gradient-cta); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title { color: var(--color-primary); margin-bottom: 8px; font-weight: 800; }
.section-sub { color: var(--color-text-soft); margin-bottom: var(--gap-lg); font-size: 1.05rem; }

/* ═══════════════════════════════════════════════
   HEADER — Stable Single-line Navigation
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--motion-normal) var(--ease-soft);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.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);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.primary-nav a:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.primary-nav a.active { color: var(--color-primary); font-weight: 600; background: var(--color-surface-strong); }

.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;
}

.nav-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-strong);
  color: var(--color-primary);
  font-size: 1.4rem;
  transition: background var(--motion-fast);
}
.nav-toggle:hover { background: var(--color-primary-soft); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--mobile-header-h) + 8px);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  padding: 16px;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  z-index: 999;
  border: 1px solid var(--color-border);
}
#mobile-menu.is-open { display: flex; }
#mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
#mobile-menu a:hover, #mobile-menu a.active { background: var(--color-surface-strong); color: var(--color-primary); }

@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; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-button);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--motion-normal) var(--ease-soft);
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
}
.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--gradient-button-hover);
  color: #fff;
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.btn-accent {
  background: var(--color-accent);
  color: #1a1f2e;
  font-weight: 700;
}
.btn-accent:hover { background: #d97706; transform: translateY(-1px); }

/* ═══ Hero Variants ═══ */
.home-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero h1 { color: #fff; max-width: 800px; margin: 0 auto 16px; }
.home-hero .lead { font-size: clamp(1rem, 1.8vw, 1.15rem); opacity: .92; max-width: 640px; margin: 0 auto 28px; line-height: 1.7; }
.home-hero .age-badge {
  display: inline-block;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-top: 12px;
}

.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
  text-align: center;
}
.page-hero h1 { color: #fff; max-width: 720px; margin: 0 auto 12px; }
.page-hero .lead { opacity: .9; max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

.page-hero-light {
  background: var(--gradient-hero-soft);
  padding: clamp(32px, 4vw, 56px) 0;
}
.page-hero-light h1 { color: var(--color-text); }

/* ═══ Cards ═══ */
.card-grid { display: grid; gap: var(--gap-md); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-card .card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-strong);
  color: var(--color-primary);
  font-size: 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.feature-card h3, .feature-card h5 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: var(--color-text-soft); font-size: var(--fs-small); line-height: 1.7; }

.trust-card {
  background: var(--color-surface-strong);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  text-align: center;
  border: 1px solid var(--color-border-strong);
}
.trust-card .card-icon { margin: 0 auto 12px; background: var(--color-primary); color: #fff; }

.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
.step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.step-card h5 { margin-bottom: 6px; font-size: 1rem; }
.step-card p { color: var(--color-text-soft); font-size: var(--fs-small); }

.vip-card {
  background: var(--color-card);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--motion-normal) var(--ease-out);
}
.vip-card.featured { border-color: var(--color-primary); background: var(--color-surface-strong); }
.vip-card:hover { transform: translateY(-3px); }
.vip-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.vip-price { font-size: 1.8rem; font-weight: 700; color: var(--color-primary); }

.glossary-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
.glossary-term { font-weight: 700; color: var(--color-primary); }

.jackpot-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  transition: transform var(--motion-normal);
}
.jackpot-card:hover { transform: translateY(-2px); }
.jackpot-amount { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); }

.icon-card {
  text-align: center;
  padding: 20px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.icon-card .ic { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 10px; display: block; }
.icon-card h5 { font-size: .95rem; margin-bottom: 6px; }
.icon-card p { font-size: .85rem; color: var(--color-text-soft); }

/* ═══ CTA Strips ═══ */
.cta-strip {
  background: var(--gradient-cta);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
  text-align: center;
}
.cta-strip h2 { color: #a7f3d0; margin-bottom: 8px; }
.cta-strip p { opacity: .88; margin-bottom: 20px; }

.cta-section {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
}

/* ═══ Trust Quote ═══ */
.trust-quote {
  background: var(--color-primary);
  color: #fff;
  padding: clamp(48px, 6vw, 72px) 20px;
  text-align: center;
}
.trust-quote blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

/* ═══ Privacy Notice ═══ */
.privacy-notice {
  background: var(--color-surface-strong);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
}

/* ═══ Content Images ═══ */
.content-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: var(--gap-lg) auto;
  border-radius: var(--radius-image);
}

/* ═══ Prose / Article Body ═══ */
.prose { max-width: var(--container-narrow); }
.prose p { font-size: 1rem; line-height: var(--lh-readable); margin: 0 0 16px; color: var(--color-text-soft); }
.prose h2 { margin: 36px 0 14px; color: var(--color-primary); }
.prose h3 { margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; color: var(--color-text-soft); list-style: disc; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary,
.prose a.btn-primary:hover { color: #fff; }
.prose a.btn-secondary,
.prose a.btn-secondary:hover { color: var(--color-primary); }
.prose a.btn-accent,
.prose a.btn-accent:hover { color: #1a1f2e; }
.prose strong { color: var(--color-text); }

/* ═══ Breadcrumb ═══ */
.breadcrumb-wrap { padding: 12px 0; background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-soft); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { margin: 0 2px; }

/* ═══ FAQ ═══ */
.faq-list { max-width: var(--container-narrow); margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  background: var(--color-card);
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  transition: background var(--motion-fast);
  cursor: pointer;
}
.faq-btn:hover { background: var(--color-bg-soft); }
.faq-btn .faq-icon { font-size: 1.2rem; color: var(--color-primary); transition: transform var(--motion-normal); flex-shrink: 0; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--color-text-soft);
  font-size: .95rem;
  line-height: 1.8;
}
.faq-item.is-open .faq-answer { display: block; }

/* ═══ Forms ═══ */
.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,150,104,.12);
}

/* ═══ Tables ═══ */
.auth-hero,
.register-hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, .14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(13, 150, 104, .12), transparent 38%),
    linear-gradient(180deg, #f8fffe 0%, #ecfdf5 100%);
  padding: clamp(40px, 5vw, 72px) 0;
}
.auth-shell {
  display: grid;
  gap: var(--gap-xl);
  align-items: stretch;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(13, 150, 104, .12);
  color: var(--color-primary-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.auth-title {
  margin-bottom: 10px;
}
.auth-copy {
  color: var(--color-text-soft);
  margin-bottom: 20px;
  max-width: 60ch;
}
.auth-form-card,
.register-form-card,
.auth-info-card,
.register-info-card,
.auth-help-panel,
.register-safe-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(209, 250, 229, .95);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(13,150,104,.08);
}
.auth-form-card,
.register-form-card {
  padding: clamp(24px, 3vw, 36px);
}
.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--color-text-soft);
  font-size: .95rem;
}
.auth-switch a {
  font-weight: 700;
}
.auth-form-stack {
  display: grid;
  gap: 14px;
}
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: .92rem;
}
.auth-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
}
.auth-checkbox input {
  accent-color: var(--color-primary);
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.auth-actions .btn {
  flex: 1 1 220px;
}
.auth-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--color-surface-strong);
  color: var(--color-text-soft);
  font-size: .9rem;
  line-height: 1.75;
}
.auth-mini-list,
.auth-point-list,
.auth-step-list {
  display: grid;
  gap: 12px;
}
.auth-mini-item,
.auth-point-item,
.auth-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.auth-mini-icon,
.auth-point-icon,
.auth-step-num {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: var(--color-primary-dark);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.auth-info-card,
.register-info-card {
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 20px;
}
.auth-hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13,150,104,.08);
}
.auth-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-info-grid,
.register-benefit-grid,
.auth-help-grid {
  display: grid;
  gap: 16px;
}
.auth-info-grid {
  grid-template-columns: 1fr 1fr;
}
.register-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-stat-card,
.register-benefit-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
  border: 1px solid var(--color-border-strong);
}
.auth-stat-card strong,
.register-benefit-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.auth-stat-card span,
.register-benefit-card span {
  color: var(--color-text-soft);
  font-size: .92rem;
}
.auth-help-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-help-panel,
.register-safe-panel {
  padding: clamp(22px, 2.6vw, 30px);
}
.auth-help-panel h3,
.register-safe-panel h3 {
  margin-bottom: 10px;
}
.auth-help-panel p,
.register-safe-panel p {
  color: var(--color-text-soft);
  margin-bottom: 12px;
}
.auth-link-list {
  display: grid;
  gap: 10px;
}
.auth-link-list a {
  font-weight: 600;
}
.register-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: var(--gap-xl);
  align-items: start;
}
.register-safe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.register-step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.register-step-card {
  position: relative;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card);
}
.register-step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13,150,104,.35), rgba(245,158,11,.24));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.register-step-card .auth-step-num {
  margin-bottom: 14px;
}
.auth-dual-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.auth-dual-cta .btn {
  flex: 1 1 220px;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.data-table th { background: var(--color-surface-strong); font-weight: 600; color: var(--color-text); }
.data-table tr:hover { background: var(--color-bg-soft); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
  padding: clamp(40px, 5vw, 60px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}
.footer-brand p { font-size: var(--fs-small); line-height: 1.7; margin-bottom: 12px; }
.footer-brand .footer-logo { height: 38px; margin-bottom: 14px; filter: brightness(1.2); }
.site-footer h5 { color: #a7f3d0; font-size: .95rem; margin-bottom: 14px; }
.footer-link {
  display: block;
  color: var(--color-footer-text);
  font-size: var(--fs-small);
  margin-bottom: 8px;
  transition: color var(--motion-fast);
}
.footer-link:hover { color: #a7f3d0; }
.footer-divider { border: none; border-top: 1px solid #334155; margin: 24px 0; }
.footer-copy { text-align: center; font-size: .8rem; color: #64748b; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══ Page-level Classes ═══ */
.page-home .home-hero { }
.page-category .page-hero { }
.page-article .article-body { max-width: var(--container-narrow); margin: 0 auto; }
.page-policy .prose { max-width: var(--container-narrow); margin: 0 auto; }
.page-about .about-story { }
.page-faq .faq-groups { }
.page-faq .section-title { text-align: center; }
.page-login .auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 768px) { .page-login .auth-layout { grid-template-columns: 1fr; } }
.page-register .register-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 900px) {
  .auth-info-grid,
  .auth-help-grid,
  .register-benefit-grid,
  .register-safe-grid,
  .register-step-flow,
  .page-register .register-layout {
    grid-template-columns: 1fr;
  }
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ═══ Utility ═══ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }
.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; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.gap-grid { display: grid; gap: var(--gap-md); }

/* ═══ Responsive Fixes ═══ */
@media (max-width: 414px) {
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 375px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  body { font-size: .95rem; }
}
