/* ============================================================
   666z.im — Emerald Trust Gaming UI Design System
   Original design system for Bangladesh market
   ============================================================ */

:root {
  /* Color Tokens */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: rgba(37,99,235,.12);
  --color-secondary: #0ea5e9;
  --color-accent: #3b82f6;
  --color-accent-2: #60a5fa;
  --color-bg: #0f172a;
  --color-bg-soft: #1e293b;
  --color-surface: #182131;
  --color-surface-strong: #1a2744;
  --color-card: #182131;
  --color-card-alt: #1e293b;
  --color-border: rgba(148,163,184,.12);
  --color-border-strong: rgba(148,163,184,.22);
  --color-text: #f1f5f9;
  --color-text-soft: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0b1220;
  --color-footer-text: #94a3b8;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-hero-soft: radial-gradient(circle at top right, rgba(59,130,246,.15), transparent 40%);
  --gradient-button: linear-gradient(135deg, #2563eb, #3b82f6);
  --gradient-button-hover: linear-gradient(135deg, #1d4ed8, #2563eb);
  --gradient-card-border: linear-gradient(135deg, rgba(59,130,246,.3), rgba(59,130,246,.05));
  --gradient-cta: linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.06));
  --gradient-footer: linear-gradient(180deg, #0b1220, #070d18);

  /* Shadow Tokens */
  --shadow-header: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.15);
  --shadow-card: 0 4px 16px rgba(0,0,0,.2);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,.3);
  --shadow-button: 0 2px 8px rgba(37,99,235,.3);
  --shadow-cta: 0 8px 24px rgba(0,0,0,.25);
  --shadow-soft: 0 2px 8px rgba(0,0,0,.12);

  /* Radius Tokens */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 16px;

  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(28px, 4vw, 48px);
  --fs-h2: clamp(22px, 3vw, 36px);
  --fs-h3: clamp(18px, 2vw, 24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --lh-heading: 1.2;
  --lh-body: 1.75;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1140px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --header-h: 72px;

  /* Motion */
  --motion-fast: .15s;
  --motion-normal: .25s;
  --motion-slow: .4s;
  --ease-out: cubic-bezier(.25,.46,.45,.94);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-accent-2); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Layout Containers
   ============================================================ */
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
}
.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: clamp(12.5px, .78vw, 14.5px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  border-radius: var(--radius-xs);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.primary-nav a:hover { color: var(--color-text); }
.primary-nav a.active {
  color: var(--color-accent);
  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);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--color-border);
  gap: 5px;
  transition: background var(--motion-fast);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--motion-normal), opacity var(--motion-normal);
}

/* Mobile Header */
@media (max-width: 1180px) {
  .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    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; }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: 2px;
  }
}
@media (max-width: 375px) {
  .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ============================================================
   Mobile Menu
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 12px;
  right: 12px;
  z-index: 999;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  padding: 16px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: none;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.mobile-nav a:hover { background: rgba(255,255,255,.06); color: var(--color-accent); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb-bar {
  padding: 14px 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.breadcrumb-list li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb-list a { color: var(--color-accent); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary-lg, .btn-primary-md, .btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-button);
  transition: all var(--motion-normal) var(--ease-out);
  white-space: nowrap;
  border: none;
}
.btn-primary-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-primary-md { padding: 12px 24px; font-size: 15px; }
.btn-primary-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary-lg:hover, .btn-primary-md:hover, .btn-primary-sm:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  color: #fff;
}

.btn-outline-lg, .btn-outline-md, .btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text);
  font-weight: 700;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: all var(--motion-normal) var(--ease-out);
  white-space: nowrap;
}
.btn-outline-lg { padding: 12px 26px; font-size: 16px; border-radius: var(--radius-md); }
.btn-outline-md { padding: 10px 22px; font-size: 15px; }
.btn-outline-sm { padding: 8px 18px; font-size: 14px; }
.btn-outline-lg:hover, .btn-outline-md:hover, .btn-outline-sm:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.full-width { width: 100%; }

/* ============================================================
   Section Spacing & Headers
   ============================================================ */
