/* ============================================================
   tk-222.org Design System — Emerald Trust Gaming UI
   Visual Style: Warm coral + rose gradient, trust-focused
   ============================================================ */

/* === CSS Variables / Design Tokens === */
:root {
  /* Colors */
  --color-primary: #e11d48;
  --color-primary-dark: #be123c;
  --color-primary-soft: #fda4af;
  --color-secondary: #f472b6;
  --color-accent: #fb923c;
  --color-bg: #fff7ed;
  --color-bg-soft: #fff1e6;
  --color-surface: #ffffff;
  --color-surface-strong: #fef2f2;
  --color-card: #ffffff;
  --color-card-alt: #fff5f5;
  --color-border: #fecdd3;
  --color-border-strong: #fca5a5;
  --color-text: #1c1917;
  --color-text-soft: #44403c;
  --color-text-muted: #78716c;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-footer-bg: #1c1917;
  --color-footer-text: #d6d3d1;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #e11d48 0%, #f472b6 50%, #fb923c 100%);
  --gradient-hero-soft: linear-gradient(135deg, #fecdd3 0%, #fce7f3 100%);
  --gradient-button: linear-gradient(135deg, #e11d48, #f43f5e);
  --gradient-button-hover: linear-gradient(135deg, #be123c, #e11d48);
  --gradient-card-border: linear-gradient(135deg, #fda4af, #f9a8d4);
  --gradient-card-bg: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
  --gradient-cta: linear-gradient(135deg, #f97316, #ef4444);
  --gradient-footer: linear-gradient(180deg, #292524, #1c1917);
  --gradient-mobile-menu: linear-gradient(180deg, #1c1917 0%, #292524 100%);
  --gradient-form-panel: linear-gradient(135deg, #fef2f2, #fff7ed);

  /* Shadows */
  --shadow-header: 0 2px 20px rgba(225,29,72,.12);
  --shadow-card: 0 4px 24px rgba(225,29,72,.08);
  --shadow-card-hover: 0 12px 40px rgba(225,29,72,.16);
  --shadow-button: 0 4px 14px rgba(225,29,72,.25);
  --shadow-cta: 0 6px 20px rgba(249,115,22,.2);
  --shadow-menu: 0 12px 48px rgba(0,0,0,.18);
  --shadow-form: 0 8px 32px rgba(225,29,72,.1);
  --shadow-footer: 0 -4px 20px rgba(0,0,0,.06);
  --shadow-soft: 0 2px 8px rgba(0,0,0,.05);
  --shadow-mobile: 0 2px 12px rgba(0,0,0,.08);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-image: 12px;
  --radius-form: 12px;
  --radius-section: 0;

  /* 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;
  --font-bn: "Noto Sans Bengali", system-ui, Arial, sans-serif;
  --fs-h1: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h2: clamp(1.35rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2.2vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.0625rem);
  --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;
  --letter-tight: -0.01em;
  --letter-normal: 0;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --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: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(20px, 2.5vw, 32px);
  --form-padding: clamp(24px, 3vw, 40px);
  --footer-padding: clamp(40px, 5vw, 64px);

  /* Motion */
  --motion-fast: 150ms;
  --motion-normal: 250ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(.25,.46,.45,.94);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --hover-lift: translateY(-4px);
  --hover-scale: scale(1.02);
}

/* === Global Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: 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) var(--ease-soft); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--color-primary-soft);
  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;
    scroll-behavior: auto !important;
  }
}

/* === 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); }

/* === Section Spacing === */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
.section-lg { padding-top: var(--section-y-lg); padding-bottom: var(--section-y-lg); }
.section-alt { background-color: var(--color-surface); }
.section-soft { background-color: var(--color-bg-soft); }

/* ============================================================
   HEADER — Stable three-column layout, no "more" button
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, .8vw, 14px);
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, .6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(5px, .55vw, 10px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--motion-fast) var(--ease-soft);
  text-decoration: none;
}

.primary-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
}

.primary-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.2);
  font-weight: 600;
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}

/* Nav Toggle (mobile only) */
.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px;
  cursor: pointer;
  transition: background var(--motion-fast);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--motion-normal) var(--ease-soft);
}

.nav-toggle:hover { background: rgba(255,255,255,.2); }

.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 {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mobile-menu);
  z-index: 999;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open { display: block; }

.mobile-menu-inner {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-inner a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
  text-decoration: none;
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.mobile-menu-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-footer a {
  display: block;
  padding: 14px 16px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
}

/* Mobile Header Responsive */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    min-height: var(--mobile-header-h);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .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; }
  .nav-toggle { flex-basis: 40px; width: 40px; height: 40px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
  padding: 16px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.breadcrumb-list li::after { content: "›"; margin-left: 8px; color: var(--color-text-muted); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list li.active { color: var(--color-text); font-weight: 500; }
.breadcrumb-list a { color: var(--color-text-muted); }
.breadcrumb-list a:hover { color: var(--color-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--motion-normal) var(--ease-soft);
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--gradient-button-hover);
  transform: var(--hover-lift);
  box-shadow: var(--shadow-card-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-accent {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-accent:hover {
  transform: var(--hover-lift);
  box-shadow: 0 8px 28px rgba(249,115,22,.3);
  color: #fff;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: var(--fs-small); min-height: 38px; }

/* ============================================================
   HERO VARIANTS
   ============================================================ */

/* Home Hero — Full gradient, strong visual */
.home-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(48px, 8vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-heading);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero .lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  opacity: .92;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.home-hero .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inner Page Hero — Lighter, info-focused */
.inner-hero {
  background: var(--gradient-hero-soft);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--color-border);
}

.inner-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--lh-heading);
  margin-bottom: 12px;
}

.inner-hero .lead {
  color: var(--color-text-soft);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  max-width: 700px;
  line-height: 1.7;
}

/* Game Detail Hero — Split layout */
.game-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0;
  position: relative;
  overflow: hidden;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.game-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: var(--lh-heading);
  margin-bottom: 16px;
}

.game-hero .lead {
  opacity: .9;
  margin-bottom: 24px;
  line-height: 1.7;
}

.game-hero-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

@media (max-width: 768px) {
  .game-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .game-hero-img { max-width: 400px; margin: 0 auto; }
}

/* Auth Hero — Form-focused */
.auth-hero {
  background: var(--gradient-form-panel);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--color-border);
}

/* Policy Hero — Minimal */
.policy-hero {
  background: var(--color-surface);
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 2px solid var(--color-border);
}

.policy-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
}

/* ============================================================
   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); }

@media (max-width: 900px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* Feature Card */
.feature-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: all var(--motion-normal) var(--ease-soft);
  text-align: center;
}

.feature-card:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-soft);
}

.feature-card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero-soft);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.feature-card h3, .feature-card h4 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-soft);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Step Card */
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-button);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
}

