/* ba99 Design System - Emerald Trust Gaming UI */
:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0369a1;
  --color-primary-soft: #e0f2fe;
  --color-secondary: #1e293b;
  --color-accent: #38bdf8;
  --color-bg: #f8fafc;
  --color-bg-soft: #f0f9ff;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  --color-card-alt: #f8fbff;
  --color-border: #bae6fd;
  --color-text: #1e293b;
  --color-text-soft: #334155;
  --color-text-muted: #64748b;
  --color-success: #0f766e;
  --color-warning: #b45309;
  --color-danger: #dc2626;
  --color-footer-bg: #0f172a;
  --color-footer-text: #e2e8f0;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 58%, #0c4a6e 100%);
  --gradient-button: linear-gradient(135deg, #0ea5e9, #38bdf8);
  --gradient-card: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  --shadow-card: 0 8px 32px rgba(30,41,59,.08);
  --shadow-card-hover: 0 16px 48px rgba(30,41,59,.14);
  --shadow-header: 0 4px 20px rgba(15,23,42,.12);
  --shadow-button: 0 4px 14px rgba(14,165,233,.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --motion-fast: .15s;
  --motion-normal: .25s;
  --ease-out: cubic-bezier(.25,.46,.45,.94);
  --container-max: 1200px;
  --header-h: 72px;
  --mobile-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { line-height: 1.3; margin: 0 0 .75rem; color: var(--color-text); }
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; }
p { margin: 0 0 1rem; color: var(--color-text-soft); }
ul { padding-left: 1.5rem; }
li { margin-bottom: .5rem; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  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;
}
.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: #e0f2fe; font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--motion-fast);
}
.primary-nav a:hover, .primary-nav a.active {
  color: #082f49; background: var(--color-accent);
}
.header-actions {
  flex: 0 0 auto; margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px); white-space: nowrap;
}
.btn { display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border: none; cursor: pointer;
  border-radius: var(--radius-pill); transition: all var(--motion-normal) var(--ease-out);
  text-decoration: none; line-height: 1;
}
.btn-login {
  min-height: 40px; padding: 0 16px; font-size: 14px;
  background: transparent; color: #e0f2fe;
  border: 1px solid rgba(186,230,253,.4);
}
.btn-login:hover { background: rgba(56,189,248,.15); color: #fff; }
.btn-register {
  min-height: 40px; padding: 0 18px; font-size: 14px;
  background: var(--gradient-button); color: #082f49;
  box-shadow: var(--shadow-button);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.35); }
.nav-toggle { display: none; }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  left: 12px; right: 12px; top: 76px;
  flex-direction: column; align-items: stretch; gap: 0;
  padding: 14px; border-radius: var(--radius-lg);
  background: rgba(15,23,42,.98); backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  max-height: calc(100vh - 96px); overflow-y: auto;
  z-index: 999;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px; color: #e0f2fe;
  font-weight: 500; border-radius: var(--radius-md);
  transition: background var(--motion-fast);
}
.mobile-menu a:hover { background: rgba(56,189,248,.12); }

/* Hamburger */
.hamburger {
  display: block; width: 22px; height: 2px;
  background: #e0f2fe; position: relative;
  transition: background var(--motion-fast);
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px;
  background: #e0f2fe; transition: transform var(--motion-normal);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle {
    display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(186,230,253,.3);
    border-radius: var(--radius-sm); margin-left: 2px; cursor: pointer;
  }
  .header-inner {
    min-height: var(--mobile-header-h);
    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); }
}
@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 { padding: 16px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--color-text-muted); }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--color-text-muted); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--color-primary-dark); }