section { padding: var(--section-y) 0; }
.section-header.center { text-align: center; margin-bottom: 48px; }
.section-eyebrow, .hero-eyebrow {
  display: inline-block;
  color: var(--color-accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-intro { color: var(--color-text-soft); max-width: 720px; margin: 12px auto 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: var(--fs-h3); line-height: 1.35; font-weight: 700; margin-bottom: 12px; }
p { margin-bottom: 16px; color: var(--color-text-soft); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Split Layout
   ============================================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.split-content.wide { grid-column: span 1; }
.split-visual { display: flex; align-items: center; }

@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; }
  .split-layout.reverse { direction: ltr; }
}

/* ============================================================
   Cards
   ============================================================ */
.image-showcase { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); padding: 12px; box-shadow: var(--shadow-card); }
.image-showcase img, .showcase-img { border-radius: var(--radius-md); width: 100%; }
.image-showcase.wide-img { margin-bottom: 40px; }

.sidebar-card, .data-table-card, .notice-card, .auth-trust-card, .auth-security-note, .faq-intro-card, .toc-card, .policy-notice-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.sidebar-card h3, .data-table-card h3, .auth-trust-card h3, .auth-security-note h3, .faq-intro-card h2, .toc-card h2 {
  color: var(--color-text);
}
.notice-card.accent-border { border-left: 4px solid var(--color-accent); background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(59,130,246,.02)); }
.notice-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 768px) { .notice-grid { grid-template-columns: 1fr; } }
.sidebar-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent); margin: 20px 0; }
.warning-card { border-left: 4px solid var(--color-warning); }
.policy-notice-box.warning { border-left: 4px solid var(--color-warning); background: rgba(245,158,11,.06); }
.steps-card ol { counter-reset: steps; padding-left: 0; }
.steps-card ol li { counter-increment: steps; margin-bottom: 12px; color: var(--color-text-soft); padding-left: 32px; position: relative; }
.steps-card ol li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--color-primary-soft); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.steps-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.related-card .related-links { margin-bottom: 16px; }
.related-card .related-links li { margin-bottom: 8px; }
.related-card .related-links a { color: var(--color-accent); font-weight: 600; }

/* ============================================================
   Feature Cards Grid
   ============================================================ */
.feature-grid, .feature-grid-3 { display: grid; gap: 20px; }
.feature-grid.eight-col { grid-template-columns: repeat(4, 1fr); }
.feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .feature-grid.eight-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid.eight-col, .feature-grid-3 { grid-template-columns: 1fr; } }

.feature-card, .game-feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}
.feature-card:hover, .game-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft);
  margin-bottom: 16px;
  font-size: 24px;
}

/* ============================================================
   Homepage Specific
   ============================================================ */
.home-hero {
  padding: clamp(90px, 10vw, 130px) 0 var(--section-y);
  background: var(--gradient-hero);
  position: relative;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-soft);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-title { margin-bottom: 20px; }
.hero-lead { font-size: 18px; color: var(--color-text-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 480px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--color-border);
}
.stat-card strong { display: block; font-size: 20px; color: var(--color-text); }
.stat-card span { font-size: 13px; color: var(--color-text-muted); }
.hero-image-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.hero-image-frame img { border-radius: var(--radius-lg); }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 768px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-card); }
.plan-badge {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-accent-2);
  border: 1px solid rgba(59,130,246,.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}
.plan-price { font-size: 32px; font-weight: 800; color: var(--color-accent-2); margin-bottom: 8px; }
.plan-features { margin: 16px 0; }
.plan-features li { margin-bottom: 8px; color: var(--color-text-soft); padding-left: 20px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.testimonial-stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 12px; font-size: 18px; }
.testimonial-author { margin-top: 16px; }
.testimonial-author strong { display: block; color: var(--color-text); }
.testimonial-author span { font-size: 13px; color: var(--color-text-muted); }

