/* ============================================================
   CV66-LOGIN.ID Design System — Emerald Trust Gaming UI
   ============================================================ */

:root {
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-primary-soft: #e0f7fa;
  --color-secondary: #06b6d4;
  --color-accent: #f59e0b;
  --color-bg: #f0f9ff;
  --color-bg-soft: #e0f2fe;
  --color-surface: #ffffff;
  --color-surface-strong: #f8fafc;
  --color-card: #ffffff;
  --color-card-alt: #f0faff;
  --color-border: #bae6fd;
  --color-border-strong: #7dd3fc;
  --color-text: #0f172a;
  --color-text-soft: #334155;
  --color-text-muted: #64748b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0c4a6e;
  --color-footer-text: #bae6fd;

  --gradient-hero: linear-gradient(135deg, #0e7490 0%, #0284c7 50%, #06b6d4 100%);
  --gradient-button: linear-gradient(135deg, #06b6d4, #0284c7);
  --gradient-cta: linear-gradient(135deg, #0e7490 0%, #0284c7 100%);
  --gradient-footer: linear-gradient(160deg, #0c4a6e 0%, #164e63 100%);

  --shadow-header: 0 2px 16px rgba(6,182,212,0.12);
  --shadow-card: 0 2px 16px rgba(6,182,212,0.08);
  --shadow-card-hover: 0 8px 32px rgba(6,182,212,0.16);
  --shadow-button: 0 4px 16px rgba(6,182,212,0.2);
  --shadow-soft: 0 1px 4px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;
  --radius-card: 16px;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(1.6rem, 3.5vw, 2.4rem);
  --fs-h2: clamp(1.3rem, 2.8vw, 1.8rem);
  --fs-h3: clamp(1.05rem, 2vw, 1.3rem);
  --fs-body: 1.05rem;
  --fs-small: 0.88rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --lh-body: 1.85;
  --lh-heading: 1.35;

  --container-max: 1200px;
  --section-y: clamp(48px, 6vw, 80px);
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --header-h: 72px;

  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- 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);
  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-dark); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-secondary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; border-radius: 4px; }

/* ---- LAYOUT ---- */
.section-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.section-header { text-align: center; margin-bottom: var(--gap-lg); }
.section-header h2 { font-size: var(--fs-h2); font-weight: 700; color: var(--color-primary-dark); line-height: var(--lh-heading); }
.section-header p { color: var(--color-text-muted); margin-top: 6px; }
.section-bar { width: 60px; height: 4px; background: var(--gradient-button); border-radius: 2px; margin: 12px auto 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--motion-normal);
}
.header-inner {
  width: 100%; max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex; align-items: center;
  gap: clamp(10px, 1vw, 18px);
}
.brand-wrap { flex: 0 0 auto; margin-right: clamp(4px, .8vw, 14px); }
.site-logo {
  display: block; width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}
.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); line-height: 1;
  white-space: nowrap; color: #e0f7fa;
  border-radius: 6px; font-weight: 500;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.primary-nav a:hover, .primary-nav a.active {
  background: rgba(255,255,255,0.15); color: #fff;
}
.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;
}
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: var(--radius-pill); transition: all var(--motion-fast); text-decoration: none; }
.btn-login {
  background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff;
  padding: 8px clamp(12px, 1.2vw, 18px); font-size: clamp(12px, .8vw, 14px);
  min-height: 40px;
}
.btn-login:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-register {
  background: #fff; color: var(--color-primary-dark);
  padding: 8px clamp(14px, 1.4vw, 22px); font-size: clamp(12px, .8vw, 14px);
  font-weight: 700; min-height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); color: var(--color-primary-dark); }
.nav-toggle { display: none; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--motion-normal); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; left: 12px; right: 12px; top: 80px; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: 0 12px 48px rgba(0,0,0,0.18); max-height: calc(100vh - 100px); overflow-y: auto; z-index: 999; padding: 16px; }
.mobile-menu.is-open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { padding: 14px 16px; border-radius: var(--radius-sm); color: var(--color-text); font-weight: 500; font-size: 1rem; transition: background var(--motion-fast); }
.mobile-nav a:hover { background: var(--color-bg-soft); color: var(--color-primary-dark); }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .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);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
  .header-actions { margin-left: 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 { flex-basis: 40px; }
}
@media (max-width: 375px) {
  .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-bar { background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); padding: 12px 0; }
