:root {
    --color-primary: #06b6d4;
    --color-primary-dark: #0891b2;
    --color-primary-soft: rgba(6,182,212,.15);
    --color-secondary: #8b5cf6;
    --color-accent: #f59e0b;
    --color-bg: #020617;
    --color-bg-soft: #0a1628;
    --color-surface: #0f172a;
    --color-surface-strong: #1e293b;
    --color-card: #0f172a;
    --color-card-alt: #111c34;
    --color-border: rgba(255,255,255,.08);
    --color-border-strong: rgba(255,255,255,.15);
    --color-text: #e2e8f0;
    --color-text-soft: #94a3b8;
    --color-text-muted: #64748b;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-footer-bg: #01040c;
    --color-footer-text: #cbd5e1;
    --gradient-hero: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-button: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --gradient-card: linear-gradient(135deg, rgba(6,182,212,.12), rgba(139,92,246,.16));
    --shadow-card: 0 18px 40px rgba(2,6,23,.45);
    --shadow-header: 0 2px 20px rgba(0,0,0,.3);
    --shadow-soft: 0 4px 12px rgba(0,0,0,.15);
    --radius-sm: .5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-pill: 999px;
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
    --container-max: 1200px;
    --header-h: 72px;
    --mobile-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-base); background: radial-gradient(circle at top left, rgba(6,182,212,.1), transparent 25%), radial-gradient(circle at top right, rgba(139,92,246,.14), transparent 30%), var(--color-bg); color: var(--color-text); line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1,h2,h3,h4 { color: #f8fafc; font-weight: 800; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-bottom: .75rem; }
p { margin-bottom: 1rem; color: var(--color-text-soft); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.5rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .95rem; white-space: nowrap; border: none; cursor: pointer; transition: all .25s ease; text-decoration: none; min-height: 44px; }
.btn-primary { background: var(--gradient-button); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: .92; color: #fff; transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(6,182,212,.5); color: #c7f9ff; background: transparent; }
.btn-outline:hover { background: var(--gradient-button); color: #fff; border-color: transparent; }
.btn-light { background: #fff; color: var(--color-bg); font-weight: 700; }
.btn-light:hover { background: #f1f5f9; color: var(--color-bg); }
.btn-login { border: 1px solid rgba(6,182,212,.5); color: #c7f9ff; background: transparent; padding: .5rem 1rem; font-size: .85rem; border-radius: var(--radius-pill); }
.btn-register { background: var(--gradient-button); color: #fff; padding: .5rem 1rem; font-size: .85rem; border-radius: var(--radius-pill); }
.btn-full { width: 100%; }

/* ========== HEADER ========== */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(2,6,23,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: var(--shadow-header); }
.header-inner { width: 100%; max-width: none; padding-left: clamp(10px, 1.2vw, 20px); padding-right: clamp(10px, 1.2vw, 20px); min-height: var(--header-h); display: flex; align-items: center; gap: clamp(10px, 1vw, 18px); }
.brand-wrap { flex: 0 0 auto; margin-right: clamp(4px, .8vw, 14px); }
.site-logo { display: block; width: auto; height: clamp(32px, 3vw, 42px); max-width: clamp(118px, 10vw, 168px); object-fit: contain; border-radius: var(--radius-sm); }
.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: clamp(13px, .84vw, 15px); line-height: 1; white-space: nowrap; color: #dbeafe; font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); transition: all .2s; }
.primary-nav a:hover, .primary-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.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; }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #e2e8f0; border-radius: 2px; transition: all .3s; }
.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-menu { display: none; position: fixed; left: 12px; right: 12px; top: calc(var(--mobile-header-h) + 8px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 16px; max-height: calc(100vh - var(--mobile-header-h) - 24px); overflow-y: auto; z-index: 999; box-shadow: var(--shadow-card); }
.mobile-menu.is-open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { padding: 14px 16px; color: var(--color-text); border-radius: var(--radius-sm); font-weight: 600; transition: background .2s; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(255,255,255,.06); color: #fff; }

@media (max-width: 1180px) {
    .primary-nav { display: none; }
    .header-actions .btn-login, .header-actions .btn-register { font-size: clamp(12px, 3.2vw, 14px); padding: .4rem clamp(10px, 2.6vw, 14px); min-height: 40px; }
    .nav-toggle { display: inline-flex; flex: 0 0 40px; margin-left: 2px; }
    .header-inner { padding-left: clamp(8px, 2.4vw, 14px); padding-right: clamp(8px, 2.4vw, 14px); min-height: var(--mobile-header-h); gap: clamp(6px, 1.8vw, 10px); }
    .brand-wrap { margin-right: 0; }
    .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
    .header-actions { margin-left: auto; }
}
@media (max-width: 375px) {
    .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
    .site-logo { max-width: 104px; }
    .header-actions .btn-login, .header-actions .btn-register { min-height: 38px; padding-inline: 9px; font-size: 12px; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb ol { display: flex; gap: .5rem; list-style: none; font-size: .88rem; color: var(--color-text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb li::after { content: '/'; margin-left: .5rem; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--color-primary); }

/* ========== SECTIONS ========== */
section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-header { text-align: center; max-width: 850px; margin: 0 auto 2.5rem; }
.section-badge, .hero-badge { display: inline-block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #cffafe; background: var(--gradient-card); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: .4rem .85rem; margin-bottom: 1rem; }
.section-image { margin-top: 2.5rem; text-align: center; }
.section-image img { border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }

/* ========== HERO ========== */
.home-hero { padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-lead { color: var(--color-text-soft); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-visual { position: relative; }
.hero-img { border: 1px solid var(--color-border); box-shadow: var(--shadow-card); border-radius: var(--radius-lg); }

/* ========== CONTENT SPLITS ========== */
.content-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.content-split-reverse { grid-template-columns: .9fr 1.1fr; }
.content-split-reverse .content-visual { order: -1; }
.trust-grid, .showcase-grid, .compare-grid, .review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

/* ========== CARDS ========== */
.features-grid, .game-features-grid, .about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card, .game-feature-card, .about-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s; }
.feature-card:hover, .game-feature-card:hover, .about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-icon { font-size: 1.75rem; margin-bottom: .75rem; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--gradient-card); border: 1px solid var(--color-border); }

/* ========== STEPS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.step-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.step-number { width: 48px; height: 48px; background: var(--gradient-button); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin-bottom: 1rem; }

/* ========== HIGHLIGHT STRIP ========== */
.home-highlight-strip .highlight-inner { background: var(--gradient-hero); border-radius: var(--radius-xl); padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.highlight-inner h2, .highlight-inner p { color: #fff; }
.highlight-inner p { margin: 0; }

/* ========== TABLES ========== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { color: #f8fafc; font-weight: 700; background: rgba(255,255,255,.04); }
td { color: var(--color-text-soft); }

/* ========== COMPARISON, PRIVACY, TIPS ========== */
.compare-table-wrap, .compare-text { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; }
.privacy-card { background: var(--gradient-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.tips-card { background: var(--color-card-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; }

/* ========== CTA ========== */
.cta-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.final-cta-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }

/* ========== TESTIMONIALS ========== */
.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: .75rem; }
.testimonial-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: .5rem; }
.testimonial-location { display: block; font-size: .85rem; color: var(--color-text-muted); }
.rating { color: #fbbf24; letter-spacing: .1em; }

/* ========== AUTH PAGES ========== */
.auth-hero, .register-hero { padding: clamp(5rem, 8vw, 7rem) 0 2rem; }
.auth-grid, .register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.auth-form-card, .register-form-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; }
.auth-form .form-group { margin-bottom: 1.25rem; }
.auth-form label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .92rem; color: var(--color-text); }
.auth-form input { width: 100%; padding: .75rem 1rem; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); color: var(--color-text); font-size: 1rem; transition: border-color .2s; }
.auth-form input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.form-note { text-align: center; font-size: .88rem; margin-top: 1rem; }
.auth-info-panel, .register-benefit-panel { padding: 1rem 0; }
.auth-benefits, .benefit-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
.benefit-item, .benefit-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.auth-steps .steps-list, .register-step-flow { display: grid; gap: 1rem; margin-top: 1.5rem; }
.step-item { display: flex; gap: 1rem; align-items: start; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.step-num { width: 40px; height: 40px; min-width: 40px; background: var(--gradient-button); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.register-step-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.step-flow-item { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.step-flow-item span { width: 44px; height: 44px; background: var(--gradient-button); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin-bottom: .75rem; }

/* ========== FAQ ========== */
.faq-groups h2 { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: .75rem; overflow: hidden; }
.faq-toggle { width: 100%; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; }
.faq-toggle h3 { color: #f8fafc; font-size: 1rem; font-weight: 600; margin: 0; }
.faq-toggle::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); font-weight: 700; transition: transform .3s; }
.faq-toggle[aria-expanded="true"]::after { content: '−'; }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; }

/* ========== POLICY PAGES ========== */
.policy-hero { padding: clamp(5rem, 8vw, 7rem) 0 2rem; }
.policy-content { max-width: 860px; }
.policy-content h2 { margin-top: 2rem; }
.policy-content h3 { margin-top: 1.5rem; }

/* ========== ABOUT PAGE ========== */
.about-hero { padding: clamp(5rem, 8vw, 7rem) 0 2rem; }

/* ========== GAME PAGES ========== */
.game-hero { padding: clamp(5rem, 8vw, 7rem) 0 2rem; }
.game-hero-inner { max-width: 800px; }

/* ========== FOOTER ========== */
.site-footer { background: var(--color-footer-bg); border-top: 1px solid var(--color-border); padding-top: 3rem; }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; }
.footer-brand img { border-radius: var(--radius-sm); margin-bottom: .75rem; }
.footer-brand p { color: var(--color-text-soft); font-size: .92rem; }
.footer-email { color: var(--color-text-muted); font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 { color: #f8fafc; font-size: .95rem; margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--color-footer-text); padding: .3rem 0; font-size: .9rem; transition: color .2s; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--container-max); margin: 2rem auto 0; padding: 1.5rem clamp(16px, 4vw, 24px); display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom p { color: var(--color-text-muted); font-size: .88rem; margin: 0; }

/* ========== 404 ========== */
.error-section { padding: 8rem 0; text-align: center; }

/* ========== RELATED LINKS ========== */
.related-links { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; margin-top: 1.5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-grid, .content-split, .content-split-reverse, .trust-grid, .showcase-grid, .compare-grid, .review-grid, .auth-grid, .register-grid, .footer-inner, .final-cta-card, .privacy-card, .highlight-inner { grid-template-columns: 1fr; }
    .content-split-reverse .content-visual { order: 0; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .footer-links { grid-template-columns: 1fr; }
    .features-grid, .game-features-grid, .steps-grid, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
    body { font-size: 15px; }
}

/* ========== FOCUS & ACCESSIBILITY ========== */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
