/* ============================================================
   09 bet - Emerald Trust Gaming UI
   Design System: Original, Bangladesh-focused, Premium
   ============================================================ */

:root {
  --color-primary: #0d6efd;
  --color-primary-dark: #0a58ca;
  --color-primary-soft: rgba(13,110,253,.08);
  --color-secondary: #198754;
  --color-accent: #ffc107;
  --color-bg: #f0f4f8;
  --color-bg-soft: #e8eef4;
  --color-surface: #ffffff;
  --color-surface-strong: #f8fafc;
  --color-card: #ffffff;
  --color-card-alt: #f1f5f9;
  --color-border: #dee2e6;
  --color-border-strong: #adb5bd;
  --color-text: #1e293b;
  --color-text-soft: #475569;
  --color-text-muted: #94a3b8;
  --color-success: #198754;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-footer-bg: #0f172a;
  --color-footer-text: #cbd5e1;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #059669 100%);
  --gradient-hero-soft: linear-gradient(135deg, #1e293b 0%, #1e40af 100%);
  --gradient-button: linear-gradient(135deg, #059669, #10b981);
  --gradient-button-hover: linear-gradient(135deg, #047857, #059669);
  --gradient-cta: linear-gradient(135deg, #0f172a, #1e40af, #059669);
  --gradient-footer: linear-gradient(180deg, #0f172a 0%, #1a1a2e 100%);
  --shadow-header: 0 2px 16px rgba(0,0,0,.1);
  --shadow-card: 0 4px 24px rgba(0,0,0,.06);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,.12);
  --shadow-button: 0 4px 14px rgba(5,150,105,.25);
  --shadow-soft: 0 2px 8px rgba(0,0,0,.04);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-card: 16px;
  --radius-image: 12px;
  --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.6rem);
  --fs-h2: clamp(1.5rem, 3vw, 2rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 0.95rem;
  --lh-heading: 1.3;
  --lh-body: 1.85;
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --card-padding: clamp(20px, 3vw, 32px);
  --motion-fast: 150ms;
  --motion-normal: 250ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-primary-dark); }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Container */
.container-main { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, #0f172a, #1e3a5f);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.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);
  text-decoration: none;
}
.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: rgba(255,255,255,.85);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast), color var(--motion-fast);
}
.primary-nav a:hover,
.primary-nav a.active {
  background: rgba(5,150,105,.18);
  color: #10b981;
}
.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;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-button);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--motion-normal) var(--ease-out);
  white-space: nowrap;
  min-height: 42px;
  line-height: 1;
}
.btn-login {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-login:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}
.btn-register {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-register:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,150,105,.35);
  color: #fff;
}
.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 2px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--motion-normal);
}
.mobile-menu {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--mobile-header-h) + 8px);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  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,.3);
  z-index: 999;
}
.mobile-menu.is-open { display: block; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: background var(--motion-fast);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: rgba(5,150,105,.18);
  color: #10b981;
}

@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: 40px; 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: 38px; padding-inline: 9px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.home-hero {
  background: var(--gradient-hero);
  padding: clamp(60px, 10vw, 100px) 0 clamp(50px, 8vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: rgba(5,150,105,.1);
  border-radius: 50%;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(30,64,175,.1);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
  display: inline-block;
  background: rgba(5,150,105,.2);
  color: #34d399;
  border: 1px solid rgba(52,211,153,.3);
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 20px;
}
.home-hero h1 {
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-heading);
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero-lead {
  color: rgba(255,255,255,.85);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--gradient-button);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-button);
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all var(--motion-normal);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,150,105,.4); color: #fff; }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all var(--motion-normal);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* Banner Section */
.home-banner-section { padding: var(--section-y-sm) 0; background: var(--color-bg); }
.home-banner { width: 100%; border-radius: var(--radius-lg); object-fit: cover; max-height: 420px; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: var(--lh-heading);
}
.section-header.light h2 { color: #fff; }
.section-lead { color: var(--color-text-soft); font-size: 1.02rem; max-width: 700px; margin: 0 auto; }
.section-header.light .section-lead { color: rgba(255,255,255,.75); }
.section-label {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.home-features { padding: var(--section-y) 0; background: var(--color-surface); }
.feature-intro-text, .steps-intro-text, .compare-intro, .plans-intro, .testimonials-intro,
.game-links-intro, .responsible-intro {
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.9;
  max-width: var(--container-narrow);
  margin: 0 auto 32px;
  text-align: left;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap-md);
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.feature-card.accent { border-top-color: var(--color-secondary); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-icon { font-size: 2rem; color: var(--color-primary); margin-bottom: 12px; }
.feature-card.accent .feature-icon { color: var(--color-secondary); }
.feature-card h3 { font-size: var(--fs-h3); margin: 0 0 8px; font-weight: 600; }
.feature-card p { color: var(--color-text-soft); font-size: 0.95rem; margin: 0; line-height: 1.75; }

/* ============================================================
   ABOUT INTRO (split layout)
   ============================================================ */
.home-about-intro { padding: var(--section-y) 0; background: var(--color-bg); }
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}
.intro-img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; max-height: 400px; }
.intro-text h2 { font-size: var(--fs-h2); margin: 0 0 16px; }
.intro-text p { color: var(--color-text-soft); line-height: 1.9; margin: 0 0 14px; }
.btn-primary-action {
  display: inline-flex; align-items: center;
  background: var(--gradient-button);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin-top: 8px;
  box-shadow: var(--shadow-button);
  transition: all var(--motion-normal);
  text-decoration: none;
}
.btn-primary-action:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,150,105,.35); color: #fff; }

