/* ============================================================
   Design System: Emerald Trust Gaming UI
   Project: 7j777 bet — Bangladesh Premium Platform
   ============================================================ */

:root {
  /* Color Tokens */
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-soft: rgba(13,148,136,.12);
  --color-secondary: #f59e0b;
  --color-accent: #8b5cf6;
  --color-bg: #0c1222;
  --color-bg-soft: #111b2e;
  --color-surface: #162036;
  --color-surface-strong: #1c2a44;
  --color-card: #182338;
  --color-card-alt: #1a2d4a;
  --color-border: rgba(255,255,255,.08);
  --color-border-strong: rgba(13,148,136,.35);
  --color-text: #f1f5f9;
  --color-text-soft: #cbd5e1;
  --color-text-muted: #64748b;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #080e1a;
  --color-footer-text: #94a3b8;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #0c1222 0%, #162036 40%, #1a2d4a 100%);
  --gradient-hero-soft: linear-gradient(180deg, rgba(13,148,136,.08) 0%, transparent 60%);
  --gradient-button: linear-gradient(135deg, #0d9488, #14b8a6);
  --gradient-button-hover: linear-gradient(135deg, #0f766e, #0d9488);
  --gradient-card-border: linear-gradient(135deg, rgba(13,148,136,.4), rgba(139,92,246,.2));
  --gradient-card-bg: linear-gradient(180deg, #182338, #162036);
  --gradient-cta: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  --gradient-footer: linear-gradient(180deg, #0a0f1c, #080e1a);
  --gradient-mobile-menu: linear-gradient(180deg, #111b2e, #0c1222);
  --gradient-form-panel: linear-gradient(135deg, #162036, #1c2a44);

  /* Shadow Tokens */
  --shadow-header: 0 2px 20px rgba(0,0,0,.35);
  --shadow-card: 0 4px 24px rgba(0,0,0,.2);
  --shadow-card-hover: 0 8px 40px rgba(13,148,136,.15);
  --shadow-button: 0 4px 16px rgba(13,148,136,.3);
  --shadow-cta: 0 6px 28px rgba(13,148,136,.25);
  --shadow-menu: 0 12px 48px rgba(0,0,0,.5);
  --shadow-form: 0 8px 32px rgba(0,0,0,.3);
  --shadow-footer: 0 -2px 20px rgba(0,0,0,.2);
  --shadow-soft: 0 2px 12px rgba(0,0,0,.15);
  --shadow-mobile: 0 4px 16px rgba(0,0,0,.25);

  /* Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-card: 14px;
  --radius-image: 12px;
  --radius-form: 10px;
  --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.8rem, 4vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 0.9375rem;
  --lh-heading: 1.3;
  --lh-body: 1.85;
  --lh-readable: 1.9;

  /* Spacing Tokens */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --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: 40px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(16px, 2vw, 24px);
  --form-padding: clamp(20px, 3vw, 32px);
  --footer-padding: clamp(40px, 5vw, 64px);

  /* Motion Tokens */
  --motion-fast: 150ms;
  --motion-normal: 250ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --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;
  padding: 0;
  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;
}

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; border-radius: var(--radius-image); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-text);
  margin: 0 0 0.75em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================
   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); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: var(--fs-button);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--motion-normal) var(--ease-soft);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  min-height: 42px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--gradient-button-hover);
  box-shadow: var(--shadow-cta);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-bg);
}

.btn-register {
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-button);
}
.btn-register:hover { background: var(--gradient-button-hover); color: #fff; }

.btn-login {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.btn-login:hover { background: var(--color-secondary); color: var(--color-bg); }

.btn-lg { padding: 14px 32px; font-size: 1.05rem; min-height: 48px; }
.btn-sm { padding: 8px 16px; font-size: var(--fs-small); min-height: 36px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(12,18,34,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--motion-normal);
}
.site-header.scrolled { 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);
}
.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
  border-radius: 0;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, .72vw, 14px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, .65vw, 12px);
  font-size: var(--fs-nav);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  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-secondary);
  background: rgba(245,158,11,.08);
}

.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;
}
.header-actions .btn {
  min-height: 38px;
  padding: 0 clamp(12px, 1vw, 18px);
  font-size: clamp(12px, .8vw, 14px);
}

