/* ============================================================
   tk999bet.one — Emerald Trust Gaming UI Design System
   Original Design System: Not Bootstrap default, not template
   ============================================================ */

:root {
  /* Color Tokens */
  --color-primary: #0d9e6d;
  --color-primary-dark: #077a53;
  --color-primary-soft: rgba(13,158,109,0.12);
  --color-secondary: #1a1a2e;
  --color-accent: #f0c040;
  --color-accent-dark: #d4a017;
  --color-bg: #0f0f1a;
  --color-bg-soft: #161625;
  --color-surface: #1c1c30;
  --color-surface-strong: #242440;
  --color-card: #1e1e34;
  --color-card-alt: #22223a;
  --color-border: rgba(240,192,64,0.1);
  --color-border-strong: rgba(240,192,64,0.25);
  --color-text: #f0ede6;
  --color-text-soft: #b8b5ad;
  --color-text-muted: #7a7872;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0a0a16;
  --color-footer-text: #9a978f;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(160deg, #0f0f1a 0%, #1a1a2e 40%, #0d2818 100%);
  --gradient-hero-soft: linear-gradient(180deg, rgba(13,158,109,0.06) 0%, transparent 60%);
  --gradient-button: linear-gradient(135deg, #0d9e6d, #077a53);
  --gradient-button-hover: linear-gradient(135deg, #10b87d, #0d9e6d);
  --gradient-card-border: linear-gradient(135deg, rgba(240,192,64,0.15), rgba(13,158,109,0.15));
  --gradient-card-bg: linear-gradient(170deg, #1e1e34, #1a1a2e);
  --gradient-cta: linear-gradient(135deg, rgba(13,158,109,0.08), rgba(240,192,64,0.06));
  --gradient-footer: linear-gradient(180deg, #0a0a16, #080812);
  --gradient-mobile-menu: linear-gradient(180deg, #161625 0%, #1c1c30 100%);
  --gradient-form-panel: linear-gradient(160deg, #1e1e34, #242440);

  /* Shadow Tokens */
  --shadow-header: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-card-hover: 0 8px 32px rgba(13,158,109,0.15);
  --shadow-button: 0 4px 14px rgba(13,158,109,0.25);
  --shadow-cta: 0 6px 24px rgba(0,0,0,0.3);
  --shadow-menu: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-form: 0 8px 28px rgba(0,0,0,0.3);
  --shadow-footer: 0 -2px 20px rgba(0,0,0,0.3);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-mobile: 0 4px 12px rgba(0,0,0,0.2);

  /* Radius Tokens */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-card: 16px;
  --radius-image: 12px;
  --radius-form: 10px;
  --radius-section: 0;

  /* Typography Tokens */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-bn: "Noto Sans Bengali", system-ui, Arial, sans-serif;
  --fs-h1: clamp(28px, 4vw, 48px);
  --fs-h2: clamp(22px, 3vw, 36px);
  --fs-h3: clamp(18px, 2.2vw, 26px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-nav: clamp(13px, 0.84vw, 15px);
  --fs-button: 15px;
  --lh-heading: 1.3;
  --lh-body: 1.8;
  --lh-readable: 1.95;

  /* Spacing Tokens */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --section-y-lg: clamp(64px, 8vw, 100px);
  --gap-xs: 6px;
  --gap-sm: 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, 72px);

  /* Motion Tokens */
  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --motion-slow: 0.4s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  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; border-radius: var(--radius-image); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--motion-fast) var(--ease-out); }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: var(--lh-heading); color: var(--color-text); margin: 0 0 16px; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.2em; }
ul li, ol li { margin-bottom: 8px; }

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Container
   ============================================================ */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

/* ============================================================
   HEADER — Stable, Single-line, No "More" button
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-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, 0.8vw, 14px);
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, 0.72vw, 14px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav .nav-link {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, 0.65vw, 12px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
  text-decoration: none;
}

.primary-nav .nav-link:hover { color: var(--color-accent); }
.primary-nav .nav-link.active { color: var(--color-accent); background: rgba(240,192,64,0.08); }

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.6vw, 10px);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-base);
  font-size: var(--fs-button);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--motion-normal) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.btn-login {
  min-height: 40px;
  padding: 0 clamp(14px, 1.2vw, 20px);
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-size: clamp(13px, 0.85vw, 15px);
}
.btn-login:hover { background: var(--color-accent); color: var(--color-bg); }

.btn-register {
  min-height: 40px;
  padding: 0 clamp(14px, 1.2vw, 20px);
  background: var(--gradient-button);
  color: #fff;
  font-size: clamp(13px, 0.85vw, 15px);
  box-shadow: var(--shadow-button);
}
.btn-register:hover { background: var(--gradient-button-hover); transform: translateY(-1px); color: #fff; }

/* Nav Toggle - Hidden on desktop */
.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-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: 2px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--motion-normal);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--mobile-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mobile-menu);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav .nav-link {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--motion-fast);
  text-decoration: none;
}
.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active { background: rgba(240,192,64,0.08); color: var(--color-accent); }

/* ============================================================
   HEADER - Mobile (max-width: 1180px)
   ============================================================ */
@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;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(5px, 1.6vw, 8px);
    white-space: nowrap;
  }
  .header-actions .btn {
    min-height: 40px;
    padding-inline: clamp(10px, 2.6vw, 14px);
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
  }
}