@media (max-width: 768px) {
  .intro-split { grid-template-columns: 1fr; }
}

/* Showcase */
.home-showcase, .home-mid-visual, .home-lower-visual, .home-bottom-visual {
  padding: var(--section-y-sm) 0;
}
.showcase-banner, .mid-visual-img, .lower-visual-img, .bottom-visual-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 420px;
}

/* ============================================================
   STEPS
   ============================================================ */
.home-steps { padding: var(--section-y) 0; background: var(--color-surface); }
.steps-timeline { max-width: 700px; margin: 0 auto; }
.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
  position: relative;
}
.step-item.alt { border-left-color: var(--color-secondary); }
.step-number {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero-soft);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
}
.step-body h3 { font-size: var(--fs-h3); margin: 0 0 8px; }
.step-body p { color: var(--color-text-soft); margin: 0; line-height: 1.8; }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.home-compare { padding: var(--section-y) 0; background: var(--color-bg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead th {
  background: var(--gradient-hero-soft);
  color: #fff;
  font-weight: 600;
}
.compare-table thead th.highlight { background: var(--gradient-button); }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table td.highlight { background: rgba(5,150,105,.04); }
.text-success { color: var(--color-success); }
.text-muted { color: var(--color-text-muted); }

/* ============================================================
   PLANS
   ============================================================ */
.home-plans { padding: var(--section-y) 0; background: var(--color-surface); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  max-width: 960px;
  margin: 0 auto;
}
.plan-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  text-align: center;
  position: relative;
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.plan-card.popular {
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(13,110,253,.12);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
}
.plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 1.8rem; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; }
.plan-price span { font-size: 0.9rem; color: var(--color-text-muted); font-weight: 400; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.plan-card li { padding: 8px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-soft); font-size: 0.95rem; }
.plan-card li::before { content: '\2713'; color: var(--color-success); margin-right: 8px; font-weight: 700; }
.btn-plan {
  display: block; width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 12px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
  transition: all var(--motion-normal);
}
.btn-plan:hover { background: var(--color-primary); color: #fff; }
.btn-plan-primary {
  display: block; width: 100%;
  background: var(--gradient-button);
  color: #fff;
  padding: 12px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: all var(--motion-normal);
}
.btn-plan-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,150,105,.35); color: #fff; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.home-testimonials { padding: var(--section-y) 0; background: var(--color-bg); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-md);
}
.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--motion-normal);
}
.testimonial-card:hover { transform: translateY(-2px); }
.stars { color: var(--color-accent); margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-card p { color: var(--color-text-soft); line-height: 1.8; margin: 0 0 12px; font-style: italic; }
.testimonial-author { font-weight: 600; color: var(--color-text); font-size: var(--fs-small); }

/* ============================================================
   PRIVACY NOTICE
   ============================================================ */
.home-privacy-notice { padding: var(--section-y) 0; background: var(--color-surface); }
.privacy-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
}
.privacy-icon { font-size: 2.8rem; color: var(--color-primary); flex-shrink: 0; }
.privacy-content h2 { font-size: var(--fs-h3); margin: 0 0 12px; }
.privacy-content p { color: var(--color-text-soft); line-height: 1.9; margin: 0 0 12px; }
.privacy-link { color: var(--color-primary); font-weight: 600; }