/* ===== HERO HOME ===== */
.hero-home {
  padding: 110px 0 70px;
  background: var(--gradient-hero);
  color: #fff; position: relative; overflow: hidden;
}
.hero-home::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 15% 20%, rgba(56,189,248,.25), transparent 35%),
              radial-gradient(circle at 85% 15%, rgba(14,165,233,.18), transparent 30%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-content h1, .hero-content p, .hero-content .hero-badge, .hero-content .hero-trust { color: #fff; }
.hero-lead { font-size: 18px; line-height: 1.8; opacity: .92; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(224,242,254,.3); background: rgba(224,242,254,.08);
  font-weight: 600; font-size: 14px; margin-bottom: 16px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-trust { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: .85; }
.hero-visual { position: relative; }
.hero-visual .content-img { border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0,0,0,.3); border: 1px solid rgba(186,230,253,.2); }

.btn-primary-cta {
  min-height: 48px; padding: 0 28px; font-size: 16px;
  background: var(--gradient-button); color: #082f49;
  box-shadow: var(--shadow-button);
}
.btn-primary-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,.4); color: #082f49; }
.btn-secondary-cta, .btn-outline-cta {
  min-height: 48px; padding: 0 28px; font-size: 16px;
  background: transparent; color: #e0f2fe;
  border: 1px solid rgba(186,230,253,.4);
}
.btn-secondary-cta:hover, .btn-outline-cta:hover { background: rgba(56,189,248,.12); color: #fff; }

@media (max-width: 900px) {
  .hero-home { padding: 90px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== SECTIONS ===== */
.content-section, .section-why, .section-hub, .section-features, .section-mobile,
.section-security, .section-privacy, .section-compare, .section-start,
.section-responsible, .section-faq, .section-final-cta, .section-related { padding: 72px 0; }
.alt-bg { background: var(--gradient-card); }
.section-header { text-align: center; margin-bottom: 48px; max-width: 880px; margin-left: auto; margin-right: auto; }
.section-lead { color: var(--color-text-soft); font-size: 17px; max-width: 780px; margin: 0 auto; }

/* Split Layout */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.split-media .content-img { border-radius: var(--radius-xl); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; gap: 32px; } .split-layout.reverse { direction: ltr; } }

/* Card Grids */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 768px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }

/* Feature Cards */
.feature-card, .feature-card-v2, .guide-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-card); transition: all var(--motion-normal) var(--ease-out);
}
.feature-card:hover, .feature-card-v2:hover, .guide-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-card-hover);
}
.card-accent-0 { border-top: 3px solid #0ea5e9; }
.card-accent-1 { border-top: 3px solid #06b6d4; }
.card-accent-2 { border-top: 3px solid #0891b2; }
.card-accent-3 { border-top: 3px solid #0e7490; }
.card-icon, .card-icon-lg, .guide-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-primary-dark);
  font-size: 1.4rem; margin-bottom: 16px; border: 1px solid var(--color-border);
}
.accent-0 .guide-icon { background: #dbeafe; color: #1d4ed8; }
.accent-1 .guide-icon { background: #d1fae5; color: #065f46; }
.accent-2 .guide-icon { background: #fef3c7; color: #92400e; }
.accent-3 .guide-icon { background: #fce7f3; color: #9d174d; }

/* Info elements */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.info-pill {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 16px; font-size: 15px;
}
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }

/* Dark Panel */
.dark-panel {
  background: var(--gradient-hero); color: #f8fafc;
  border-radius: var(--radius-lg); padding: 32px; margin-top: 24px;
  box-shadow: var(--shadow-card);
}
.dark-panel h3, .dark-panel p, .dark-panel li { color: #f8fafc; }

/* Trust Banner */
.trust-banner {
  border-left: 5px solid var(--color-accent);
  background: var(--color-bg-soft); border-radius: var(--radius-md);
  padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start;
  margin: 24px 0; box-shadow: var(--shadow-card);
}
.trust-banner i { font-size: 24px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.trust-banner p { margin: 0; }

/* Steps */
.steps-row, .step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.step-numbered {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-card); position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--color-accent); color: #082f49;
  font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.step-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-card);
}
.step-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); color: var(--color-primary-dark);
  font-size: 1.3rem; margin-bottom: 12px;
}

/* Table */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; background: var(--color-card); }
thead { background: var(--color-primary-soft); }
th { padding: 14px 18px; text-align: left; font-weight: 700; color: #082f49; font-size: 15px; }
td { padding: 14px 18px; border-top: 1px solid var(--color-border); font-size: 15px; }
tbody tr:hover { background: var(--color-bg-soft); }

/* Checklist */
.checklist-panel {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card);
}
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 12px 0 12px 36px; position: relative;
  border-bottom: 1px solid var(--color-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '\f26e'; font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: 12px;
  color: var(--color-success); font-size: 18px;
}

/* Prose */
.prose-wide { max-width: 880px; }
.prose-narrow { max-width: 780px; }
.prose-block p { font-size: 17px; line-height: 1.85; }
.text-with-image { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .text-with-image { grid-template-columns: 1fr; } }

/* CTA */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Related Panel */
.related-panel {
  background: var(--gradient-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 48px; text-align: center;
  box-shadow: var(--shadow-card);
}

/* Responsible Panel */
.responsible-panel {
  background: var(--gradient-hero); color: #f8fafc;
  border-radius: var(--radius-xl); padding: 48px;
  box-shadow: 0 20px 60px rgba(15,23,42,.2);
}
.responsible-panel h2, .responsible-panel p, .responsible-panel li, .responsible-panel strong { color: #f8fafc; }

/* Final CTA */
.final-cta-panel {
  background: var(--gradient-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 56px; text-align: center;
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  margin-bottom: 12px; overflow: hidden; background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--color-text);
  text-align: left; gap: 16px;
  font-family: inherit;
}
.faq-trigger i { transition: transform var(--motion-normal); color: var(--color-primary); flex-shrink: 0; }
.faq-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 24px 20px; }
.faq-answer p { color: var(--color-text-soft); line-height: 1.8; }
.faq-item.is-open .faq-answer { display: block; }

/* Inner Page Openers */
.inner-opener {
  padding: 100px 0 60px;
  background: var(--gradient-hero); color: #fff;
}
.inner-opener h1, .inner-opener p { color: #fff; }
.opener-gradient { background: linear-gradient(135deg, #0f172a, #1e293b, #0c4a6e); }
.opener-split { background: linear-gradient(160deg, #1e293b, #0f172a); }
.opener-centered { background: linear-gradient(180deg, #0f172a, #1e293b); }
.opener-card { background: linear-gradient(145deg, #0c4a6e, #1e293b); }
.opener-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.opener-lead, .opener-lead-center { font-size: 17px; line-height: 1.8; opacity: .9; max-width: 700px; }
.opener-lead-center { margin: 0 auto 24px; }
.opener-text-wide { max-width: 780px; }
.opener-actions { margin-top: 24px; }
.opener-card-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.opener-card-img .content-img { border-radius: var(--radius-xl); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.inner-hero { padding: 100px 0 40px; background: var(--gradient-hero); color: #fff; }
.inner-hero h1 { color: #fff; }
@media (max-width: 900px) {
  .inner-opener, .inner-hero { padding: 80px 0 40px; }
  .opener-content, .opener-card-inner { grid-template-columns: 1fr; }
}

/* Error Page */
.error-section { padding: 120px 0 80px; }
.error-section h1 { color: var(--color-primary-dark); }

/* Content Images */
.content-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }

/* ===== FOOTER ===== */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
}
.footer-brand p { color: #94a3b8; font-size: 15px; line-height: 1.7; }
.footer-email { color: #94a3b8; font-size: 14px; }
.footer-logo-img { border-radius: var(--radius-sm); margin-bottom: 16px; }
.footer-col h3 { color: #e2e8f0; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 15px; transition: color var(--motion-fast); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 20px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.footer-bottom p { margin: 0; font-size: 14px; color: #64748b; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--color-accent); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* Focus Visible */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print */
@media print { .site-header, .site-footer, .mobile-menu, .nav-toggle { display: none !important; } }
