/* ============================================================
   DESIGN SYSTEM: Emerald Trust Gaming UI
   Project: cb666bet.one | Market: Bangladesh
   ============================================================ */

:root {
  /* Color Tokens */
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-soft: rgba(14,165,233,.12);
  --color-secondary: #8b5cf6;
  --color-accent: #f59e0b;
  --color-bg: #020617;
  --color-bg-soft: #0a0f1e;
  --color-surface: #0f172a;
  --color-surface-strong: #1e1b4b;
  --color-card: #0f172a;
  --color-card-alt: #1e1b4b;
  --color-border: rgba(14,165,233,.15);
  --color-border-strong: rgba(14,165,233,.35);
  --color-text: #e2e8f0;
  --color-text-soft: #94a3b8;
  --color-text-muted: #64748b;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #030712;
  --color-footer-text: #94a3b8;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #020617 0%, #0f172a 40%, #1e1b4b 100%);
  --gradient-hero-soft: linear-gradient(135deg, rgba(14,165,233,.08), rgba(139,92,246,.12));
  --gradient-button: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  --gradient-button-hover: linear-gradient(135deg, #0284c7, #7c3aed);
  --gradient-card-border: linear-gradient(135deg, rgba(14,165,233,.3), rgba(139,92,246,.3));
  --gradient-cta: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  --gradient-footer: linear-gradient(180deg, #030712 0%, #020617 100%);

  /* Shadow Tokens */
  --shadow-header: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(14,165,233,.06);
  --shadow-card: 0 4px 16px rgba(0,0,0,.25);
  --shadow-card-hover: 0 12px 40px rgba(14,165,233,.15);
  --shadow-button: 0 4px 12px rgba(14,165,233,.25);
  --shadow-soft: 0 2px 8px rgba(0,0,0,.2);

  /* Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-card: 14px;

  /* 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(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: .88rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: .92rem;
  --lh-heading: 1.3;
  --lh-body: 1.85;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 8vw, 80px);
  --section-y-sm: clamp(32px, 5vw, 56px);
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --header-h: 72px;
  --mobile-header-h: 64px;

  /* Motion */
  --motion-fast: .15s;
  --motion-normal: .25s;
  --motion-slow: .4s;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  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); }
a:hover { color: var(--color-secondary); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: var(--lh-heading); margin: 0 0 .6em; color: #fff; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; color: var(--color-text-soft); }
ul { margin: 0; padding: 0 0 0 1.2em; }
li { margin-bottom: .4em; color: var(--color-text-soft); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  width: 100%;
  background: rgba(2,6,23,.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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);
  display: flex; align-items: center;
}
.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, .6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px clamp(5px, .55vw, 10px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
  font-weight: 500;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}
.header-actions .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px;
  padding: 0 clamp(12px, 1.2vw, 18px);
  font-size: var(--fs-button);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: all var(--motion-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn-login {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
}
.btn-login:hover { background: var(--color-primary); color: #fff !important; }
.btn-register {
  background: var(--gradient-button);
  color: #fff !important;
  box-shadow: var(--shadow-button);
}
.btn-register:hover { opacity: .9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex: 0 0 40px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text); font-size: 1.4rem;
  cursor: pointer; margin-left: 2px;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  top: calc(var(--mobile-header-h) + 8px);
  z-index: 999;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: calc(100vh - var(--mobile-header-h) - 24px);
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-inner a {
  display: block; padding: 14px 16px;
  color: var(--color-text); font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.mobile-menu-inner a:hover,
.mobile-menu-inner a.active { background: var(--color-primary-soft); color: var(--color-primary); }
.mobile-menu-inner .btn { margin-top: 8px; text-align: center; justify-content: center; }

@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%; max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    min-height: var(--mobile-header-h);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .primary-nav { display: none; }
  .header-actions {
    margin-left: auto; flex: 0 0 auto;
    gap: clamp(5px, 1.6vw, 8px);
  }
  .header-actions .btn {
    min-height: 38px;
    padding-inline: clamp(10px, 2.6vw, 14px);
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .nav-toggle { display: inline-flex; }
}

@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: 36px; padding-inline: 8px; font-size: 12px; }
  .nav-toggle { flex-basis: 36px; width: 36px; height: 36px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
  padding: 14px 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}
.breadcrumb-nav a { color: var(--color-text-muted); }
.breadcrumb-nav a:hover { color: var(--color-primary); }
.breadcrumb-nav span { color: var(--color-text-muted); margin: 0 6px; }
.breadcrumb-nav .current { color: var(--color-text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; transition: all var(--motion-fast); border: none; }
.btn-primary-cta {
  background: var(--gradient-button); color: #fff !important;
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-button);
  box-shadow: var(--shadow-button);
}
.btn-primary-cta:hover { opacity: .9; transform: translateY(-2px); }
.btn-secondary-cta {
  background: transparent; color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  padding: 10px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-button);
}
.btn-secondary-cta:hover { background: var(--color-primary); color: #fff !important; }
.btn-sm-cta {
  background: var(--gradient-button); color: #fff !important;
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-small);
}
.btn-sm-cta:hover { opacity: .9; }
.btn-outline-sm {
  background: transparent; color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
  padding: 6px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-small);
}
.btn-outline-sm:hover { background: var(--color-primary); color: #fff !important; }

/* ============================================================
   SECTION BASICS
   ============================================================ */
.section-header { text-align: center; margin-bottom: var(--gap-lg); }
.section-header h2 { margin-bottom: 8px; }
.section-line {
  width: 60px; height: 4px;
  background: var(--gradient-button);
  border-radius: 2px;
  margin: 8px auto 14px;
}
.section-header p { color: var(--color-text-soft); max-width: 640px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-hero {
  background: var(--gradient-hero);
  padding: clamp(60px, 10vw, 100px) 0 clamp(50px, 8vw, 80px);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; top: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: center; }
.hero-badge {
  display: inline-block;
  background: var(--gradient-button); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.hero-lead { color: var(--color-text-soft); font-size: 1.05rem; max-width: 540px; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(139,92,246,.12); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img { max-height: 280px; object-fit: cover; margin: 0 auto; }
}

/* Trust Strip */
.trust-strip {
  background: var(--gradient-button);
  padding: 24px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-num { display: block; font-size: 1.8rem; font-weight: 700; color: #fff; }
.trust-label { font-size: var(--fs-small); color: rgba(255,255,255,.85); }
@media (max-width: 600px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-num { font-size: 1.4rem; } }

/* Advantages */
.home-advantages { padding: var(--section-y) 0; background: var(--color-bg-soft); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.adv-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 28px 20px;
  text-align: center;
  transition: transform var(--motion-normal), border-color var(--motion-normal), box-shadow var(--motion-normal);
}
.adv-card:hover { transform: translateY(-4px); border-color: var(--color-border-strong); box-shadow: var(--shadow-card-hover); }
.adv-icon {
  width: 56px; height: 56px;
  background: var(--gradient-button); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem; color: #fff;
}
.adv-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.adv-card p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .adv-grid { grid-template-columns: 1fr; } }

/* Showcase Split */
.home-showcase { padding: var(--section-y) 0; background: var(--color-bg); }
.showcase-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: center; }
.showcase-split.reverse { direction: rtl; }
.showcase-split.reverse > * { direction: ltr; }
.showcase-img { width: 100%; border-radius: var(--radius-card); border: 1px solid rgba(139,92,246,.2); box-shadow: 0 8px 32px rgba(139,92,246,.1); }
@media (max-width: 768px) { .showcase-split, .showcase-split.reverse { grid-template-columns: 1fr; direction: ltr; } .showcase-split.reverse > * { direction: ltr; } }

/* Compare Table */
.home-compare { padding: var(--section-y) 0; background: var(--color-bg-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-card); overflow: hidden; }
.compare-table thead tr { background: var(--gradient-button); color: #fff; }
.compare-table thead th { padding: 14px 18px; font-weight: 600; font-size: .95rem; text-align: left; }
.compare-table tbody tr { background: var(--color-card); border-bottom: 1px solid var(--color-border); transition: background var(--motion-fast); }
.compare-table tbody tr:hover { background: #162032; }
.compare-table tbody td { padding: 12px 18px; font-size: .93rem; }
.compare-table .yes { color: #22d3ee; }
.compare-table .no { color: #f87171; }

/* Image Trio */
.home-image-row { padding: var(--section-y-sm) 0; background: var(--color-bg-soft); }
.image-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio-img { width: 100%; border-radius: var(--radius-card); border: 1px solid rgba(139,92,246,.2); box-shadow: var(--shadow-soft); object-fit: cover; height: 220px; }
@media (max-width: 600px) { .image-trio { grid-template-columns: 1fr; } .trio-img { height: 180px; } }

/* How To Steps */
.home-howto { padding: var(--section-y) 0; background: var(--color-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.step-card {
  background: var(--color-card-alt); border: 1px solid rgba(139,92,246,.2);
  border-radius: var(--radius-card); padding: 28px 20px;
  transition: box-shadow var(--motion-normal);
}
.step-card:hover { box-shadow: 0 10px 40px rgba(139,92,246,.15); }
.step-num {
  width: 44px; height: 44px;
  background: var(--gradient-button); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: .9rem; margin-bottom: 12px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps-grid { grid-template-columns: 1fr; } }

/* Game Cards */
.home-games { padding: var(--section-y) 0; background: var(--color-bg-soft); }
.game-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.game-card {
  background: var(--color-card); border: 1px solid rgba(139,92,246,.15);
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(139,92,246,.15); }
.game-thumb { width: 100%; height: 180px; object-fit: cover; display: block; }
.game-thumb-placeholder {
  height: 180px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero); font-size: 3rem; color: var(--color-primary);
}
.game-card-body { padding: 16px; }
.game-card-body h3 { font-size: .95rem; margin-bottom: 6px; }
.game-card-body p { font-size: .85rem; margin-bottom: 12px; }
@media (max-width: 768px) { .game-showcase-grid { grid-template-columns: repeat(2, 1fr); } }

/* Privacy Notice */
.home-privacy-notice { padding: var(--section-y-sm) 0; background: var(--color-bg); }
.privacy-card {
  background: var(--gradient-hero-soft);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
}
.privacy-icon { font-size: 2rem; color: var(--color-primary); margin-bottom: 12px; }
.privacy-card h2 { font-size: 1.15rem; color: var(--color-primary); }

/* Content Deep */
.home-content-deep { padding: var(--section-y) 0; background: var(--color-bg); }
.content-two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
@media (max-width: 768px) { .content-two-col { grid-template-columns: 1fr; } }
.reminder-card {
  background: var(--color-card-alt); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid rgba(139,92,246,.2); margin-top: 16px;
}
.reminder-title { color: #fff; font-weight: 600; margin-bottom: 10px; }
.reminder-title i { color: var(--color-primary); margin-right: 8px; }

/* Home Guide */
.home-guide { padding: var(--section-y) 0; background: var(--color-bg-soft); }
.home-guide h2 { margin-bottom: 16px; }
.home-guide h3 { margin-top: 24px; margin-bottom: 8px; }
.home-guide p { max-width: var(--container-narrow); }

/* ============================================================
   INNER PAGE HERO VARIANTS
   ============================================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: clamp(50px, 8vw, 80px) 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap-lg); align-items: center; }
.hero-text .hero-lead { max-width: 520px; }
@media (max-width: 768px) { .hero-split { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.feature-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 24px;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--gradient-button); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; margin: 0; }

/* ============================================================
   STATS SECTIONS (inner pages)
   ============================================================ */
.live-stats-strip, .stats-strip {
  background: var(--gradient-button); padding: 20px 0;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item .stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; }
.stat-item .stat-label { font-size: var(--fs-small); color: rgba(255,255,255,.85); }
@media (max-width: 600px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   INNER PAGE CONTENT SECTIONS
   ============================================================ */
.live-features, .live-showcase, .live-guide, .live-faq,
[class*="-features"], [class*="-guide"], [class*="-content"],
[class*="-info"], [class*="-details"] {
  padding: var(--section-y) 0;
}

.guide-content { max-width: var(--container-narrow); margin: 0 auto; }
.guide-content h2 { margin-bottom: 16px; }
.guide-content h3 { margin-top: 28px; margin-bottom: 10px; }
.guide-content p { line-height: 1.9; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: var(--container-narrow); margin: 24px auto 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden;
  background: var(--color-card);
}
.faq-question {
  width: 100%; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: #fff;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background var(--motion-fast);
}
.faq-question:hover { background: var(--color-primary-soft); }
.faq-question i { transition: transform var(--motion-normal); color: var(--color-primary); }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--motion-slow) var(--ease-out);
}
.faq-answer.open { max-height: 500px; }
.faq-answer p { padding: 0 20px 16px; font-size: .92rem; margin: 0; }

/* ============================================================
   PRE-FOOTER CTA
   ============================================================ */
.pre-footer-cta {
  padding: var(--section-y) 0;
  background: var(--color-bg);
}
.cta-card {
  background: var(--gradient-button);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
}
.cta-card h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 12px; }
.cta-card > p { color: rgba(255,255,255,.88); font-size: 1.02rem; margin-bottom: 24px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-buttons .btn-primary-cta { background: #fff; color: var(--color-secondary) !important; box-shadow: none; }
.cta-buttons .btn-primary-cta:hover { opacity: .9; }
.cta-buttons .btn-secondary-cta { border-color: #fff; color: #fff !important; }
.cta-buttons .btn-secondary-cta:hover { background: rgba(255,255,255,.15); }
.cta-trust { color: rgba(255,255,255,.7); font-size: var(--fs-small); margin-top: 16px; margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand-col { }
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo-link img { height: 40px; width: auto; }
.footer-desc { font-size: .9rem; color: var(--color-footer-text); max-width: 280px; margin-bottom: 10px; }
.footer-email { font-size: .88rem; color: var(--color-primary); }
.footer-email i { margin-right: 6px; }
.footer-col h6 {
  color: var(--color-primary); font-weight: 600;
  font-size: .82rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--color-footer-text); font-size: .88rem; transition: color var(--motion-fast); }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 40px; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: var(--color-text-muted); font-size: .82rem; margin: 0; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE-SPECIFIC BACKGROUNDS
   ============================================================ */
.page-home .home-advantages { background: var(--color-bg-soft); }
.page-home .home-howto { background: var(--color-bg); }

/* Auth pages */
.auth-hero { background: var(--gradient-hero); padding: clamp(40px,6vw,60px) 0; }
.auth-layout { padding: var(--section-y) 0; background: var(--color-bg); }
.auth-form-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 32px; max-width: 480px; margin: 0 auto;
}
.auth-form-card label { display: block; color: var(--color-text); font-size: .9rem; margin-bottom: 6px; font-weight: 500; }
.auth-form-card input {
  width: 100%; padding: 12px 16px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); color: var(--color-text);
  font-size: .95rem; margin-bottom: 16px;
  transition: border-color var(--motion-fast);
}
.auth-form-card input:focus { border-color: var(--color-primary); outline: none; }
.auth-trust-card {
  background: var(--gradient-hero-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 20px; margin-top: 24px;
}

/* Policy pages */
.policy-layout { padding: var(--section-y) 0; background: var(--color-bg); }
.policy-body { max-width: var(--container-narrow); margin: 0 auto; }
.policy-section { margin-bottom: 32px; }
.policy-section h3 { color: var(--color-primary); margin-bottom: 12px; }
.policy-note {
  background: var(--gradient-hero-soft); border-left: 4px solid var(--color-primary);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}
.policy-note p { margin: 0; font-size: .92rem; }

/* About page */
.about-story { padding: var(--section-y) 0; }
.about-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.about-value-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 24px; text-align: center;
}
@media (max-width: 600px) { .about-data-grid { grid-template-columns: 1fr; } }

/* FAQ page */
.faq-hero { background: var(--gradient-hero); padding: clamp(40px,6vw,70px) 0; text-align: center; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.faq-tab-btn {
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--color-card); border: 1px solid var(--color-border);
  color: var(--color-text); font-size: .88rem; cursor: pointer;
  transition: all var(--motion-fast);
}
.faq-tab-btn:hover, .faq-tab-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Games listing */
.games-hero { background: var(--gradient-hero); padding: clamp(40px,6vw,70px) 0; text-align: center; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0; }

/* App page */
.app-hero { background: var(--gradient-hero); padding: clamp(50px,8vw,80px) 0; }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; }
.device-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 28px;
}
@media (max-width: 600px) { .device-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SWIPER DEGRADE
   ============================================================ */
.swiper:not(.swiper-initialized) {
  display: flex; gap: 16px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 280px; scroll-snap-align: start;
}

/* AOS Degrade */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   RESPONSIVE SAFETY
   ============================================================ */
@media (max-width: 414px) {
  body { font-size: .95rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .btn-primary-cta, .btn-secondary-cta { padding: 10px 20px; font-size: .88rem; }
}
@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .cta-card { padding: 24px 16px; }
}

/* Article body */
.article-body { max-width: var(--container-narrow); margin: 0 auto; }
.article-body h2 { margin-top: 32px; }
.article-body p { line-height: 1.95; }
.article-meta { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: 20px; }
.article-cover { border-radius: var(--radius-card); margin-bottom: 28px; }
.article-related { padding: var(--section-y-sm) 0; background: var(--color-bg-soft); }