/* Table */
.table-scroll { overflow-x: auto; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.info-table th { color: var(--color-text); font-weight: 700; background: rgba(255,255,255,.02); }
.info-table td { color: var(--color-text-soft); }

/* Stat Grid */
.stat-grid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 640px) { .stat-grid-row { grid-template-columns: repeat(2, 1fr); } }
.stat-block {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.stat-block strong { display: block; font-size: 28px; color: var(--color-accent-2); margin-bottom: 6px; }
.stat-block span { color: var(--color-text-muted); font-size: 14px; }

/* Final CTA */
.final-cta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-cta);
}
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
@media (max-width: 768px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Lists */
.dest-list li, .check-list li, .benefit-list li, .safety-list li, .detail-list li, .policy-list li {
  margin-bottom: 10px;
  color: var(--color-text-soft);
  padding-left: 20px;
  position: relative;
}
.dest-list li::before, .check-list li::before, .benefit-list li::before, .safety-list li::before { content: "•"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.detail-list li { padding-left: 0; margin-bottom: 14px; }

/* ============================================================
   Game Pages
   ============================================================ */
.game-opening { padding-top: clamp(40px, 5vw, 72px); }
.page-title { margin-bottom: 20px; }
.page-lead { font-size: 18px; color: var(--color-text-soft); margin-bottom: 20px; }
.opening-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.opening-actions.center { justify-content: center; }
.opening-img, .content-img, .sidebar-img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-card); }
.hero-wide-img { border-radius: var(--radius-lg); width: 100%; margin: 24px 0; box-shadow: var(--shadow-card); }
.centered-header { text-align: center; margin-bottom: 32px; }
.centered-body { max-width: var(--container-narrow); margin: 0 auto; }
.content-flow p { margin-bottom: 18px; }
.inline-image-block { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }

/* ============================================================
   Auth Pages (Login/Register)
   ============================================================ */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.auth-layout.reverse { direction: rtl; }
.auth-layout.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .auth-layout, .auth-layout.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.auth-title { margin-bottom: 12px; }
.auth-lead { margin-bottom: 24px; }
.auth-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.auth-form-card.login-card { border-top: 3px solid var(--color-accent); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group input::placeholder { color: var(--color-text-muted); }
.form-note { text-align: center; margin-top: 16px; font-size: 14px; color: var(--color-text-muted); }
.auth-visual { border-radius: var(--radius-lg); margin: 20px 0; box-shadow: var(--shadow-card); }
.steps-flow-alt { margin: 32px 0; }
.step-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.step-num {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  background: var(--color-primary-soft);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.step-body h3 { margin-bottom: 4px; }
.step-body p { font-size: 15px; }

/* ============================================================
   Policy Pages
   ============================================================ */
.policy-updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-soft);
  color: var(--color-accent-2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.policy-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.policy-nav a {
  padding: 8px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  transition: all var(--motion-fast);
}
.policy-nav a:hover { background: var(--color-primary-soft); border-color: var(--color-accent); }
.policy-image-block { margin: 32px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.policy-img, .faq-img { border-radius: var(--radius-lg); width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-accordion { margin-top: 24px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--motion-fast);
}
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fast);
}
.faq-trigger:hover { background: rgba(255,255,255,.03); }
.faq-icon {
  flex: 0 0 24px;
  font-size: 20px;
  color: var(--color-accent);
  transition: transform var(--motion-normal);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-slow) var(--ease-out), padding var(--motion-slow);
  padding: 0 20px;
}
.faq-answer p { font-size: 15px; }
.faq-item.is-open .faq-answer { max-height: 600px; padding: 0 20px 18px; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-image-block { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--color-border);
  padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}
.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--color-footer-text); margin-bottom: 12px; }
.footer-contact { font-size: 14px; color: var(--color-footer-text); margin-bottom: 8px; }
.footer-copy { font-size: 13px; color: var(--color-text-muted); }
.footer-heading { font-size: 16px; color: var(--color-text); margin-bottom: 16px; }
.footer-link {
  display: block;
  color: var(--color-footer-text);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color var(--motion-fast);
}
.footer-link:hover { color: var(--color-accent-2); }

/* ============================================================
   404 Page
   ============================================================ */
.error-section { padding: 100px 0 80px; }
.center-text { text-align: center; }
.error-lead { font-size: 18px; margin: 16px auto 32px; max-width: 540px; }
.error-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.error-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.error-nav li a {
  padding: 8px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ============================================================
   AOS fallback — content always visible if AOS fails
   ============================================================ */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   Swiper fallback
   ============================================================ */
.swiper:not(.swiper-initialized) { overflow-x: auto; display: flex; gap: 16px; }

/* ============================================================
   Print & Accessibility
   ============================================================ */
@media print {
  .site-header, .site-footer, .mobile-menu, .nav-toggle, .cta-actions { display: none !important; }
  body { background: #fff; color: #000; }
}