@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 38px; padding-inline: 9px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ============================================================
   HERO Variants
   ============================================================ */
.home-hero {
  background: var(--gradient-hero);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13,158,109,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.home-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-lg);
  align-items: center;
}
.home-hero .hero-badge {
  display: inline-block;
  background: rgba(13,158,109,0.15);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.home-hero h1 { margin-bottom: 20px; }
.home-hero h1 .accent { color: var(--color-accent); }
.home-hero .hero-lead { color: var(--color-text-soft); font-size: clamp(16px, 1.2vw, 19px); margin-bottom: 28px; line-height: var(--lh-readable); }
.home-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.home-hero .hero-visual { text-align: center; }
.home-hero .hero-visual img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); max-width: 100%; }

@media (max-width: 900px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .home-hero .hero-actions { justify-content: center; }
}

/* Inner Hero (breadcrumb + title) */
.inner-hero {
  background: var(--gradient-hero);
  padding: clamp(32px, 5vw, 56px) 0;
}
.inner-hero .breadcrumb-nav { margin-bottom: 16px; }
.inner-hero .breadcrumb-nav a { color: var(--color-text-muted); font-size: 14px; }
.inner-hero .breadcrumb-nav a:hover { color: var(--color-accent); }
.inner-hero .breadcrumb-nav .separator { color: var(--color-text-muted); margin: 0 8px; }
.inner-hero .breadcrumb-nav .current { color: var(--color-text-soft); font-size: 14px; }
.inner-hero h1 { margin-bottom: 16px; }
.inner-hero .hero-lead { color: var(--color-text-soft); font-size: clamp(15px, 1.1vw, 18px); max-width: 760px; line-height: var(--lh-readable); }

/* Game Hero (split: text + image) */
.game-hero {
  background: var(--gradient-hero);
  padding: clamp(36px, 5vw, 64px) 0;
}
.game-hero .hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap-lg);
  align-items: center;
}
.game-hero .hero-visual img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
@media (max-width: 900px) { .game-hero .hero-split { grid-template-columns: 1fr; } }

/* Auth Hero (form-focused) */
.auth-hero {
  background: var(--gradient-hero);
  padding: clamp(32px, 5vw, 56px) 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } }

/* Policy Hero (minimal) */
.policy-hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  padding: clamp(28px, 4vw, 48px) 0;
}

/* FAQ Hero */
.faq-hero {
  background: var(--gradient-hero);
  padding: clamp(36px, 5vw, 56px) 0;
  text-align: center;
}

/* About Hero */
.about-hero {
  background: var(--gradient-hero);
  padding: clamp(36px, 5vw, 64px) 0;
}

/* ============================================================
   SECTIONS & Content
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-surface { background: var(--color-surface); }
.section-cta-band {
  background: var(--gradient-cta);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--section-y-sm) var(--card-padding);
  text-align: center;
  margin: var(--gap-lg) 0;
}

.accent-text { color: var(--color-accent); }
.primary-text { color: var(--color-primary); }
.divider {
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 12px 0 20px;
}
.divider-center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.section-title { margin-bottom: 12px; }
.section-desc { color: var(--color-text-soft); max-width: 680px; margin-bottom: 32px; }
.section-desc-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS — Multiple variants
   ============================================================ */
.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: transform var(--motion-normal) var(--ease-out), border-color var(--motion-normal), box-shadow var(--motion-normal);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--color-border-strong); box-shadow: var(--shadow-card-hover); }
.feature-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--color-primary);
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--color-text-soft); font-size: 14px; margin: 0; line-height: 1.7; }

/* Trust Card */
.trust-card {
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
}
.trust-card h4 { font-size: 16px; color: var(--color-accent); margin-bottom: 8px; }
.trust-card p { color: var(--color-text-soft); font-size: 14px; margin: 0; }