.breadcrumb-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.breadcrumb-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-small); }
.breadcrumb-item { color: var(--color-text-muted); }
.breadcrumb-item a { color: var(--color-primary); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: var(--color-text-muted); }
.breadcrumb-item.active { color: var(--color-text-soft); }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.home-hero { background: var(--gradient-hero); color: #fff; padding: clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 60px); position: relative; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.home-hero-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: center; }
.home-hero-content h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.35; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.hero-lead { font-size: 1.08rem; opacity: 0.92; margin-top: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.btn-hero-primary { background: #fff; color: var(--color-primary-dark); font-weight: 700; border-radius: var(--radius-pill); padding: 14px 32px; font-size: 1rem; box-shadow: var(--shadow-button); transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); color: var(--color-primary-dark); }
.btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; border-radius: var(--radius-pill); padding: 12px 28px; font-size: 1rem; font-weight: 600; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.hero-trust { display: flex; gap: 18px; margin-top: 20px; font-size: var(--fs-small); opacity: 0.85; flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: 5px; }
.hero-img { border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .home-hero-visual { order: -1; max-width: 400px; margin: 0 auto; }
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.home-features, .home-steps, .home-compare, .home-plans, .home-responsible, .home-content-main, .home-image-break, .home-cta { padding: var(--section-y) 0; }
.home-features { background: var(--color-surface); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.feature-card { background: var(--color-card); border-radius: var(--radius-card); padding: 28px 22px; border: 1px solid var(--color-border); box-shadow: var(--shadow-card); transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--color-primary-soft), var(--color-bg-soft)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--color-primary-dark); margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 8px; }
.feature-card p { color: var(--color-text-soft); font-size: 0.93rem; line-height: 1.7; }
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STEP CARDS
   ============================================================ */
.home-steps { background: var(--color-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.step-card { background: var(--color-card); border-radius: var(--radius-md); padding: 24px; border-left: 5px solid var(--color-primary); box-shadow: var(--shadow-card); }
.step-number { width: 40px; height: 40px; background: var(--gradient-button); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 8px; }
.step-card p { color: var(--color-text-soft); font-size: 0.93rem; }
.step-card a { color: var(--color-primary); font-weight: 600; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTENT TWO-COL
   ============================================================ */
.home-content-main { background: var(--color-surface); }
.content-two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 36px; align-items: start; }
.content-primary h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin-bottom: 8px; }
.content-primary h3 { font-size: var(--fs-h3); color: var(--color-primary-dark); margin: 28px 0 10px; font-weight: 700; }
.content-primary p { margin-bottom: 16px; line-height: var(--lh-body); color: var(--color-text-soft); }
.content-inline-img { border-radius: var(--radius-md); margin: 20px 0; box-shadow: var(--shadow-card); }
.sidebar-card { background: var(--color-card-alt); border-radius: var(--radius-card); padding: 22px; border: 1px solid var(--color-border); margin-bottom: 20px; }
.sidebar-card h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 10px; }
.sidebar-card p { font-size: 0.93rem; color: var(--color-text-soft); }
.sidebar-card ul { margin-top: 8px; }
.sidebar-card li { padding: 4px 0; font-size: 0.92rem; color: var(--color-text-soft); }
.sidebar-card li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }
.sidebar-card a { color: var(--color-primary); font-weight: 600; font-size: 0.93rem; }
.sidebar-security { border-left: 4px solid var(--color-primary); }
.game-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.game-list li:last-child { border-bottom: none; }
.game-list a { color: var(--color-primary-dark); font-weight: 500; }
.sidebar-img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
@media (max-width: 900px) { .content-two-col { grid-template-columns: 1fr; } }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.home-compare { background: var(--color-bg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.compare-table th { background: var(--gradient-hero); color: #fff; padding: 14px 18px; text-align: center; font-weight: 600; }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 12px 18px; text-align: center; background: var(--color-surface); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table .text-success { color: var(--color-primary); font-size: 1.2rem; }
.compare-table .text-muted { color: #94a3b8; font-size: 1.2rem; }

/* ============================================================
   PLAN CARDS
   ============================================================ */
.home-plans { background: var(--color-surface); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.plan-card { background: var(--color-card); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; border: 2px solid var(--color-border); box-shadow: var(--shadow-card); transition: transform var(--motion-normal), border-color var(--motion-normal); }
.plan-card:hover { transform: translateY(-4px); border-color: var(--color-primary); }
.plan-featured { border-color: var(--color-primary); background: linear-gradient(160deg, var(--color-primary-soft), var(--color-surface)); transform: scale(1.03); }
.plan-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge { background: var(--gradient-button); color: #fff; border-radius: var(--radius-pill); padding: 4px 16px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 12px; }
.plan-badge-vip { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.plan-price { font-size: 2rem; font-weight: 700; color: var(--color-primary-dark); }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--color-text-muted); }
.plan-desc { font-size: 0.9rem; color: var(--color-text-muted); margin: 8px 0 16px; }
.plan-card ul { text-align: left; margin-bottom: 20px; }
.plan-card li { padding: 6px 0; color: var(--color-text-soft); font-size: 0.93rem; }
.plan-card li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }
.btn-plan { display: block; width: 100%; padding: 12px; border-radius: var(--radius-pill); background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary-dark); font-weight: 600; text-align: center; transition: all var(--motion-fast); }
.btn-plan:hover { background: var(--color-primary); color: #fff; }
.btn-plan-primary { display: block; width: 100%; padding: 12px; border-radius: var(--radius-pill); background: var(--gradient-button); color: #fff; font-weight: 700; text-align: center; box-shadow: var(--shadow-button); transition: all var(--motion-fast); }
.btn-plan-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } .plan-featured { transform: scale(1); } .plan-featured:hover { transform: translateY(-4px); } }

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.home-responsible { background: var(--color-bg); }
.responsible-card { background: linear-gradient(90deg, var(--color-primary-soft), var(--color-surface)); border-left: 5px solid var(--color-accent); border-radius: var(--radius-md); padding: 28px; display: flex; gap: 20px; align-items: flex-start; max-width: 900px; margin: 0 auto; }
.responsible-icon { font-size: 2rem; color: var(--color-accent); flex-shrink: 0; }
.responsible-content h2 { font-size: var(--fs-h3); color: var(--color-primary-dark); margin-bottom: 8px; }
.responsible-content p { color: var(--color-text-soft); font-size: 0.95rem; margin-bottom: 8px; }
.responsible-content a { color: var(--color-primary); font-weight: 600; font-size: 0.93rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.home-cta { background: var(--gradient-cta); }
.cta-block { text-align: center; color: #fff; padding: 20px 0; }
.cta-block h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 12px; }
.cta-block p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { background: #fff; color: var(--color-primary-dark); font-weight: 700; border-radius: var(--radius-pill); padding: 14px 36px; font-size: 1rem; box-shadow: var(--shadow-button); }
.btn-cta-primary:hover { transform: translateY(-2px); color: var(--color-primary-dark); }
.btn-cta-outline { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; border-radius: var(--radius-pill); padding: 12px 32px; font-size: 1rem; font-weight: 600; }
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* IMAGE BREAK */
.home-image-break { background: var(--color-bg); padding: 24px 0; }
.content-img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); max-width: 100%; }

/* ============================================================
   GAME PAGES
   ============================================================ */
.game-intro-section { background: var(--gradient-hero); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.game-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: center; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.game-intro-content h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.35; }
.game-lead { font-size: 1.05rem; opacity: 0.9; margin-top: 14px; line-height: 1.7; }
.game-intro-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-game-play { background: #fff; color: var(--color-primary-dark); font-weight: 700; border-radius: var(--radius-pill); padding: 12px 28px; box-shadow: var(--shadow-button); }
.btn-game-play:hover { transform: translateY(-2px); color: var(--color-primary-dark); }
.btn-game-login { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; border-radius: var(--radius-pill); padding: 10px 24px; font-weight: 600; }
.btn-game-login:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.game-meta-strip { display: flex; gap: 16px; margin-top: 16px; font-size: var(--fs-small); opacity: 0.8; flex-wrap: wrap; }
.game-meta-strip span { display: flex; align-items: center; gap: 4px; }
.game-hero-img { border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
@media (max-width: 900px) { .game-intro-grid { grid-template-columns: 1fr; text-align: center; } .game-intro-actions { justify-content: center; } .game-meta-strip { justify-content: center; } .game-intro-visual { order: -1; max-width: 400px; margin: 0 auto; } }

.game-detail-section, .game-howto-section, .game-tips-section, .game-safety-section, .game-related-section, .game-faq-section, .game-cta-section { padding: var(--section-y) 0; }
.game-detail-section { background: var(--color-surface); }
.game-howto-section { background: var(--color-bg); }
.game-tips-section { background: var(--color-surface); }
.game-safety-section { background: var(--color-bg); }
.game-related-section { background: var(--color-surface); }
.game-faq-section { background: var(--color-bg); }
.game-cta-section { background: var(--gradient-cta); }

.game-detail-section h2, .game-howto-section h2, .game-tips-section h2, .game-safety-section h2, .game-related-section h2, .game-faq-section h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin-bottom: 8px; }
.game-detail-section h3, .game-tips-section h3 { font-size: var(--fs-h3); color: var(--color-primary-dark); margin: 24px 0 10px; font-weight: 700; }
.game-detail-section p, .game-howto-section p, .game-tips-section p, .game-safety-section p, .game-related-section p { margin-bottom: 14px; color: var(--color-text-soft); line-height: var(--lh-body); }

/* HOWTO STEPS */
.howto-steps { display: flex; flex-direction: column; gap: 20px; }
.howto-step { display: flex; gap: 18px; align-items: flex-start; background: var(--color-card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card); }
.howto-step-num { flex-shrink: 0; width: 44px; height: 44px; background: var(--gradient-button); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.howto-step-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 6px; }
.howto-step-content p { font-size: 0.93rem; color: var(--color-text-soft); margin: 0; }
.howto-step-content a { color: var(--color-primary); font-weight: 600; }

/* SAFETY */
.safety-tips { display: flex; flex-direction: column; gap: 18px; }
.safety-item { display: flex; gap: 16px; align-items: flex-start; background: var(--color-card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card); }
.safety-item > i { font-size: 1.8rem; color: var(--color-primary); flex-shrink: 0; }
.safety-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 6px; }
.safety-item p { font-size: 0.93rem; color: var(--color-text-soft); margin: 0; }

/* RELATED GAMES */
.related-games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); margin: 20px 0; }
.related-game-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; background: var(--color-card); border-radius: var(--radius-card); border: 1px solid var(--color-border); text-align: center; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.related-game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.related-game-name { font-weight: 700; color: var(--color-primary-dark); }
.related-game-cat { font-size: var(--fs-small); color: var(--color-text-muted); }
@media (max-width: 768px) { .related-games-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item { background: var(--color-card); border-radius: var(--radius-md); border: 1px solid var(--color-border); overflow: hidden; }
.faq-trigger { width: 100%; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: var(--color-primary-dark); text-align: left; background: none; transition: background var(--motion-fast); }
.faq-trigger:hover { background: var(--color-bg-soft); }
.faq-trigger i { transition: transform var(--motion-normal); color: var(--color-primary); }
.faq-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 22px 18px; }
.faq-answer.is-open { display: block; }
.faq-answer p { color: var(--color-text-soft); font-size: 0.95rem; line-height: 1.75; margin: 0; }

/* ============================================================
   AUTH PAGES (Login/Register)
   ============================================================ */
.auth-intro { background: var(--gradient-hero); color: #fff; padding: clamp(32px, 5vw, 56px) 0; }
.auth-intro h1 { font-size: var(--fs-h1); font-weight: 700; max-width: 700px; }
.auth-intro p { opacity: 0.9; margin-top: 10px; max-width: 600px; }
.auth-layout { padding: var(--section-y) 0; background: var(--color-surface); }
.auth-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.auth-form-card { background: var(--color-card); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
.auth-form-card h2 { font-size: var(--fs-h3); color: var(--color-primary-dark); margin-bottom: 6px; }
.auth-form-card .form-label { font-weight: 600; font-size: 0.9rem; color: var(--color-text-soft); margin-bottom: 4px; display: block; }
.auth-form-card .form-input { width: 100%; padding: 12px 14px; border: 2px solid var(--color-border); border-radius: var(--radius-sm); font-size: 1rem; transition: border-color var(--motion-fast); background: var(--color-surface); }
.auth-form-card .form-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(6,182,212,0.15); }
.auth-form-card .form-group { margin-bottom: 18px; }
.btn-auth-submit { display: block; width: 100%; padding: 14px; border-radius: var(--radius-pill); background: var(--gradient-button); color: #fff; font-weight: 700; font-size: 1rem; text-align: center; box-shadow: var(--shadow-button); transition: all var(--motion-fast); border: none; cursor: pointer; }
.btn-auth-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-trust-strip { display: flex; gap: 12px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.auth-trust-badge { font-size: var(--fs-small); color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; background: var(--color-bg-soft); padding: 6px 12px; border-radius: var(--radius-pill); }
.auth-info-section { padding: var(--section-y) 0; background: var(--color-bg); }
.auth-info-section h2, .auth-info-section h3 { color: var(--color-primary-dark); }
.auth-info-section p { color: var(--color-text-soft); margin-bottom: 14px; }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } }

/* ============================================================
   POLICY / ABOUT / FAQ PAGES
   ============================================================ */
.policy-intro { background: var(--gradient-hero); color: #fff; padding: clamp(32px, 5vw, 48px) 0; }
.policy-intro h1 { font-size: var(--fs-h1); font-weight: 700; }
.policy-intro p { opacity: 0.9; margin-top: 8px; }
.policy-body { padding: var(--section-y) 0; background: var(--color-surface); }
.policy-content { max-width: 860px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.policy-content h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin: 32px 0 12px; }
.policy-content h3 { font-size: var(--fs-h3); color: var(--color-primary-dark); margin: 24px 0 10px; }
.policy-content p { margin-bottom: 14px; color: var(--color-text-soft); }
.policy-content ul { margin: 10px 0 16px 20px; }
.policy-content li { padding: 4px 0; color: var(--color-text-soft); list-style: disc; }
.policy-note { background: var(--color-primary-soft); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; }
.policy-note p { margin: 0; font-size: 0.93rem; }
.policy-updated { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 20px; }

/* About page extras */
.about-story { background: var(--color-bg); padding: var(--section-y) 0; }
.about-values { background: var(--color-surface); padding: var(--section-y) 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.value-card { background: var(--color-card-alt); border-radius: var(--radius-card); padding: 24px; text-align: center; border: 1px solid var(--color-border); }
.value-card i { font-size: 2rem; color: var(--color-primary); margin-bottom: 12px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; color: var(--color-text-soft); }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; background: var(--color-bg); }
.error-page h1 { font-size: 4rem; color: var(--color-primary); font-weight: 800; }
.error-page p { font-size: 1.1rem; color: var(--color-text-muted); margin: 12px 0 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--gradient-footer); color: var(--color-footer-text); padding: clamp(36px, 5vw, 56px) 0 0; }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--gap-lg); margin-bottom: 32px; }
.footer-brand-link img { margin-bottom: 12px; }
.footer-desc { font-size: 0.9rem; color: var(--color-footer-text); line-height: 1.7; margin-bottom: 8px; }
.footer-email { font-size: var(--fs-small); }
.footer-link-col h4 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.footer-link-col ul { display: flex; flex-direction: column; gap: 6px; }
.footer-link-col a { color: var(--color-footer-text); font-size: 0.9rem; transition: color var(--motion-fast); }
.footer-link-col a:hover { color: #fff; }
.footer-safe-text { font-size: 0.88rem; color: var(--color-footer-text); line-height: 1.6; margin-bottom: 12px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { font-size: 0.78rem; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-pill); color: var(--color-footer-text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: var(--fs-small); color: rgba(186,230,253,0.7); margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   UTILITIES & DEGRADE
   ============================================================ */
[data-aos] { opacity: 1 !important; transform: none !important; }
[data-aos].aos-animate { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Swiper fallback */
.swiper:not(.swiper-initialized) { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 280px; scroll-snap-align: start; }