.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  margin-left: 2px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--motion-normal);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--gradient-mobile-menu);
  border-top: 1px solid var(--color-border);
  padding: 16px;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: var(--shadow-menu);
  z-index: 999;
}
.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-radius: var(--radius-sm);
  transition: all var(--motion-fast);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--color-secondary); background: rgba(245,158,11,.06); }

@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);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
    min-height: var(--mobile-header-h);
  }
  .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; }
  .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; }
  .mobile-menu { top: var(--mobile-header-h); }
}

@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; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section-sm { padding: var(--section-y-sm) 0; }
.section-lg { padding: var(--section-y-lg) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-surface { background: var(--color-surface); }

.section-label {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title span { color: var(--color-primary); }

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.title-bar {
  width: 50px;
  height: 3px;
  background: var(--gradient-button);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ============================================================
   HERO VARIANTS
   ============================================================ */
/* Home Hero */
.home-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 72px);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-strong);
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,.12) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}
.home-hero .hero-title { font-size: var(--fs-h1); margin-bottom: 1rem; }
.home-hero .hero-title span { color: var(--color-primary); }
.home-hero .hero-desc {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.5rem;
  line-height: var(--lh-readable);
}
.home-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.home-hero .hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.home-hero .hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,148,136,.1);
  border: 1px solid rgba(13,148,136,.3);
  color: var(--color-primary);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Stats Strip */
.stats-strip {
  background: var(--gradient-cta);
  padding: 20px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: var(--fs-small);
  color: rgba(255,255,255,.85);
  margin-top: 4px;
}

/* Category Hero - only when competitor uses it */
.cat-hero {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--color-border);
}
.cat-hero .hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-xl);
  align-items: center;
}

/* Auth Hero for login/register */
.auth-section {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--gradient-hero);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

/* Article Hero */
.article-header {
  padding: clamp(32px, 4vw, 48px) 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

/* Policy Hero */
.policy-header {
  padding: clamp(32px, 4vw, 48px) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-base {
  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),
              border-color var(--motion-normal),
              box-shadow var(--motion-normal);
}
.card-base:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}

.feature-card { composes: card-base; }
.feature-card .card-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft);
  border: 1.5px solid rgba(13,148,136,.3);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.feature-card h4 { color: var(--color-secondary); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-soft); font-size: var(--fs-small); margin: 0; }

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
.trust-card .card-icon { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 10px; }
.trust-card h5 { color: var(--color-secondary); font-weight: 700; font-size: 1rem; }
.trust-card p { color: var(--color-text-soft); font-size: var(--fs-small); }

.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;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--gradient-button);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  margin: 0 auto 14px;
}
.step-card h5 { color: var(--color-secondary); font-weight: 700; }
.step-card p { color: var(--color-text-soft); font-size: var(--fs-small); }

.guide-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.guide-card .guide-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: center; }
.grid-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-content, .grid-sidebar,
  .home-hero .hero-grid, .cat-hero .hero-split, .auth-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CONTENT & PROSE
   ============================================================ */
.prose {
  max-width: var(--container-narrow);
  color: var(--color-text-soft);
  line-height: var(--lh-readable);
}
.prose p { margin-bottom: 1.1rem; font-size: 1rem; }
.prose h2 { color: var(--color-text); margin-top: 2rem; }
.prose h3 { color: var(--color-secondary); margin-top: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; color: var(--color-text-soft); }

.info-box {
  background: rgba(13,148,136,.06);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; color: var(--color-text-soft); font-size: var(--fs-small); }

