/* ============================================
   67bd Design System — Emerald Trust Gaming UI
   ============================================ */
:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-soft: #e0f2fe;
  --color-secondary: #22c55e;
  --color-secondary-dark: #16a34a;
  --color-accent: #f59e0b;
  --color-bg: #f0f9ff;
  --color-bg-soft: #e0f2fe;
  --color-surface: #fff;
  --color-surface-strong: #f8fafc;
  --color-card: #fff;
  --color-card-alt: #f0f9ff;
  --color-border: #bae6fd;
  --color-border-strong: #7dd3fc;
  --color-text: #0f172a;
  --color-text-soft: #334155;
  --color-text-muted: #64748b;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0c4a6e;
  --color-footer-text: #bae6fd;
  --gradient-hero: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #22c55e 100%);
  --gradient-hero-soft: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
  --gradient-button: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --gradient-cta: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
  --gradient-footer: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
  --shadow-header: 0 2px 16px rgba(14,165,233,0.15);
  --shadow-card: 0 4px 24px rgba(14,165,233,0.1);
  --shadow-card-hover: 0 12px 36px rgba(14,165,233,0.18);
  --shadow-button: 0 4px 14px rgba(34,197,94,0.3);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-card: 14px;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(1.75rem, 4vw, 2.6rem);
  --fs-h2: clamp(1.35rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1.02rem;
  --fs-small: 0.88rem;
  --fs-nav: clamp(13px, .84vw, 15px);
  --lh-body: 1.85;
  --lh-heading: 1.3;
  --section-y: clamp(48px, 6vw, 80px);
  --container-max: 1200px;
  --container-narrow: 820px;
  --header-h: 72px;
  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 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); line-height: var(--lh-body); font-size: var(--fs-body); overflow-x: hidden; width: 100%; }
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); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ============ CONTAINERS ============ */
.section-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section-container.narrow { max-width: var(--container-narrow); }

/* ============ 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); }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(14,165,233,0.25); }
.header-inner { width: 100%; max-width: none; padding-left: clamp(10px, 1.2vw, 20px); padding-right: clamp(10px, 1.2vw, 20px); min-height: var(--header-h); display: flex; align-items: center; gap: clamp(10px, 1vw, 18px); }
.brand-wrap { flex: 0 0 auto; margin-right: clamp(4px, .8vw, 14px); display: flex; align-items: center; }
.site-logo { display: block; width: auto; height: clamp(32px, 3vw, 42px); max-width: clamp(118px, 10vw, 168px); object-fit: contain; }
.primary-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(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,0.9); font-weight: 500; border-radius: 6px; transition: background var(--motion-fast), color var(--motion-fast); }
.primary-nav a:hover, .primary-nav a.active { background: rgba(255,255,255,0.18); 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; }
.header-actions .btn { min-height: 40px; padding: 0 clamp(12px, 1vw, 18px); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border-radius: var(--radius-pill); white-space: nowrap; transition: all var(--motion-fast); }
.btn-login { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-login:hover { background: rgba(255,255,255,0.3); color: #fff; }
.btn-register { background: var(--color-secondary); color: #fff; border: 1px solid var(--color-secondary); box-shadow: var(--shadow-button); }
.btn-register:hover { background: var(--color-secondary-dark); color: #fff; transform: translateY(-1px); }
.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; border-radius: 8px; background: rgba(255,255,255,0.12); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--motion-normal); }
.nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-nav { display: none; position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 8px); background: var(--gradient-cta); border-radius: var(--radius-lg); padding: 16px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.25); z-index: 999; flex-direction: column; gap: 0; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { display: block; padding: 14px 16px; color: #fff; font-weight: 500; font-size: 1rem; border-radius: 8px; transition: background var(--motion-fast); }
.mobile-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { 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: 38px; padding-inline: clamp(10px, 2.6vw, 14px); font-size: clamp(12px, 3.2vw, 14px); }
  .nav-toggle { flex: 0 0 40px; margin-left: 2px; }
}
@media (max-width: 375px) {
  .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 36px; padding-inline: 8px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ============ BREADCRUMB ============ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-text-muted); }

/* ============ SECTIONS ============ */
section { padding: var(--section-y) 0; }
.section-heading { font-size: var(--fs-h2); font-weight: 700; color: var(--color-primary-dark); text-align: center; margin-bottom: 12px; line-height: var(--lh-heading); position: relative; display: block; }
.section-heading::after { content: ''; display: block; width: 60px; height: 4px; background: var(--gradient-button); border-radius: 2px; margin: 10px auto 0; }
.section-subtext { text-align: center; color: var(--color-text-soft); max-width: 680px; margin: 0 auto 32px; font-size: 1rem; line-height: 1.7; }

