/* ============================================================
   8kbd.im — Crystal Arcade Trust UI Design System
   Original design system for Bangladesh market
   ============================================================ */

:root {
  /* Color Tokens */
  --color-primary: #1a5276;
  --color-primary-dark: #0e3a56;
  --color-primary-soft: #d4e6f1;
  --color-secondary: #f39c12;
  --color-accent: #e74c3c;
  --color-bg: #f8f9fb;
  --color-bg-soft: #eef2f7;
  --color-surface: #ffffff;
  --color-surface-strong: #f0f4f8;
  --color-card: #ffffff;
  --color-card-alt: #f7fafd;
  --color-border: #dce4ec;
  --color-border-strong: #b0c4d8;
  --color-text: #1c2e3f;
  --color-text-soft: #4a6278;
  --color-text-muted: #7b8fa0;
  --color-success: #27ae60;
  --color-warning: #f39c12;
  --color-danger: #e74c3c;
  --color-footer-bg: #0c2233;
  --color-footer-text: #c8dae8;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #0e3a56 0%, #1a5276 50%, #1f6da0 100%);
  --gradient-hero-soft: linear-gradient(180deg, #eef2f7 0%, #f8f9fb 100%);
  --gradient-button: linear-gradient(135deg, #f39c12, #e67e22);
  --gradient-button-hover: linear-gradient(135deg, #e67e22, #d35400);
  --gradient-card-border: linear-gradient(135deg, rgba(26,82,118,.15), rgba(243,156,18,.15));
  --gradient-cta: linear-gradient(135deg, #1a5276, #1f6da0);
  --gradient-footer: linear-gradient(180deg, #0c2233, #081a29);

  /* Shadow Tokens */
  --shadow-header: 0 2px 20px rgba(12,34,51,.08);
  --shadow-card: 0 4px 24px rgba(12,34,51,.06);
  --shadow-card-hover: 0 12px 36px rgba(12,34,51,.12);
  --shadow-button: 0 4px 16px rgba(243,156,18,.25);
  --shadow-cta: 0 8px 32px rgba(26,82,118,.15);
  --shadow-soft: 0 2px 12px rgba(0,0,0,.04);

  /* Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 16px;

  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(28px, 4vw, 48px);
  --fs-h2: clamp(22px, 3vw, 36px);
  --fs-h3: clamp(18px, 2.2vw, 26px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 15px;
  --lh-heading: 1.3;
  --lh-body: 1.85;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --header-h: 72px;
  --mobile-header-h: 64px;

  /* Motion */
  --motion-fast: .15s;
  --motion-normal: .3s;
  --motion-slow: .5s;
  --ease-out: cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 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;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast) ease; }
a:hover { color: var(--color-primary-dark); }

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

/* ============================================================
   Header — Crystal Arcade Trust UI
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--motion-normal) ease;
}

.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);
  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(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: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.primary-nav a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.primary-nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 700;
}

.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;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: var(--fs-button);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--motion-fast) ease;
  min-height: 42px;
}

.btn-login {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-login:hover { background: var(--color-primary); color: #fff; }

.btn-register {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-register:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--motion-normal) var(--ease-out), opacity var(--motion-fast);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 12px;
  right: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  padding: 16px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  z-index: 999;
  border: 1px solid var(--color-border);
}

.mobile-menu.is-open { display: block; }

.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: 16px;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}

.mobile-nav a:hover,
.mobile-nav a:focus { background: var(--color-bg-soft); }

/* ============================================================
   Responsive Header
   ============================================================ */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    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; 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; }
}

@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; }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb-nav {
  background: var(--color-bg-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--color-text-muted);
}

.breadcrumb-list a { color: var(--color-primary); }
.breadcrumb-list li[aria-current] { color: var(--color-text-muted); }

/* ============================================================
   Hero Variants
   ============================================================ */

/* Homepage Hero — Strong Visual */
.home-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(243,156,18,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.home-hero .hero-badge {
  display: inline-block;
  background: rgba(243,156,18,.2);
  color: var(--color-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(243,156,18,.3);
}

.home-hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: 800;
  margin: 0 0 20px;
}

.home-hero .hero-lead {
  font-size: 18px;
  opacity: .85;
  margin-bottom: 28px;
  line-height: 1.7;
}

.home-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero .hero-img {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  border: 2px solid rgba(255,255,255,.1);
}

/* Inner Page Hero — Compact */
.inner-hero {
  background: var(--gradient-hero-soft);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--color-border);
}

.inner-hero h1 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
  line-height: var(--lh-heading);
}

.inner-hero .hero-lead {
  color: var(--color-text-soft);
  font-size: 17px;
  max-width: 720px;
}

/* Game Page Hero — Split Layout */
.game-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.game-hero .hero-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--gap-lg);
  align-items: center;
}

.game-hero h1 {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: var(--lh-heading);
}