@media (max-width: 768px) {
  .privacy-box { flex-direction: column; }
}

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.home-responsible { padding: var(--section-y) 0; }
.responsible-wrap {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
}
.responsible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-md);
  margin-bottom: 24px;
}
.responsible-card {
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 24px 16px;
}
.responsible-card i { font-size: 2rem; color: #34d399; display: block; margin-bottom: 12px; }
.responsible-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
.responsible-card p { color: rgba(255,255,255,.7); font-size: 0.9rem; margin: 0; line-height: 1.7; }
.responsible-contact { color: #bbf7d0; text-align: center; font-size: 0.95rem; margin-bottom: 16px; }
.responsible-contact strong { color: #fff; }
.responsible-intro { color: rgba(255,255,255,.75); }
.btn-responsible {
  display: inline-flex;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--motion-normal);
}
.btn-responsible:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ============================================================
   GAME LINKS
   ============================================================ */
.home-game-links { padding: var(--section-y) 0; background: var(--color-surface); }
.game-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-md);
}
.game-link-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--motion-normal), box-shadow var(--motion-normal);
}
.game-link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); color: var(--color-text); }
.game-thumb { border-radius: var(--radius-image); margin-bottom: 16px; width: 100%; height: 180px; object-fit: cover; }
.game-link-card h3 { font-size: var(--fs-h3); margin: 0 0 6px; }
.game-link-card p { color: var(--color-text-soft); margin: 0; font-size: 0.9rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.home-final-cta {
  background: var(--gradient-cta);
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}
.home-final-cta h2 { color: #fff; font-size: var(--fs-h2); margin: 0 0 16px; }
.home-final-cta p { color: rgba(255,255,255,.85); max-width: 650px; margin: 0 auto 28px; line-height: 1.8; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: var(--gradient-button);
  color: #fff;
  padding: 14px 40px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-button);
  text-decoration: none;
  transition: all var(--motion-normal);
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,150,105,.4); color: #fff; }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: 14px 40px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--motion-normal);
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
  padding: clamp(40px, 6vw, 72px) 0 0;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--gap-lg);
  padding-bottom: 32px;
}
.footer-logo { margin-bottom: 16px; height: 42px; width: auto; }
.footer-desc { color: #94a3b8; font-size: 0.92rem; line-height: 1.8; margin-bottom: 12px; }
.footer-email { color: #64748b; font-size: 0.88rem; }
.footer-email i { color: var(--color-primary); margin-right: 6px; }
.footer-col h6 { color: #e2e8f0; font-size: 1rem; font-weight: 600; margin: 0 0 16px; }
.footer-col a {
  display: block;
  color: #94a3b8;
  padding: 5px 0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--motion-fast);
}
.footer-col a:hover { color: #10b981; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: #64748b; font-size: 0.85rem; margin: 0; }
.footer-badges { display: flex; gap: 8px; }
.badge-secure, .badge-age {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(5,150,105,.15);
  color: #34d399;
  border: 1px solid rgba(52,211,153,.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav { padding: 12px 0; }
.breadcrumb-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 4px; color: var(--color-text-muted); }
.breadcrumb-item a { color: var(--color-primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--color-text-soft); }

/* ============================================================
   INNER PAGE - GAME DETAIL
   ============================================================ */
.page-inner { padding-top: 0; }
.inner-opening {
  background: var(--gradient-hero-soft);
  padding: clamp(32px, 5vw, 56px) 0;
}
.inner-opening .container-main { max-width: var(--container-narrow); }
.inner-opening h1 { color: #fff; font-size: var(--fs-h1); margin: 8px 0 16px; line-height: var(--lh-heading); }
.inner-opening .lead { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.8; margin: 0; }
.inner-opening .breadcrumb-list { margin-bottom: 8px; }
.inner-opening .breadcrumb-item a { color: rgba(255,255,255,.6); }
.inner-opening .breadcrumb-item.active { color: rgba(255,255,255,.5); }
.inner-opening .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.inner-body { padding: var(--section-y) 0; }
.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  margin: 40px 0 16px;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-soft);
}
.prose h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--color-text);
}
.prose p {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 18px;
  color: var(--color-text-soft);
}
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; color: var(--color-text-soft); }
.prose li { margin-bottom: 8px; line-height: 1.8; }
.prose img { border-radius: var(--radius-image); margin: 24px 0; }

.inner-img-section { padding: var(--section-y-sm) 0; text-align: center; }
.inner-img-section img { border-radius: var(--radius-lg); max-height: 380px; object-fit: cover; margin: 0 auto; }

/* Info Cards in prose */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
  margin: 24px 0;
}
.info-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.info-card h4 { font-size: 1.05rem; margin: 0 0 8px; color: var(--color-text); }
.info-card p { font-size: 0.92rem; margin: 0; color: var(--color-text-soft); line-height: 1.7; }