/* Game Card */
.game-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.game-card .card-thumb { aspect-ratio: 16/10; overflow: hidden; }
.game-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.game-card .card-body { padding: 16px 20px; }
.game-card h3 { font-size: 17px; margin-bottom: 8px; }
.game-card p { color: var(--color-text-soft); font-size: 13px; margin: 0 0 12px; }
.game-card .card-link { color: var(--color-primary); font-weight: 600; font-size: 14px; }

/* Step Card */
.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  position: relative;
  border: 1px solid var(--color-border);
}
.step-card .step-num {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--color-primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step-card h3 { font-size: 17px; margin-top: 8px; margin-bottom: 10px; }
.step-card p { color: var(--color-text-soft); font-size: 14px; margin: 0; }

/* VIP/Pricing Card */
.vip-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  text-align: center;
  transition: transform var(--motion-normal) var(--ease-out), border-color var(--motion-normal);
}
.vip-card:hover { transform: translateY(-6px); border-color: var(--color-accent); }
.vip-card.featured { border: 2px solid var(--color-accent); box-shadow: 0 0 40px rgba(240,192,64,0.08); }
.vip-card .vip-tier { font-size: 13px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-soft); padding: 4px 12px; border-radius: var(--radius-pill); }
.vip-card .vip-price { font-size: clamp(32px, 4vw, 42px); font-weight: 800; color: var(--color-accent); margin: 16px 0; }
.vip-card .vip-price span { font-size: 14px; color: var(--color-text-muted); }
.vip-card ul { list-style: none; padding: 0; text-align: left; margin: 16px 0 24px; }
.vip-card ul li { padding: 8px 0; color: var(--color-text-soft); font-size: 14px; border-bottom: 1px solid var(--color-border); }
.vip-card ul li:last-child { border: none; }
.vip-card ul li i { color: var(--color-primary); margin-right: 8px; }

/* Info Panel */
.info-panel {
  background: linear-gradient(135deg, rgba(13,158,109,0.08), rgba(240,192,64,0.05));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
}
.info-panel h3 { font-size: 18px; color: var(--color-text); margin-bottom: 10px; }
.info-panel p { color: var(--color-text-soft); font-size: 15px; margin-bottom: 8px; }
.info-panel p:last-child { margin-bottom: 0; }

/* Stat Box */
.stat-box {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.stat-box .stat-number { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--color-accent); }
.stat-box .stat-label { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th { background: var(--color-primary); color: #fff; padding: 14px 16px; font-weight: 600; font-size: 15px; text-align: center; }
.compare-table th:first-child { text-align: left; border-radius: var(--radius-md) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.compare-table td { padding: 14px 16px; color: var(--color-text-soft); font-size: 14px; border-bottom: 1px solid var(--color-border); text-align: center; }
.compare-table td:first-child { text-align: left; color: var(--color-text); }
.compare-table tbody tr { background: var(--color-card); }
.compare-table tbody tr:nth-child(even) { background: var(--color-card-alt); }
.compare-table .check { color: var(--color-primary); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 52px;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: serif;
  line-height: 1;
}
.testimonial-card .stars { color: var(--color-accent); margin-bottom: 12px; padding-top: 12px; }
.testimonial-card .review-text { color: var(--color-text-soft); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.testimonial-card .reviewer { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.testimonial-card .reviewer-name { font-weight: 600; font-size: 14px; }
.testimonial-card .reviewer-loc { font-size: 12px; color: var(--color-text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-group { margin-bottom: 24px; }
.faq-group h3 { font-size: 20px; color: var(--color-accent); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; background: var(--color-card); }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-base);
  transition: background var(--motion-fast);
}
.faq-item button:hover { background: rgba(240,192,64,0.04); }
.faq-item button .faq-icon { font-size: 18px; color: var(--color-primary); transition: transform var(--motion-normal); flex-shrink: 0; margin-left: 12px; }
.faq-item[data-open="true"] button .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 16px; color: var(--color-text-soft); font-size: 14px; line-height: 1.8; }
.faq-item[data-open="true"] .faq-answer { display: block; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--gradient-form-panel);
  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; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-form);
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-base);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,158,109,0.15);
}
.form-group input::placeholder { color: var(--color-text-muted); }
.form-submit {
  width: 100%;
  min-height: 48px;
  background: var(--gradient-button);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--motion-normal);
  font-family: var(--font-base);
}
.form-submit:hover { background: var(--gradient-button-hover); transform: translateY(-1px); box-shadow: var(--shadow-button); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   CTA Variants
   ============================================================ */
.btn-primary {
  min-height: 48px;
  padding: 0 28px;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { background: var(--gradient-button-hover); transform: translateY(-2px); color: #fff; }

.btn-outline {
  min-height: 48px;
  padding: 0 28px;
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 600;
  border-radius: var(--radius-pill);
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-bg); }

.btn-sm { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 36px; font-size: 17px; }

/* ============================================================
   CONTENT / PROSE
   ============================================================ */
.prose { max-width: var(--container-narrow); }
.prose p { font-size: 16px; line-height: var(--lh-readable); color: var(--color-text-soft); margin-bottom: 18px; }
.prose h2 { font-size: clamp(22px, 2.5vw, 32px); margin-top: 40px; margin-bottom: 16px; color: var(--color-accent); }
.prose h3 { font-size: clamp(18px, 2vw, 24px); margin-top: 28px; margin-bottom: 12px; }
.prose ul, .prose ol { margin-bottom: 18px; }
.prose ul li, .prose ol li { color: var(--color-text-soft); font-size: 15px; line-height: 1.8; }
.prose ul li::marker { color: var(--color-primary); }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-accent); }

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}
.content-split-reverse { direction: rtl; }
.content-split-reverse > * { direction: ltr; }
@media (max-width: 900px) { .content-split, .content-split-reverse { grid-template-columns: 1fr; direction: ltr; } }

