/* 88fb casino - Original Design System */
/* System font stack - no Google Fonts */
:root {
  --primary: #1a6b4e;
  --primary-light: #2d9d6e;
  --primary-dark: #0e4a35;
  --accent: #f0b90b;
  --accent-hover: #d4a50a;
  --bg: #f4f7f5;
  --bg-alt: #eaf2ec;
  --bg-card: #ffffff;
  --text: #1a2332;
  --text-soft: #4a5568;
  --text-muted: #718096;
  --border: #d4e2d8;
  --border-light: #e8f0eb;
  --shadow-sm: 0 2px 8px rgba(26,107,78,.06);
  --shadow-md: 0 8px 24px rgba(26,107,78,.08);
  --shadow-lg: 0 16px 40px rgba(26,107,78,.10);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.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;
  overflow: hidden;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}

.brand-text {
  min-width: 0;
  line-height: 1.05;
}

.brand-text strong,
.brand-text span {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: var(--text);
}

.brand-text strong { font-weight: 800; font-size: 17px; color: var(--primary-dark); }

.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 20px);
  overflow: hidden;
  flex-wrap: nowrap;
}

.primary-nav .mobile-extra-link { display: none; }

.primary-nav > .nav-link {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.primary-nav > .nav-link:hover { color: var(--primary); background: var(--bg-alt); }
.primary-nav > .nav-link.active { color: var(--primary); background: rgba(26,107,78,.08); }

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
  line-height: 1;
}

.btn-register {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,107,78,.2);
}
.btn-register:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); }

.btn-login {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-login:hover { background: var(--primary); color: #fff; }

.nav-toggle { display: none; }

/* 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;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-alt);
  transition: background .2s;
}
.more-toggle:hover { background: var(--border-light); }

.more-menu {
  position: fixed;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  z-index: 1200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.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;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.more-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* ====== HERO ====== */
.hero-section {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #f0faf4 0%, #e6f3eb 50%, #f4f7f5 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-inner { padding-top: 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 18px;
  color: var(--text);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual img {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.tag-badge {
  display: inline-block;
  background: rgba(26,107,78,.08);
  color: var(--primary-dark);
  border: 1px solid rgba(26,107,78,.18);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ====== BREADCRUMB ====== */
.breadcrumb-nav { margin-bottom: 18px; }
.breadcrumb-list { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.breadcrumb-list li::after { content: ">"; margin-left: 8px; color: var(--text-muted); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--primary); font-weight: 600; }
.breadcrumb-list span { color: var(--text-soft); }

/* ====== CONTENT SECTIONS ====== */
.content-section { padding: 72px 0; }
.alt-bg { background: var(--bg-alt); }

.section-header { margin-bottom: 36px; }
.section-header.center { text-align: center; }
.section-header h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 12px;
}
.section-subtitle {
  color: var(--text-soft);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}
.section-header.center .section-subtitle { margin: 0 auto; }

/* Content with sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: 32px;
  align-items: start;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.content-card.wide { max-width: 100%; }

.content-card h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 18px;
}

.content-card h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 12px;
}

.content-card p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 16px;
  color: var(--text-soft);
}

.content-img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  margin: 24px 0;
}

/* Sidebar */
.sidebar-card, .sidebar-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-notice {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #fff, #f0faf4);
}

.sidebar-card h3, .sidebar-notice h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sidebar-notice p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  transition: all .2s;
}
.sidebar-links a:hover { background: var(--bg-alt); border-color: var(--primary); }

/* Split content */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-content.reverse .split-image { order: 2; }
.split-content.reverse .split-text { order: 1; }

.split-image img {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.split-text h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  margin: 8px 0 18px;
}

.split-text p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 14px;
  color: var(--text-soft);
}

.highlight-box {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #fff, #f0faf4);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 16px;
}
.highlight-box p { margin: 0; font-weight: 600; color: var(--primary-dark); font-size: 15px; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,107,78,.08);
  color: var(--primary);
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.7; color: var(--text-soft); margin: 0; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.step-card a { font-weight: 600; }

/* Comparison table */
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th, .comparison-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}
.comparison-table th {
  background: rgba(26,107,78,.06);
  font-weight: 700;
  color: var(--primary-dark);
}
.comparison-table td { color: var(--text-soft); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stars { color: var(--accent); font-size: 18px; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; line-height: 1.7; color: var(--text-soft); margin-bottom: 12px; }
.testimonial-card strong { display: block; font-size: 15px; }
.testimonial-card small { color: var(--text-muted); font-size: 13px; }

/* Image row */
.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.image-row img {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--primary-dark); }
.faq-card p { font-size: 15px; line-height: 1.75; color: var(--text-soft); margin: 0; }

/* Check list */
.check-list { padding-left: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ====== FOOTER ====== */
.site-footer {
  background: #0f1f2a;
  color: #c8d6dc;
  border-top: 3px solid var(--primary);
  padding: 56px 0 0;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand strong { color: #fff; font-size: 18px; }

.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-contact p { font-size: 13px; margin-bottom: 4px; }

.footer-links-col h3 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.footer-links-col ul li { margin-bottom: 8px; }
.footer-links-col a {
  color: #a0b4be;
  font-size: 14px;
  transition: color .2s;
}
.footer-links-col a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: #718a96; margin: 0; }

/* ====== POLICY / ABOUT / FAQ PAGE SPECIFIC ====== */
.prose-page .content-card { max-width: 880px; margin: 0 auto; }
.prose-page .content-card h2 { font-size: clamp(20px, 2.2vw, 28px); margin-top: 32px; }
.prose-page .content-card h3 { font-size: clamp(17px, 1.8vw, 22px); }

/* 404 */
.page-404 { text-align: center; padding: 120px 20px 80px; }
.page-404 h1 { font-size: clamp(48px, 8vw, 96px); color: var(--primary); margin-bottom: 16px; }
.page-404 p { font-size: 18px; color: var(--text-soft); margin-bottom: 24px; }

/* Register / Login pages */
.auth-section { padding: 120px 0 60px; }
.auth-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-card h1 { font-size: 28px; margin-bottom: 16px; }
.auth-card p { color: var(--text-soft); margin-bottom: 20px; }
.auth-card .auth-steps { text-align: left; margin: 20px 0; }
.auth-card .auth-steps li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--text-soft);
}

/* ====== 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(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav > .nav-link {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
  }

  .nav-more { display: none !important; }

  .primary-nav .mobile-extra-link {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
    display: block;
  }

  .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;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
  }

  .hero-section { padding: 90px 0 40px; }
  .hero-inner { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }

  .content-section { padding: 48px 0; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .split-content { grid-template-columns: 1fr; gap: 24px; }
  .split-content.reverse .split-image { order: 0; }
  .split-content.reverse .split-text { order: 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .image-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 22px; }
}