.game-hero .hero-lead { opacity: .85; margin-bottom: 24px; line-height: 1.7; }

.game-hero .hero-img {
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

/* Auth Hero — Form Focused */
.auth-hero {
  background: linear-gradient(135deg, #0e3a56 0%, #1a5276 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
}

.auth-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}

/* Policy Hero — Informational */
.policy-hero {
  background: var(--color-bg-soft);
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid var(--color-border);
}

.policy-hero h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.policy-hero .updated-date {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* ============================================================
   Section System
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section-sm { padding: var(--section-y-sm) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-dark { background: var(--color-primary-dark); color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: var(--gap-xl);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
  line-height: var(--lh-heading);
}

.section-header p {
  color: var(--color-text-soft);
  font-size: 17px;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: var(--lh-heading);
  margin: 0 0 16px;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--lh-heading);
  margin: 28px 0 12px;
}

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--gap-md);
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature Card */
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal) ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
}

.feature-card p { color: var(--color-text-soft); margin: 0; font-size: 15px; }

/* Trust Card */
.trust-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
}

.trust-card .card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
}

/* Step Card */
.step-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

/* Guide Card */
.guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  align-items: start;
}

/* Price Card */
.price-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--motion-normal) var(--ease-out);
}

.price-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.price-card .plan-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-card h3 { margin: 0 0 8px; }
.price-card .plan-level { font-size: 28px; font-weight: 800; color: var(--color-primary-dark); margin: 16px 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-soft); font-size: 15px; }
.price-card li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }

/* ============================================================
   Content Layouts
   ============================================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.split-layout.reverse > :first-child { order: 2; }
.split-layout.reverse > :last-child { order: 1; }

.content-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--color-primary-soft), rgba(243,156,18,.08));
  border: 1px solid rgba(26,82,118,.12);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.highlight-box h2 { color: var(--color-primary-dark); }

/* Info Panel */
.info-panel {
  background: var(--color-card);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}

/* Warning Panel */
.warning-panel {
  background: #fef9e7;
  border-left: 4px solid var(--color-warning);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
}

/* ============================================================
   Prose / Article Body
   ============================================================ */
.prose { max-width: var(--container-narrow); }

.prose p {
  font-size: 17px;
  line-height: var(--lh-body);
  margin: 0 0 18px;
  color: var(--color-text);
}

.prose h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  margin-top: 40px;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin-top: 32px;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.prose li { margin-bottom: 8px; color: var(--color-text-soft); }

/* ============================================================
   CTA Sections
   ============================================================ */
.cta-section {
  background: var(--gradient-cta);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
  text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { opacity: .85; margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }

.cta-inline {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--color-card);
  overflow: hidden;
  transition: box-shadow var(--motion-fast);
}

.faq-item:hover { box-shadow: var(--shadow-soft); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--motion-normal) var(--ease-out);
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================================
   Form (Login / Register)
   ============================================================ */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.auth-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 15px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--motion-fast);
  background: var(--color-bg);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.auth-trust-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.auth-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.auth-step-list li {
  counter-increment: step;
  padding: 14px 0;
  padding-left: 48px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
}

.auth-step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  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: 15px;
}

.data-table th {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}

.data-table tr:hover td { background: var(--color-bg-soft); }

/* ============================================================
   Policy Layout
   ============================================================ */
.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.policy-toc h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.policy-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-toc li { margin-bottom: 8px; }
.policy-toc a { font-size: 14px; color: var(--color-text-soft); }
.policy-toc a:hover { color: var(--color-primary); }

.policy-note {
  background: #eaf2f8;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--color-text-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
}

.footer-top { padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: var(--gap-lg);
}

.footer-brand { max-width: 320px; }
.footer-logo-link { display: inline-block; margin-bottom: 16px; }
.footer-desc { font-size: 15px; line-height: 1.7; opacity: .8; margin-bottom: 12px; }
.footer-email { font-size: 14px; opacity: .7; }
.footer-email a { color: var(--color-footer-text); }

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--color-footer-text);
  font-size: 14px;
  opacity: .75;
  transition: opacity var(--motion-fast);
}

.footer-col a:hover { opacity: 1; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: .6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .home-hero .hero-cta { justify-content: center; }
  .game-hero .hero-split { grid-template-columns: 1fr; }
  .game-hero .hero-img { max-width: 480px; margin: 0 auto; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout.reverse > :first-child { order: 1; }
  .split-layout.reverse > :last-child { order: 2; }
  .auth-layout { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
}

@media (max-width: 768px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inline { flex-direction: column; text-align: center; }
  .price-card.featured { transform: none; }
}

@media (max-width: 480px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-section { margin-top: var(--section-y); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-page {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}

.error-page h1 { font-size: clamp(48px, 10vw, 96px); color: var(--color-primary); margin: 0; }
.error-page p { font-size: 18px; color: var(--color-text-soft); margin: 16px 0 32px; }
