/* ==========================================================
   5777 bet app - Original Design System
   Target: Bangladesh (bn-BD)
   ========================================================== */
:root {
  --brand-gold: #f0b90b;
  --brand-deep: #0a1628;
  --brand-navy: #0e2040;
  --brand-panel: #132848;
  --brand-accent: #1a8cff;
  --text-primary: #e8edf5;
  --text-muted: #8a9bb5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.35);
  --shadow-glow: 0 0 32px rgba(240,185,11,.12);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --max-w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  background: var(--brand-deep);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-gold); text-decoration: none; transition: color .2s; }
a:hover { color: #ffd740; }
ul, ol { padding-left: 1.4em; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  background: linear-gradient(180deg, #091428 0%, #0e2040 100%);
  border-bottom: 2px solid var(--brand-gold);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; min-height: 72px; padding: 0 20px;
  display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; align-items: center; gap: 18px;
}
.brand-wrap {
  width: 168px; min-width: 168px; max-width: 168px; height: 56px;
  display: flex; align-items: center; gap: 10px; overflow: hidden; text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center; background: var(--brand-gold); border-radius: 10px;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { min-width: 0; line-height: 1.05; }
.brand-text strong {
  display: block; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--brand-gold); font-size: 18px; font-weight: 800; letter-spacing: -.3px;
}
.brand-text span {
  display: block; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.primary-nav {
  min-width: 0; display: flex; align-items: center; justify-content: center;
  gap: clamp(6px, 1vw, 18px); overflow: visible; flex-wrap: nowrap;
}
.primary-nav a {
  white-space: nowrap; flex: 0 1 auto; max-width: 128px; overflow: hidden; text-overflow: ellipsis;
  line-height: 1; padding: 10px 7px; color: var(--text-primary); font-size: 14px; font-weight: 600;
  border-radius: 6px; transition: color .2s, background .2s;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--brand-gold); background: rgba(240,185,11,.08); text-decoration: none;
}
.header-actions {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.header-actions .btn {
  min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s; text-decoration: none;
}
.btn-register { background: var(--brand-gold); color: #0a1628; }
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240,185,11,.35); color: #0a1628; }
.btn-login { background: transparent; border: 2px solid var(--brand-gold) !important; color: var(--brand-gold); }
.btn-login:hover { background: var(--brand-gold); color: #0a1628; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 2px solid var(--brand-gold); border-radius: var(--radius-sm);
  background: transparent; color: var(--brand-gold); font-size: 22px; cursor: pointer; align-items: center; justify-content: center;
}

/* More Menu */
.nav-more { position: relative; flex: 0 0 auto; }
.more-toggle {
  min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(240,185,11,.12); color: var(--brand-gold); font-size: 14px; font-weight: 600;
  font-family: var(--font-stack); transition: background .2s;
}
.more-toggle:hover { background: rgba(240,185,11,.22); }
.more-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 210px; padding: 10px;
  border-radius: 16px; z-index: 1200; background: var(--brand-panel);
  border: 1px solid rgba(240,185,11,.25); box-shadow: var(--shadow-card);
}
.more-menu[hidden] { display: none !important; }
.nav-more.is-open .more-menu { display: grid; gap: 4px; }
.more-menu a {
  display: block; width: 100%; max-width: none; padding: 11px 12px; white-space: nowrap;
  text-overflow: ellipsis; overflow: hidden; color: var(--text-primary); font-size: 14px;
  font-weight: 600; border-radius: 8px; transition: background .2s;
}
.more-menu a:hover { background: rgba(240,185,11,.1); color: var(--brand-gold); }

/* === HERO === */
.hero-home {
  background: linear-gradient(135deg, #091428 0%, #0e2855 40%, #162d5a 100%);
  padding: 72px 0 56px; position: relative; overflow: hidden; border-bottom: 3px solid var(--brand-gold);
}
.hero-home::before {
  content: ''; position: absolute; top: -120px; right: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,185,11,.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none;
}
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-home h1 { color: var(--brand-gold); font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.hero-home .hero-lead { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; }

.page-hero {
  background: linear-gradient(135deg, #091428 0%, #0e2040 50%, #132848 100%);
  padding: 48px 0 40px; border-bottom: 3px solid var(--brand-gold); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 40%, rgba(240,185,11,.06) 0%, transparent 60%); pointer-events: none;
}
.page-hero h1 { color: var(--brand-gold); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.page-hero p { color: var(--text-primary); max-width: 680px; }

/* === BREADCRUMB === */
.breadcrumb-bar { background: #071224; padding: 12px 0; border-bottom: 1px solid rgba(240,185,11,.1); }
.breadcrumb-list { display: flex; gap: 6px; list-style: none; padding: 0; font-size: 14px; }
.breadcrumb-list li + li::before { content: '/'; color: var(--text-muted); margin-right: 6px; }
.breadcrumb-list a { color: var(--brand-gold); }
.breadcrumb-list .current { color: var(--text-muted); }

/* === SECTIONS === */
.section { padding: 72px 0; }
.section-alt { background: var(--brand-navy); }
.section-dark { background: #071224; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { color: var(--brand-gold); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* Stats Bar */
.stats-bar { background: var(--brand-gold); padding: 20px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #0a1628; line-height: 1.1; }
.stat-label { font-size: .85rem; font-weight: 600; color: #1a3050; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--brand-panel); border: 1px solid rgba(240,185,11,.12); border-radius: var(--radius-md);
  padding: 28px 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-card .card-icon {
  width: 56px; height: 56px; background: rgba(240,185,11,.1); border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px; font-size: 24px; color: var(--brand-gold);
}
.feature-card h3 { color: var(--brand-gold); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .93rem; }

/* Steps */
.step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.step-card { background: var(--brand-panel); border-radius: var(--radius-md); padding: 28px 20px; border-left: 4px solid var(--brand-gold); }
.step-num {
  width: 44px; height: 44px; background: var(--brand-gold); color: #0a1628; font-weight: 800; font-size: 1.2rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-card h3 { color: var(--brand-gold); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: .93rem; }

/* Prose */
.prose { max-width: 820px; }
.prose h2 { color: var(--brand-gold); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; line-height: 1.25; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: #dbe5f0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.35; margin: 32px 0 12px; }
.prose p { font-size: 17px; line-height: 1.9; margin-bottom: 18px; color: var(--text-primary); }
.prose ul, .prose ol { margin-bottom: 18px; }
.prose li { margin-bottom: 8px; color: var(--text-primary); }
.prose img { border-radius: var(--radius-md); margin: 24px 0; box-shadow: var(--shadow-card); }
.prose a { color: var(--brand-gold); text-decoration: underline; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 36px; align-items: start; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--brand-panel); border: 1px solid rgba(240,185,11,.1); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px;
  background: none; border: none; color: var(--text-primary); font-size: 1rem; font-weight: 600;
  font-family: var(--font-stack); cursor: pointer; text-align: left; gap: 12px; transition: color .2s;
}
.faq-q:hover { color: var(--brand-gold); }
.faq-q .arrow { color: var(--brand-gold); transition: transform .25s; flex-shrink: 0; font-size: 18px; }
.faq-item.open .faq-q { color: var(--brand-gold); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-muted); font-size: .95rem; line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0e2855, #162d5a);
  border-top: 3px solid var(--brand-gold); border-bottom: 3px solid var(--brand-gold); padding: 56px 0; text-align: center;
}
.cta-banner h2 { color: var(--brand-gold); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--text-primary); max-width: 560px; margin: 0 auto 28px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Notice Card */
.notice-card { background: linear-gradient(135deg, var(--brand-panel), #0e2040); border: 2px solid rgba(240,185,11,.2); border-left: 5px solid var(--brand-gold); border-radius: var(--radius-md); padding: 24px 28px; }
.notice-card h3 { color: var(--brand-gold); font-size: 1.1rem; margin-bottom: 10px; }
.notice-card p { color: var(--text-primary); font-size: .95rem; }

/* VIP Cards */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.price-card { background: var(--brand-panel); border: 2px solid rgba(240,185,11,.12); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; }
.price-card.featured { border-color: var(--brand-gold); background: #152e58; }
.price-badge { display: inline-block; background: var(--brand-gold); color: #0a1628; font-weight: 700; padding: 4px 16px; border-radius: 20px; font-size: .82rem; margin-bottom: 12px; }
.price-card h3 { color: var(--brand-gold); font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 16px 0; }
.price-card li { padding: 6px 0; color: var(--text-primary); font-size: .95rem; }
.price-card li::before { content: '\2713 '; color: var(--brand-gold); font-weight: 700; }

/* Testimonials */
.testi-card { background: var(--brand-panel); border-radius: var(--radius-md); padding: 28px; border-top: 3px solid var(--brand-gold); }
.testi-card p { font-style: italic; color: var(--text-primary); margin-bottom: 12px; }
.testi-card .author { color: var(--brand-gold); font-weight: 600; }

/* Responsible Gaming Card */
.resp-card { background: linear-gradient(135deg, var(--brand-panel), #0e2040); border: 2px solid rgba(240,185,11,.15); border-radius: var(--radius-lg); padding: 36px; }
.resp-card h3 { color: var(--brand-gold); font-size: 1.3rem; margin-bottom: 16px; }
.tip-item { display: flex; gap: 14px; margin-bottom: 18px; }
.tip-icon { color: var(--brand-gold); font-size: 1.5rem; flex-shrink: 0; width: 32px; text-align: center; }
.tip-item strong { color: var(--brand-gold); display: block; margin-bottom: 4px; }
.tip-item p { color: var(--text-primary); font-size: .95rem; margin: 0; }

/* Sidebar */
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.sidebar-card { background: var(--brand-panel); border: 1px solid rgba(240,185,11,.12); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.sidebar-card h4 { color: var(--brand-gold); font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { color: var(--text-muted); font-size: .93rem; padding: 8px 0; border-bottom: 1px solid rgba(240,185,11,.08); transition: color .2s; }
.sidebar-links a:hover { color: var(--brand-gold); }

/* Alert */
.alert-gold { background: #152e58; border: 1px solid var(--brand-gold); border-left: 5px solid var(--brand-gold); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--text-primary); font-size: .95rem; }
.alert-gold strong { color: var(--brand-gold); }

/* === FOOTER === */
.site-footer { background: #060e1e; border-top: 3px solid var(--brand-gold); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: .93rem; line-height: 1.7; margin-top: 14px; }
.footer-col h4 { color: var(--brand-gold); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--text-muted); font-size: .93rem; transition: color .2s; }
.footer-links a:hover { color: var(--brand-gold); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(240,185,11,.1); text-align: center; color: var(--text-muted); font-size: .85rem; }

/* === BUTTONS === */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px;
  background: var(--brand-gold); color: #0a1628; font-weight: 700; font-size: 1rem; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: transform .15s, box-shadow .15s; text-decoration: none;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,185,11,.3); color: #0a1628; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px;
  background: transparent; border: 2px solid var(--brand-gold); color: var(--brand-gold); font-weight: 600;
  font-size: 1rem; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s, color .2s; text-decoration: none;
}
.btn-outline:hover { background: var(--brand-gold); color: #0a1628; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .header-inner { min-height: 68px; grid-template-columns: 140px 1fr auto; gap: 10px; }
  .brand-wrap { width: 140px; min-width: 140px; max-width: 140px; height: 48px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-text strong, .brand-text span { max-width: 86px; }
  .primary-nav {
    position: fixed; left: 12px; right: 12px; top: 76px; display: none; flex-direction: column;
    align-items: stretch; gap: 0; padding: 14px; border-radius: 18px; max-height: calc(100vh - 96px);
    overflow-y: auto; background: var(--brand-panel); border: 1px solid rgba(240,185,11,.2);
    box-shadow: var(--shadow-card); z-index: 999;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { max-width: none; width: 100%; padding: 14px 12px; text-overflow: initial; font-size: 15px; }
  .header-actions { justify-content: flex-end; gap: 6px; }
  .header-actions .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  .nav-more { display: none !important; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.reverse { direction: ltr; }
  .page-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .hero-home { padding: 48px 0 36px; }
}

/* === 404 === */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 6rem; color: var(--brand-gold); font-weight: 900; line-height: 1; }
.error-page h2 { color: var(--text-primary); font-size: 1.5rem; margin: 16px 0; }
.error-page p { color: var(--text-muted); max-width: 480px; margin: 0 auto 28px; }