/* Warning / Note boxes */
.note-box {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.note-box p { color: #92400e; margin: 0; font-size: 0.95rem; }

.safe-box {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #6ee7b7;
  border-left: 4px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.safe-box p { color: #065f46; margin: 0; font-size: 0.95rem; }

/* Related Links */
.related-links {
  background: var(--color-card-alt);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
  margin: 32px 0;
}
.related-links h3 { margin-top: 0; }
.related-links ul { list-style: none; padding: 0; }
.related-links li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.related-links li:last-child { border-bottom: none; }
.related-links a { font-weight: 500; }

/* Inner CTA */
.inner-cta {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  margin: 40px 0;
}
.inner-cta h2 { color: #fff; font-size: var(--fs-h2); margin: 0 0 12px; }
.inner-cta p { color: rgba(255,255,255,.8); margin: 0 0 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.inner-cta .btn-cta-primary { display: inline-flex; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-group { margin-bottom: 32px; }
.faq-group h3 { margin-bottom: 16px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--color-card);
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-btn::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--motion-normal);
}
.faq-btn[aria-expanded="true"]::after { content: '\2212'; }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--color-text-soft);
  line-height: 1.8;
}
.faq-answer.show { display: block; }

/* ============================================================
   AUTH PAGES (Login/Register)
   ============================================================ */
.auth-opening {
  background: var(--gradient-hero-soft);
  padding: clamp(32px, 5vw, 48px) 0;
}
.auth-opening h1 { color: #fff; font-size: var(--fs-h1); margin: 8px 0 12px; }
.auth-opening .lead { color: rgba(255,255,255,.8); }

.auth-body { padding: var(--section-y) 0; }
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
}
.auth-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
}
.auth-form-card h2 { font-size: var(--fs-h3); margin: 0 0 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--motion-fast);
  background: var(--color-surface);
  color: var(--color-text);
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.btn-form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-button);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--motion-normal);
}
.btn-form-submit:hover { box-shadow: 0 6px 20px rgba(5,150,105,.35); }

.auth-trust-card {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
.auth-trust-card h3 { font-size: var(--fs-h3); margin: 0 0 16px; }
.trust-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.trust-item i { font-size: 1.5rem; color: var(--color-secondary); flex-shrink: 0; margin-top: 2px; }
.trust-item div h4 { font-size: 1rem; margin: 0 0 4px; }
.trust-item div p { font-size: 0.9rem; color: var(--color-text-soft); margin: 0; line-height: 1.6; }

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-opening {
  background: var(--color-surface-strong);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--color-border);
}
.policy-opening h1 { font-size: var(--fs-h1); margin: 8px 0 8px; color: var(--color-text); }
.policy-opening .lead { color: var(--color-text-soft); }
.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  margin-top: 12px;
}
.policy-toc {
  background: var(--color-card-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.policy-toc h3 { font-size: 1.05rem; margin: 0 0 12px; }
.policy-toc ol { padding-left: 20px; margin: 0; }
.policy-toc li { margin-bottom: 6px; }
.policy-toc a { font-size: 0.92rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-opening {
  background: var(--gradient-hero-soft);
  padding: clamp(32px, 5vw, 56px) 0;
}
.about-opening h1 { color: #fff; font-size: var(--fs-h1); margin: 8px 0 16px; }
.about-opening .lead { color: rgba(255,255,255,.8); }

.about-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap-md);
  margin: 32px 0;
}
.data-card {
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
}
.data-card .data-number { font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.data-card .data-label { font-size: 0.9rem; color: var(--color-text-soft); margin-top: 4px; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
  margin: 24px 0;
}
.value-card {
  background: var(--color-card-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 4px solid var(--color-primary);
}
.value-card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.value-card p { margin: 0; color: var(--color-text-soft); font-size: 0.92rem; line-height: 1.7; }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-y) 0;
}
.page-404 h1 { font-size: 5rem; color: var(--color-primary); margin: 0; }
.page-404 h2 { font-size: var(--fs-h2); margin: 12px 0; }
.page-404 p { color: var(--color-text-soft); margin: 0 0 24px; max-width: 500px; }
.page-404 .btn-primary-action { display: inline-flex; }

/* ============================================================
   SWIPER FALLBACK
   ============================================================ */
.swiper:not(.swiper-initialized) { overflow-x: auto; display: flex; gap: 16px; scroll-snap-type: x mandatory; }
.swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 300px; scroll-snap-align: start; }

/* AOS FALLBACK - never hide content */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 900px) {
  .home-hero { padding: clamp(48px, 8vw, 72px) 0 clamp(40px, 6vw, 56px); }
  .hero-actions { flex-direction: column; align-items: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 380px; }
  .responsible-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .responsible-grid { grid-template-columns: 1fr; }
  .game-link-grid { grid-template-columns: 1fr; }
}
@media (max-width: 414px) {
  body { font-size: 15px; }
  .home-hero h1 { font-size: 1.6rem; }
  .section-header h2 { font-size: 1.4rem; }
}
@media (max-width: 375px) {
  .home-hero h1 { font-size: 1.5rem; }
  .btn-hero-primary, .btn-hero-outline { padding: 12px 24px; font-size: 0.95rem; }
}
