/* =============================================
   AK44 — Emerald Trust Gaming UI
   Original Design System v1.0
   ============================================= */

:root {
  /* Color Tokens */
  --color-primary: #d4a017;
  --color-primary-dark: #b8860b;
  --color-primary-soft: rgba(212,160,23,0.12);
  --color-secondary: #1e3a5f;
  --color-accent: #e8c547;
  --color-bg: #080c14;
  --color-bg-soft: #0e1520;
  --color-surface: #141c2b;
  --color-surface-strong: #1a2538;
  --color-card: #162032;
  --color-card-alt: #1c2a40;
  --color-border: rgba(212,160,23,0.18);
  --color-border-strong: rgba(212,160,23,0.35);
  --color-text: #edf2f7;
  --color-text-soft: #a0aec0;
  --color-text-muted: #718096;
  --color-success: #38b2ac;
  --color-warning: #ed8936;
  --color-danger: #fc5c65;
  --color-footer-bg: #060a10;
  --color-footer-text: #8a9bb5;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #080c14 0%, #1a1200 45%, #080c14 100%);
  --gradient-hero-soft: linear-gradient(180deg, rgba(212,160,23,0.06) 0%, transparent 60%);
  --gradient-button: linear-gradient(135deg, #d4a017, #e8c547);
  --gradient-button-hover: linear-gradient(135deg, #e8c547, #f5dc7a);
  --gradient-card-border: linear-gradient(135deg, rgba(212,160,23,0.3), rgba(212,160,23,0.05));
  --gradient-card-bg: linear-gradient(180deg, #162032 0%, #1a2538 100%);
  --gradient-cta: linear-gradient(135deg, #d4a017, #b8860b);
  --gradient-footer: linear-gradient(180deg, #0a0e18 0%, #060a10 100%);
  --gradient-mobile-menu: linear-gradient(180deg, #0e1520 0%, #141c2b 100%);
  --gradient-form-panel: linear-gradient(135deg, #141c2b 0%, #1a2538 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 8px 32px rgba(212,160,23,0.12);
  --shadow-button: 0 2px 12px rgba(212,160,23,0.2);
  --shadow-cta: 0 4px 24px rgba(212,160,23,0.18);
  --shadow-menu: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-form: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-footer: 0 -2px 20px rgba(0,0,0,0.3);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-mobile: 0 4px 12px rgba(0,0,0,0.3);

  /* 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;
  --radius-form: 8px;
  --radius-section: 0;

  /* 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;
  --font-bn: "Noto Sans Bengali", system-ui, sans-serif;
  --fs-h1: clamp(1.6rem, 3.8vw, 2.6rem);
  --fs-h2: clamp(1.3rem, 2.8vw, 1.85rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-nav: clamp(13px, 0.84vw, 15px);
  --fs-button: 0.95rem;
  --lh-heading: 1.3;
  --lh-body: 1.85;
  --lh-readable: 1.95;

  /* Spacing Tokens */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 780px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --section-y-lg: clamp(64px, 8vw, 100px);
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 18px;
  --gap-lg: 28px;
  --gap-xl: 42px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(20px, 2.5vw, 28px);
  --form-padding: clamp(24px, 3vw, 36px);
  --footer-padding: clamp(40px, 5vw, 64px);

  /* Motion Tokens */
  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --motion-slow: 0.4s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & GLOBAL
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast) var(--ease-soft); }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-text);
  margin: 0 0 var(--gap-md);
}

h1 { font-size: var(--fs-h1); font-weight: 700; color: var(--color-primary); }
h2 { font-size: var(--fs-h2); font-weight: 700; color: var(--color-primary); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0 0 var(--gap-md); color: var(--color-text-soft); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  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-left: clamp(16px, 3vw, 24px);
  padding-right: clamp(16px, 3vw, 24px);
}

.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-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, 0.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, 0.6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px clamp(5px, 0.55vw, 10px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-primary);
  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, 0.6vw, 10px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0;
  transition: background var(--motion-fast);
}

.nav-toggle:hover { background: var(--color-primary-soft); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: var(--fs-button);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--motion-normal) var(--ease-soft);
  line-height: 1.2;
  min-height: 42px;
}

.btn-primary {
  background: var(--gradient-button);
  color: #080c14;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  color: #080c14;
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #080c14;
}

.btn-register {
  background: var(--gradient-button);
  color: #080c14;
  font-weight: 700;
  box-shadow: var(--shadow-button);
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-register:hover {
  background: var(--gradient-button-hover);
  color: #080c14;
  transform: translateY(-1px);
}

.btn-login {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 7px 14px;
  font-size: 0.88rem;
}

.btn-login:hover {
  background: var(--color-primary);
  color: #080c14;
}

.btn-sm { padding: 7px 14px; font-size: 0.85rem; min-height: 36px; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; min-height: 48px; }

/* =============================================
   MOBILE MENU
   ============================================= */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--mobile-header-h);
  left: 12px;
  right: 12px;
  background: var(--gradient-mobile-menu);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: var(--shadow-menu);
  z-index: 999;
  flex-direction: column;
  gap: 2px;
}

#mobile-menu.is-open { display: flex; }

#mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast), color var(--motion-fast);
}