/* Trust Card */
.trust-card {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

/* Review Card */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
}

.review-card .rating { color: #fbbf24; font-size: 1.1rem; margin-bottom: 12px; }

/* Pricing Card */
.pricing-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
  transition: all var(--motion-normal) var(--ease-soft);
}

.pricing-card:hover {
  border-color: var(--color-primary);
  transform: var(--hover-scale);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  background: var(--gradient-card-bg);
  position: relative;
}

.pricing-card .price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 16px 0;
}

/* Game Card */
.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--motion-normal) var(--ease-soft);
}

.game-card:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-card-hover);
}

.game-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow) var(--ease-soft);
}

.game-card:hover .game-card-img img { transform: scale(1.06); }

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ============================================================
   CONTENT / PROSE
   ============================================================ */
.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.prose h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--color-text);
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.prose p {
  font-size: var(--fs-body);
  line-height: var(--lh-readable);
  margin: 0 0 18px;
  color: var(--color-text-soft);
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.prose li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.prose ol li { list-style: decimal; }

.prose img {
  border-radius: var(--radius-image);
  margin: 28px 0;
  box-shadow: var(--shadow-card);
}

.content-img {
  width: 100%;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-card);
  margin: 28px 0;
}

/* Section Title */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 32px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-button);
  margin: 12px auto 0;
  border-radius: 3px;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.split-layout-reverse { direction: rtl; }