/* ============ HERO ============ */
.home-hero { background: var(--gradient-hero); color: #fff; padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; top: -80px; right: -100px; width: 400px; height: 400px; background: rgba(255,255,255,0.06); border-radius: 50%; pointer-events: none; }
.hero-container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-heading); text-shadow: 0 2px 8px rgba(0,0,0,0.15); margin-bottom: 16px; }
.hero-lead { font-size: 1.1rem; opacity: 0.92; line-height: 1.7; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual .content-img { border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-height: 380px; object-fit: cover; width: 100%; }
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .content-img { max-height: 240px; }
}

/* Hero buttons */
.btn-hero-primary { background: var(--color-secondary); color: #fff; padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1.05rem; box-shadow: var(--shadow-button); transition: all var(--motion-fast); display: inline-block; }
.btn-hero-primary:hover { background: var(--color-secondary-dark); transform: translateY(-2px); color: #fff; }
.btn-hero-outline { background: transparent; color: #fff; padding: 13px 30px; border: 2px solid rgba(255,255,255,0.6); border-radius: var(--radius-pill); font-weight: 600; font-size: 1.05rem; transition: all var(--motion-fast); display: inline-block; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ============ TRUST STRIP ============ */
.home-trust-strip { background: var(--color-surface); padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.trust-container { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--color-text-soft); }
.trust-icon { font-size: 1.2rem; }

/* ============ FEATURE CARDS ============ */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--color-card); border-radius: var(--radius-card); padding: 28px 22px; box-shadow: var(--shadow-card); border-top: 4px solid var(--color-primary); transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal); text-align: center; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.fc-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--color-text-soft); line-height: 1.7; }

/* ============ CONTENT WITH IMAGE ============ */
.content-with-image { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 36px; align-items: start; }
.content-with-image.reverse { grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); }
.content-with-image .prose { max-width: none; }
.content-with-image .side-visual .content-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
@media (max-width: 768px) { .content-with-image, .content-with-image.reverse { grid-template-columns: 1fr; } }

/* ============ ABOUT CONTENT GRID ============ */
.about-content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 36px; align-items: start; }
@media (max-width: 768px) { .about-content-grid { grid-template-columns: 1fr; } }

/* ============ PROSE ============ */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); font-weight: 700; margin: 32px 0 14px; line-height: var(--lh-heading); }
.prose h3 { font-size: var(--fs-h3); color: var(--color-text); font-weight: 700; margin: 24px 0 10px; line-height: 1.35; }
.prose p { margin-bottom: 16px; line-height: var(--lh-body); color: var(--color-text-soft); }
.prose a { color: var(--color-primary); font-weight: 600; }
.prose ul li { padding: 6px 0; padding-left: 20px; position: relative; }
.prose ul li::before { content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }

/* ============ STEPS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.step-card { background: var(--color-card); border-radius: var(--radius-card); padding: 30px 22px; box-shadow: var(--shadow-card); text-align: center; position: relative; transition: transform var(--motion-normal); }
.step-card:hover { transform: translateY(-4px); }
.step-number { width: 48px; height: 48px; background: var(--gradient-button); color: #fff; font-size: 1.3rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(34,197,94,0.3); }
.step-card h3 { font-size: 1.08rem; color: var(--color-primary-dark); font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--color-text-soft); line-height: 1.7; }
.btn-step, .btn-step-alt { display: inline-block; margin-top: 12px; padding: 8px 22px; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 600; color: #fff; transition: all var(--motion-fast); }
.btn-step { background: var(--color-primary); }
.btn-step:hover { background: var(--color-primary-dark); color: #fff; }
.btn-step-alt { background: var(--color-secondary); }
.btn-step-alt:hover { background: var(--color-secondary-dark); color: #fff; }

/* ============ IMAGE BREAKS ============ */
.home-visual-break { padding: 24px 0; background: var(--color-surface); }
.home-visual-break .content-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); max-height: 380px; object-fit: cover; width: 100%; margin: 0 auto; }