#mobile-menu a:hover,
#mobile-menu a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

#mobile-menu .mobile-cta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

#mobile-menu .mobile-cta .btn { flex: 1; text-align: center; }

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: var(--section-y) 0;
}

.section-alt {
  background: var(--color-bg-soft);
}

.section-dark {
  background: var(--color-surface);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--gap-sm);
  line-height: var(--lh-heading);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--gap-lg);
  max-width: 620px;
}

.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

.gold-divider {
  width: 56px;
  height: 3px;
  background: var(--gradient-button);
  border-radius: 2px;
  margin: var(--gap-sm) 0 var(--gap-md);
}

.section-center .gold-divider { margin-left: auto; margin-right: auto; }

/* =============================================
   HERO VARIANTS
   ============================================= */
.home-hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,160,23,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-button);
  color: #080c14;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  margin-bottom: var(--gap-md);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.hero-content p { max-width: 560px; font-size: 1.05rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--gap-lg);
}

.hero-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

/* Inner page hero */
.page-hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(36px, 5vw, 64px) 0;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.3;
}

/* Auth hero */
.auth-hero {
  background: var(--gradient-form-panel);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--color-border);
}

/* Policy hero */
.policy-hero {
  background: var(--color-surface);
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid var(--color-border);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-wrap {
  background: var(--color-bg-soft);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
}

.breadcrumb-item { color: var(--color-text-muted); }
.breadcrumb-item a { color: var(--color-text-soft); }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 8px; color: var(--color-text-muted); }
.breadcrumb-item.active { color: var(--color-primary); }

/* =============================================
   CARDS
   ============================================= */
.card-grid {
  display: grid;
  gap: var(--gap-lg);
}

.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); }

.dark-card {
  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-out), box-shadow var(--motion-normal);
}

.dark-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Feature card */
.feature-card { text-align: center; }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 0 auto var(--gap-md);
}

.feature-card h5 { color: var(--color-accent); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* Step card */
.step-card { text-align: center; }
.step-number {
  width: 46px; height: 46px;
  background: var(--gradient-button);
  color: #080c14;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gap-sm);
}

/* Trust card */
.trust-card {
  background: linear-gradient(135deg, rgba(212,160,23,0.05), rgba(212,160,23,0.02));
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
}

.trust-card h5 { color: var(--color-primary); font-weight: 700; }
.trust-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

/* Game card */
.game-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.game-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card-body {
  padding: var(--card-padding);
}

.game-card-body h5 { color: var(--color-accent); font-weight: 700; margin-bottom: 8px; }
.game-card-body p { color: var(--color-text-muted); font-size: 0.9rem; }

/* Pricing card */
.pricing-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding) var(--card-padding) var(--gap-lg);
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 28px rgba(212,160,23,0.12);
}

.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-button);
  color: #080c14;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--gap-md);
}

.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--color-text-muted); }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gap-lg);
  text-align: left;
}

.pricing-features li {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* =============================================
   STAT PILLS / BARS
   ============================================= */
.stat-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-box { padding: 16px 12px; border-right: 1px solid var(--color-border); }
.stat-box:last-child { border-right: none; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); display: block; }
.stat-label { color: var(--color-text-muted); font-size: 0.85rem; }

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 4px;
}

/* =============================================
   CONTENT / PROSE
   ============================================= */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--gap-xl);
  align-items: start;
}