.warning-box {
  background: rgba(245,158,11,.06);
  border-left: 4px solid var(--color-warning);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.warning-box p { margin: 0; color: var(--color-text-soft); font-size: var(--fs-small); }

.content-img {
  border-radius: var(--radius-image);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
}
.img-caption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-top: 8px;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--gradient-cta);
  text-align: center;
}
.cta-section h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-section .cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-section .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-section .btn-primary:hover { background: var(--color-secondary); color: var(--color-bg); }
.cta-section .btn-secondary { border-color: #fff; color: #fff; }
.cta-section .btn-secondary:hover { background: #fff; color: var(--color-primary-dark); }

.inline-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 2rem 0;
}
.inline-cta p { margin: 0; flex: 1; color: var(--color-text-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-group { margin-bottom: 2rem; }
.faq-group h3 { color: var(--color-primary); margin-bottom: 1rem; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--color-card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  font-family: inherit;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--motion-normal);
}
.faq-question[aria-expanded="true"]::after { content: '−'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-slow) var(--ease-soft);
}
.faq-answer-inner {
  padding: 0 20px 16px;
  color: var(--color-text-soft);
  font-size: var(--fs-small);
  line-height: 1.8;
}

/* ============================================================
   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: 18px; }
.form-label {
  display: block;
  color: var(--color-text-soft);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-form);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--motion-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.form-input::placeholder { color: var(--color-text-muted); }

.form-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-button);
  color: #fff;
  border: none;
  border-radius: var(--radius-form);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--motion-normal);
  font-family: inherit;
}
.form-btn:hover { background: var(--gradient-button-hover); box-shadow: var(--shadow-cta); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-align: center;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 20px;
}
.security-note i { color: var(--color-success); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.security-note p { margin: 0; font-size: var(--fs-small); color: var(--color-text-soft); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
  padding: 14px 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  font-size: var(--fs-small);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '/'; color: var(--color-text-muted); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .current { color: var(--color-text-soft); }

/* ============================================================
   TABLE
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.data-table th {
  background: var(--color-surface-strong);
  color: var(--color-secondary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-border-strong);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
}
.data-table tr:hover td { background: rgba(13,148,136,.03); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--color-border-strong);
  padding-top: var(--footer-padding);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-xl);
  margin-bottom: 2.5rem;
}
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo-link img { border-radius: 0; }
.footer-desc {
  color: var(--color-footer-text);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,148,136,.1);
  border: 1px solid rgba(13,148,136,.25);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.footer-heading {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  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: var(--fs-small);
  transition: color var(--motion-fast);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-secondary); }

.footer-contact { margin-top: 16px; }
.footer-contact p {
  color: var(--color-footer-text);
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: var(--color-text-muted); font-size: 0.82rem; margin: 0; }
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: var(--gap-xl);
  align-items: start;
}
.article-body { max-width: var(--container-narrow); }
.article-body p { color: var(--color-text-soft); line-height: var(--lh-readable); margin-bottom: 1.1rem; }
.article-body h3 { color: var(--color-secondary); margin: 2rem 0 0.8rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: 1.5rem;
}
.article-cover {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .article-shell { grid-template-columns: 1fr; }
}

/* ============================================================
   POLICY LAYOUT
   ============================================================ */
.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--gap-xl);
  align-items: start;
}
.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.policy-toc h4 { color: var(--color-secondary); font-size: 0.9rem; margin-bottom: 12px; }
.policy-toc a {
  display: block;
  padding: 6px 0;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--color-border);
}
.policy-toc a:last-child { border-bottom: none; }
.policy-toc a:hover { color: var(--color-primary); }
.policy-body { max-width: var(--container-narrow); }
.policy-body h2 { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.policy-note {
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 1.5rem 0;
}
.policy-note p { margin: 0; color: var(--color-text-soft); font-size: var(--fs-small); }
.policy-updated {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}

/* ============================================================
   LISTING / CATEGORY PAGE
   ============================================================ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-lg);
}
.listing-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.listing-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}
.listing-card .card-content { padding: var(--card-padding); }
.listing-card h4 { font-size: 1rem; color: var(--color-text); margin-bottom: 6px; }
.listing-card p { font-size: var(--fs-small); color: var(--color-text-soft); margin: 0; }

/* ============================================================
   SWIPER DEGRADATION
   ============================================================ */
.swiper:not(.swiper-initialized) {
  display: flex;
  overflow-x: auto;
  gap: var(--gap-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* ============================================================
   AOS DEGRADATION
   ============================================================ */
[data-aos] { transition-property: opacity, transform; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--gradient-button);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-button);
  z-index: 900;
  transition: opacity var(--motion-normal);
}
.scroll-top.visible { display: flex; }

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 768px) {
  .home-hero { padding: clamp(40px, 6vw, 56px) 0; }
  .section { padding: clamp(36px, 5vw, 56px) 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 414px) {
  body { font-size: 0.9375rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .btn { min-height: 44px; }
}

@media (max-width: 375px) {
  .container { padding: 0 12px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PAGE-SPECIFIC CLASSES
   ============================================================ */
.page-home {}
.page-category {}
.page-article {}
.page-policy {}
.page-login {}
.page-register {}
.page-faq {}
.page-about {}
.page-contact {}
.page-download {}