.content-img { border-radius: var(--radius-lg); border: 1px solid var(--color-border); }

/* Breadcrumb */
.breadcrumb-nav { font-size: 14px; margin-bottom: 16px; }
.breadcrumb-nav a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--color-accent); }
.breadcrumb-nav .separator { margin: 0 8px; color: var(--color-text-muted); }
.breadcrumb-nav .current { color: var(--color-text-soft); }

/* Article Layout */
.article-shell { max-width: var(--container-narrow); margin: 0 auto; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--color-text-muted); font-size: 13px; margin-bottom: 24px; flex-wrap: wrap; }
.article-cover { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article-body { line-height: var(--lh-readable); }
.article-body h2 { color: var(--color-accent); margin-top: 36px; }
.article-body p { color: var(--color-text-soft); margin-bottom: 16px; }

/* Policy Layout */
.policy-layout { max-width: var(--container-narrow); margin: 0 auto; }
.policy-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.policy-toc h3 { font-size: 16px; margin-bottom: 12px; }
.policy-toc ul { list-style: none; padding: 0; }
.policy-toc ul li { margin-bottom: 8px; }
.policy-toc ul li a { color: var(--color-primary); font-size: 14px; }
.policy-note {
  background: rgba(240,192,64,0.06);
  border: 1px solid rgba(240,192,64,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--color-text-soft);
}
.policy-updated {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.rg-section {
  background: linear-gradient(135deg, var(--color-bg-soft), rgba(13,158,109,0.04));
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--color-border);
  padding: var(--footer-padding) 0 32px;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .footer-desc { color: var(--color-footer-text); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-brand .footer-email { color: var(--color-footer-text); font-size: 14px; }
.footer-brand .footer-email i { color: var(--color-primary); margin-right: 8px; }
.footer-links-group h4 { color: var(--color-accent); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-links-group ul { list-style: none; padding: 0; margin: 0; }
.footer-links-group ul li { margin-bottom: 10px; }
.footer-links-group ul li a { color: var(--color-footer-text); font-size: 14px; transition: color var(--motion-fast); text-decoration: none; }
.footer-links-group ul li a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}
.footer-bottom p { margin-bottom: 6px; }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mt-lg { margin-top: var(--gap-lg); }

/* ============================================================
   AOS Degrade: if AOS not loaded, content must be visible
   ============================================================ */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-init [data-aos] { opacity: 0; }
.aos-init [data-aos].aos-animate { opacity: 1; }

/* ============================================================
   404 Page
   ============================================================ */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.page-404 h1 { font-size: clamp(48px, 10vw, 96px); color: var(--color-accent); margin-bottom: 16px; }
.page-404 p { color: var(--color-text-soft); font-size: 18px; margin-bottom: 24px; }

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 900;
  box-shadow: var(--shadow-soft);
  transition: opacity var(--motion-normal);
}
.back-to-top.visible { display: flex; }

/* ============================================================
   Responsive Final Checks
   ============================================================ */
@media (max-width: 414px) {
  .section { padding: clamp(32px, 8vw, 48px) 0; }
  h1 { font-size: clamp(24px, 6vw, 32px); }
  h2 { font-size: clamp(20px, 5vw, 26px); }
  .btn-primary, .btn-outline { min-height: 44px; padding: 0 20px; font-size: 14px; }
}

@media (max-width: 375px) {
  body { font-size: 15px; }
  .container { padding: 0 12px; }
}