/* ============ COMPARE TABLE ============ */
.table-scroll { 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-cta); color: #fff; padding: 14px 16px; font-weight: 600; text-align: center; }
.compare-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--color-border); background: var(--color-card); }
.compare-table tbody tr:hover { background: var(--color-bg-soft); }
.compare-table .check { color: var(--color-success); font-weight: 700; }
.compare-table .cross { color: var(--color-danger); }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.price-card { background: var(--color-card); border-radius: var(--radius-lg); padding: 36px 24px 28px; box-shadow: var(--shadow-card); text-align: center; border: 2px solid transparent; transition: all var(--motion-normal); position: relative; }
.price-card:hover, .price-card.featured { border-color: var(--color-primary); transform: translateY(-5px); }
.price-card.featured { background: var(--gradient-hero-soft); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff; font-size: 0.78rem; padding: 4px 16px; border-radius: var(--radius-pill); font-weight: 600; }
.price-badge.vip { background: var(--color-secondary); }
.price-card h3 { font-size: 1.15rem; color: var(--color-primary-dark); font-weight: 700; margin-bottom: 8px; }
.price-value { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); line-height: 1.1; }
.price-value span { font-size: 0.9rem; font-weight: 500; }
.price-note { font-size: 0.85rem; color: var(--color-text-muted); margin: 4px 0 16px; }
.price-card ul { text-align: left; margin: 16px 0; }
.price-card ul li { padding: 6px 0; font-size: 0.93rem; color: var(--color-text-soft); }
.price-card ul li::before { content: '✓ '; color: var(--color-success); font-weight: 700; }
.btn-price, .btn-price-featured { display: inline-block; padding: 12px 28px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem; color: #fff; transition: all var(--motion-fast); }
.btn-price { background: var(--color-primary); }
.btn-price:hover { background: var(--color-primary-dark); color: #fff; }
.btn-price-featured { background: var(--gradient-button); box-shadow: var(--shadow-button); }
.btn-price-featured:hover { transform: translateY(-2px); color: #fff; }

/* ============ PRIVACY NOTICE ============ */
.privacy-card { background: var(--color-card-alt); border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); padding: 24px; display: flex; align-items: flex-start; gap: 18px; }
.privacy-icon { font-size: 2rem; flex-shrink: 0; }
.privacy-card h3 { font-weight: 700; color: var(--color-primary-dark); margin-bottom: 8px; font-size: 1.1rem; }
.privacy-card p { font-size: 0.95rem; color: var(--color-text-soft); line-height: 1.7; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testi-card { background: var(--color-card); border-radius: var(--radius-card); padding: 26px 22px; box-shadow: var(--shadow-card); border-left: 5px solid var(--color-secondary); }
.testi-stars { color: var(--color-accent); font-size: 1.1rem; margin-bottom: 12px; }
.testi-card p { font-size: 0.95rem; color: var(--color-text-soft); font-style: italic; line-height: 1.7; margin-bottom: 14px; }
.testi-author { font-weight: 700; color: var(--color-primary-dark); }
.testi-city { font-size: 0.83rem; color: var(--color-text-muted); }

/* ============ RESPONSIBLE GAMING ============ */
.responsible-panel { background: var(--gradient-footer); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); }
.responsible-panel h2 { color: var(--color-border); font-weight: 700; margin-bottom: 12px; font-size: var(--fs-h2); }
.responsible-panel > p { color: var(--color-footer-text); margin-bottom: 24px; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rg-item { display: flex; gap: 14px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 18px; }
.rg-icon { font-size: 1.6rem; flex-shrink: 0; }
.rg-item h4 { font-weight: 700; color: var(--color-bg-soft); margin-bottom: 4px; font-size: 1rem; }
.rg-item p { font-size: 0.92rem; opacity: 0.88; line-height: 1.6; }
.rg-link { margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.rg-link a { color: #86efac; font-weight: 700; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 600; font-size: 1rem; color: var(--color-primary-dark); text-align: left; gap: 12px; transition: background var(--motion-fast); }
.faq-toggle:hover { background: var(--color-bg-soft); }
.faq-arrow { font-size: 0.8rem; transition: transform var(--motion-normal); flex-shrink: 0; }
.faq-answer { display: none; padding: 0 20px 16px; }
.faq-answer p { font-size: 0.95rem; color: var(--color-text-soft); line-height: 1.7; }

/* ============ CTA PANELS ============ */
.cta-panel { background: var(--gradient-hero); color: #fff; border-radius: var(--radius-xl); padding: clamp(36px, 5vw, 56px); text-align: center; }
.cta-panel h2 { color: #fff; font-size: var(--fs-h2); font-weight: 700; margin-bottom: 12px; }
.cta-panel p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 24px; font-size: 1.05rem; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-cta-primary { background: var(--color-secondary); color: #fff; padding: 14px 36px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1.05rem; box-shadow: var(--shadow-button); display: inline-block; transition: all var(--motion-fast); }
.btn-cta-primary:hover { background: var(--color-secondary-dark); transform: translateY(-2px); color: #fff; }
.btn-cta-outline { background: transparent; color: #fff; padding: 13px 34px; border: 2px solid rgba(255,255,255,0.5); border-radius: var(--radius-pill); font-weight: 600; display: inline-block; transition: all var(--motion-fast); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.cta-trust { margin-top: 18px; font-size: 0.88rem; opacity: 0.8; }
.final-cta-panel { background: var(--gradient-hero); color: #fff; border-radius: var(--radius-xl); padding: clamp(36px, 5vw, 56px); text-align: center; }
.final-cta-panel h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 12px; }
.final-cta-panel p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }

/* ============ PAGE OPENINGS ============ */
.page-opening, .auth-opening, .about-opening, .policy-opening, .rg-opening, .app-opening, .games-opening, .faq-opening, .register-opening { background: var(--gradient-hero-soft); padding: clamp(32px, 4vw, 48px) 0; }
.page-opening h1, .auth-opening h1, .about-opening h1, .policy-opening h1, .rg-opening h1, .app-opening h1, .games-opening h1, .faq-opening h1, .register-opening h1 { font-size: var(--fs-h1); font-weight: 700; color: var(--color-primary-dark); line-height: var(--lh-heading); margin-bottom: 12px; }
.opening-lead { font-size: 1.05rem; color: var(--color-text-soft); line-height: 1.7; max-width: 780px; }
.policy-updated { font-size: var(--fs-small); color: var(--color-text-muted); margin-top: 8px; }

/* ============ CONTENT IMAGES ============ */
.content-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: auto; object-fit: cover; }
.text-image-alt { display: flex; flex-direction: column; gap: 20px; }
.text-image-alt .content-img { max-height: 320px; object-fit: cover; }

/* ============ AUTH PAGES ============ */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 768px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-form-card { background: var(--color-card); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow-card); }
.auth-form-card h2 { font-size: 1.4rem; color: var(--color-primary-dark); font-weight: 700; margin-bottom: 8px; }
.auth-form { margin-top: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--color-text); margin-bottom: 6px; font-size: 0.95rem; }
.form-group input { width: 100%; padding: 12px 16px; border: 2px solid var(--color-border); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-base); transition: border-color var(--motion-fast); background: var(--color-surface); }
.form-group input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
.btn-form-submit { width: 100%; padding: 14px; background: var(--gradient-button); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all var(--motion-fast); box-shadow: var(--shadow-button); }
.btn-form-submit:hover { transform: translateY(-1px); }
.btn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-register-submit { background: var(--color-secondary); }
.form-help { text-align: center; margin-top: 16px; font-size: 0.92rem; color: var(--color-text-muted); }
.auth-info-panel, .register-benefit-panel { background: var(--color-card-alt); border-radius: var(--radius-lg); padding: 28px; }
.auth-info-panel h3, .register-benefit-panel h3 { font-size: 1.2rem; color: var(--color-primary-dark); font-weight: 700; margin-bottom: 12px; }
.auth-trust-points { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.atp { font-size: 0.92rem; padding: 10px 14px; background: var(--color-surface); border-radius: var(--radius-sm); }
.benefit-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ben-item { font-size: 0.95rem; padding: 10px 14px; background: var(--color-surface); border-radius: var(--radius-sm); font-weight: 500; }
.security-tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sec-tip { background: var(--color-card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-soft); }
.sec-tip h3 { font-size: 1rem; color: var(--color-primary-dark); margin-bottom: 8px; }
.sec-tip p { font-size: 0.92rem; color: var(--color-text-soft); line-height: 1.6; }

/* ============ REG STEPS ============ */
.reg-steps-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.rs-step { background: var(--color-card); border-radius: var(--radius-card); padding: 28px 20px; box-shadow: var(--shadow-card); text-align: center; }
.rs-num { width: 44px; height: 44px; background: var(--gradient-button); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 14px; }

/* ============ GAME PAGES ============ */
.game-intro-detail, .game-rules, .game-strategy, .game-features, .game-live-section, .game-mobile, .game-safety, .game-jackpot, .game-bonus, .game-tips, .game-tournaments, .game-odds, .game-live-betting, .game-analysis, .game-gameplay, .game-fish-types, .game-weapons, .game-disco-mode, .game-types-section, .game-tech, .game-dealers, .game-limits, .game-levels, .game-bonuses, .game-fair, .game-live-exp, .game-list-section, .game-faq, .game-cta { padding: var(--section-y) 0; }
.game-intro-detail:nth-child(odd), .game-rules:nth-child(odd), .game-features:nth-child(odd), .game-tips:nth-child(odd), .game-types-section:nth-child(odd), .game-levels:nth-child(odd) { background: var(--color-surface); }
.feature-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.fl-item { background: var(--color-card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-soft); border-left: 4px solid var(--color-primary); }
.fl-item h3 { font-size: 1rem; color: var(--color-primary-dark); margin-bottom: 6px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tip-item { background: var(--color-card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-soft); }
.tip-item h3 { font-size: 1rem; color: var(--color-primary-dark); margin-bottom: 8px; }
.game-type-cards, .game-list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.gt-card, .gl-card { background: var(--color-card); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card); border-top: 3px solid var(--color-secondary); }
.gt-card h3, .gl-card h3 { font-size: 1rem; color: var(--color-primary-dark); margin-bottom: 8px; }

/* ============ SAFETY PANEL ============ */
.safety-panel { background: var(--color-card-alt); border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.safety-panel h2 { color: var(--color-primary-dark); margin-bottom: 14px; }
.safety-panel p { color: var(--color-text-soft); line-height: 1.8; }

/* ============ RELATED PAGES ============ */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.related-card { display: block; background: var(--color-card); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); transition: all var(--motion-normal); border: 2px solid transparent; }
.related-card:hover { border-color: var(--color-primary); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.related-card h3 { font-size: 1.05rem; color: var(--color-primary-dark); margin-bottom: 6px; }
.related-card p { font-size: 0.9rem; color: var(--color-text-soft); }

/* ============ ABOUT PAGE ============ */
.data-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.data-card { background: var(--color-card); border-radius: var(--radius-md); padding: 28px 16px; text-align: center; box-shadow: var(--shadow-card); border-top: 4px solid var(--color-secondary); }
.data-num { font-size: 2rem; font-weight: 800; color: var(--color-primary); margin-bottom: 4px; }
.data-note { color: var(--color-text-soft); margin-top: 16px; line-height: 1.7; }
.value-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.val-card { background: var(--color-card); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.val-card h3 { font-size: 1.05rem; color: var(--color-primary-dark); margin-bottom: 8px; }
.val-card p { font-size: 0.92rem; color: var(--color-text-soft); line-height: 1.7; }

/* ============ POLICY PAGES ============ */
.policy-content { max-width: var(--container-narrow); }
.policy-toc { background: var(--color-card-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 28px; }
.policy-toc h2 { font-size: 1.1rem; margin-bottom: 10px; color: var(--color-primary-dark); }
.policy-toc ul li { padding: 4px 0; }
.policy-toc ul li a { font-size: 0.95rem; }
.policy-note { background: var(--color-card-alt); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; }
.policy-note p { font-size: 0.95rem; color: var(--color-text-soft); }

/* ============ GAMES CATALOG ============ */
.game-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.game-card { display: block; background: var(--color-card); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: all var(--motion-normal); }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.gc-visual { overflow: hidden; height: 180px; }
.gc-visual .content-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.game-card h3 { font-size: 1.05rem; color: var(--color-primary-dark); padding: 16px 18px 4px; }
.game-card p { font-size: 0.9rem; color: var(--color-text-soft); padding: 0 18px 16px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--gradient-footer); color: var(--color-footer-text); padding: 56px 0 24px; }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { font-size: 0.92rem; color: rgba(186,230,253,0.8); line-height: 1.7; margin: 12px 0; }
.footer-email { font-size: 0.88rem; color: var(--color-border-strong); }
.footer-links-group h5 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 1.02rem; }
.footer-links-group a { display: block; color: var(--color-border-strong); font-size: 0.92rem; margin-bottom: 8px; transition: color var(--motion-fast); }
.footer-links-group a:hover { color: var(--color-secondary); }
.footer-bottom { max-width: var(--container-max); margin: 0 auto; padding: 20px clamp(16px, 4vw, 32px) 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; text-align: center; font-size: 0.85rem; color: rgba(147,197,253,0.7); }
.footer-bottom p { margin-bottom: 4px; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ============ 404 ============ */
.error-section { background: var(--color-surface); }
.error-section h1 { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 12px; }

/* ============ MISC ============ */
.faq-contact { margin-top: 28px; text-align: center; color: var(--color-text-muted); font-size: 0.95rem; }