.split-layout-reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .split-layout, .split-layout-reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.data-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
}

.data-table tr:nth-child(even) td { background: var(--color-bg-soft); }
.data-table tr:hover td { background: var(--color-surface-strong); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-group { margin-bottom: 32px; }

.faq-group-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--color-surface);
  transition: box-shadow var(--motion-fast);
}

.faq-item:hover { box-shadow: var(--shadow-soft); }

.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--motion-fast);
}

.faq-question:hover { background: var(--color-bg-soft); }

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--motion-normal) var(--ease-soft);
}

.faq-item.is-open .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--color-text-soft);
  line-height: var(--lh-readable);
}

.faq-item.is-open .faq-answer { display: block; }

/* ============================================================
   FORMS (Login / Register)
   ============================================================ */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
}

.auth-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--form-padding);
  box-shadow: var(--shadow-form);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-form);
  font-size: var(--fs-body);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  background: var(--color-surface);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225,29,72,.1);
  outline: none;
}

.form-control.error { border-color: var(--color-danger); }

.form-error {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 4px;
  display: none;
}

.auth-trust-card {
  background: var(--gradient-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
}

.auth-step-list {
  counter-reset: auth-step;
}

.auth-step-list li {
  counter-increment: auth-step;
  padding: 12px 0 12px 48px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  list-style: none;
  line-height: 1.6;
}

.auth-step-list li::before {
  content: counter(auth-step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.85rem;
}

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.alert-box {
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
}

.alert-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-success {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #15803d;
}

.alert-danger {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

.privacy-notice {
  background: var(--gradient-hero-soft);
  border-left: 4px solid var(--color-primary);
  padding: 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: .9;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn { background: #fff; color: var(--color-primary); }
.cta-section .btn:hover { background: var(--color-bg); transform: var(--hover-lift); color: var(--color-primary); }

/* Inline CTA */
.inline-cta {
  background: var(--color-surface-strong);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
  margin: 32px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
  padding-top: var(--footer-padding);
  box-shadow: var(--shadow-footer);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--gap-lg);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-top: 16px;
  opacity: .8;
}

.footer-logo {
  max-height: 40px;
  width: auto;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--color-footer-text);
  font-size: var(--fs-small);
  transition: color var(--motion-fast), padding-left var(--motion-fast);
  text-decoration: none;
}

.footer-col a:hover { color: var(--color-primary-soft); padding-left: 4px; }

.footer-trust {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  opacity: .7;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: var(--fs-small);
  opacity: .6;
}

/* ============================================================
   PAGE-SPECIFIC CLASSES
   ============================================================ */

/* Home */
.page-home .home-trust-strip {
  background: var(--color-surface);
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-strip-grid {
  display: flex;
  justify-content: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
  text-align: center;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text-soft);
  font-size: var(--fs-small);
}

/* About */
.about-story { background: var(--color-surface); }
.about-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}

.about-data-item .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .about-data-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Review */
.rating-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-lg);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  margin-bottom: 32px;
}

.rating-big {
  text-align: center;
}

.rating-big .score {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .rating-overview { grid-template-columns: 1fr; }
}

/* Policy */
.policy-layout { background: var(--color-surface); }

.policy-toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.policy-toc h3 { margin-bottom: 12px; }
.policy-toc a { display: block; padding: 6px 0; font-size: var(--fs-small); }

.policy-note {
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  font-size: var(--fs-small);
}

/* ============================================================
   SWIPER FALLBACK
   ============================================================ */
.swiper:not(.swiper-initialized) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--gap-md);
  padding-bottom: 8px;
}

.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 320px);
  scroll-snap-align: start;
}

/* AOS Fallback */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */
@media (max-width: 414px) {
  .btn { padding: 10px 20px; font-size: var(--fs-small); }
  .btn-lg { padding: 14px 28px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
}

@media (max-width: 375px) {
  body { font-size: 0.9375rem; }
  .section-title { font-size: 1.3rem; }
  .home-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .container { padding-left: 12px; padding-right: 12px; }
}