.content-grid-reverse { direction: rtl; }
.content-grid-reverse > * { direction: ltr; }

.prose { max-width: var(--container-narrow); }

.prose p {
  font-size: 1rem;
  line-height: var(--lh-readable);
  margin-bottom: var(--gap-md);
  color: var(--color-text-soft);
}

.prose h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  margin: var(--gap-xl) 0 var(--gap-md);
  color: var(--color-primary);
}

.prose h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  margin: var(--gap-lg) 0 var(--gap-sm);
}

.content-img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  object-fit: cover;
}

/* =============================================
   IMAGE GRID
   ============================================= */
.image-grid {
  display: grid;
  gap: var(--gap-md);
}

.image-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* =============================================
   FAQ
   ============================================= */
.faq-list { max-width: 800px; }

.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 {
  width: 100%;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-family: var(--font-base);
  line-height: 1.4;
  transition: background var(--motion-fast);
}

.faq-question:hover { background: rgba(212,160,23,0.04); }

.faq-question .faq-icon {
  color: var(--color-primary);
  font-size: 0.85rem;
  transition: transform var(--motion-normal) var(--ease-out);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  display: none;
}

.faq-answer.is-open { display: block; }

/* =============================================
   FORMS
   ============================================= */
.form-card {
  background: var(--gradient-form-panel);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--form-padding);
  box-shadow: var(--shadow-form);
}

.form-group { margin-bottom: var(--gap-md); }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-form);
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-base);
  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 var(--color-primary-soft);
}

.form-input::placeholder { color: var(--color-text-muted); }

/* =============================================
   TABLES
   ============================================= */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--color-surface-strong);
  color: var(--color-primary);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-soft);
}

.data-table tr:hover td { background: rgba(212,160,23,0.03); }

/* =============================================
   CTA SECTIONS
   ============================================= */
.cta-section {
  background: var(--gradient-hero);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-inline {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--color-border);
  padding: var(--footer-padding) 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--gap-xl);
}

.footer-brand-text {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--gap-md);
}

.footer-heading {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--gap-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: var(--color-footer-text);
  font-size: 0.88rem;
  transition: color var(--motion-fast);
  display: inline-block;
  padding: 3px 0;
}

.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--gap-xl);
  padding-top: var(--gap-md);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.footer-email { color: var(--color-primary); }

/* =============================================
   MAP
   ============================================= */
.map-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-wrapper iframe { display: block; width: 100%; border: 0; }

/* =============================================
   ARTICLE / POLICY SPECIFIC
   ============================================= */
.article-body {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.article-body h2 { margin-top: var(--gap-xl); }

.policy-layout { max-width: var(--container-narrow); margin: 0 auto; }

.policy-note {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: var(--gap-lg) 0;
}

.policy-note h5 { color: var(--color-primary); font-weight: 700; font-size: 0.95rem; }
.policy-note p { color: var(--color-text-muted); font-size: 0.9rem; margin: 6px 0 0; }

/* Auth layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

/* =============================================
   SWIPER DEGRADATION
   ============================================= */
.swiper:not(.swiper-initialized) {
  display: flex;
  gap: var(--gap-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* AOS degradation */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* =============================================
   RESPONSIVE: TABLET
   ============================================= */
@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: 40px;
    padding-inline: clamp(10px, 2.6vw, 14px);
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 2px;
  }

  .hero-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .hero-image { order: -1; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid-reverse { direction: ltr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-box { border-bottom: 1px solid var(--color-border); }
  .stat-box:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .image-grid-2 { grid-template-columns: 1fr; }
}

/* =============================================
   RESPONSIVE: MOBILE
   ============================================= */
@media (max-width: 768px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }

  .pricing-card.featured { transform: none; }

  .cta-inline { flex-direction: column; text-align: center; }
}

@media (max-width: 414px) {
  .hero-content h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.2rem; }
}

@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: 38px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .nav-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  body { font-size: 0.94rem; }

  .dark-card { padding: 16px; }
  .form-card { padding: 20px; }
}

@media (max-width: 360px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.text-gold { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-row { display: flex; flex-wrap: wrap; gap: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: #080c14;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: var(--shadow-button);
  transition: opacity var(--motion-normal);
}

.back-to-top.visible { display: flex; }
