/* ============================================
   777betbd.net — Global Stylesheet
   Target: Bangladesh (bn-BD)
   Original design — not copied from competitor
   ============================================ */

/* --- CSS Variables --- */
:root {
  --c-primary: #1a5276;
  --c-primary-light: #2980b9;
  --c-accent: #e67e22;
  --c-accent-hover: #d35400;
  --c-gold: #f1c40f;
  --c-bg: #f4f7fa;
  --c-bg-alt: #eaf0f6;
  --c-surface: #ffffff;
  --c-text: #1c2833;
  --c-text-secondary: #566573;
  --c-border: #d5dbdb;
  --c-footer-bg: #0e2f44;
  --c-footer-text: #d5d8dc;
  --c-header-bg: #122e42;
  --c-success: #27ae60;
  --c-danger: #c0392b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --max-w: 1180px;
  --header-h: 72px;
}

/* --- 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-stack);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--c-primary); }

/* --- Utility --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   HEADER — Stable single-line layout
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--c-header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--header-h);
  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: linear-gradient(135deg, var(--c-accent), var(--c-gold));
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.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: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
}

.brand-text span {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-gold);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Primary Nav --- */
.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 18px);
  overflow: hidden;
  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 6px;
  color: #d5d8dc;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

/* --- More Menu --- */
.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.more-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #d5d8dc;
  font-size: 13px;
  font-family: var(--font-stack);
  transition: background .2s;
}

.more-toggle:hover { background: rgba(255,255,255,.08); }

.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  z-index: 1200;
  background: var(--c-surface);
  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;
  color: var(--c-text);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}

.more-menu a:hover { background: var(--c-bg-alt); color: var(--c-primary); }

/* --- Header Actions --- */
.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-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.btn-register {
  background: var(--c-accent);
  color: #fff;
}

.btn-register:hover {
  background: var(--c-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35) !important;
}

.btn-login:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-toggle:hover { background: rgba(255,255,255,.08); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #1a3a5c 60%, var(--c-header-bg) 100%);
  color: #fff;
  padding: 64px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 46px);
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero .lead {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.85);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-banner {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 32px;
  box-shadow: var(--shadow-lg);
}

.hero .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--c-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.hero .btn-cta:hover {
  background: var(--c-accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: 72px 0;
}

.content-section:nth-child(even) {
  background: var(--c-bg-alt);
}

.section-title {
  font-size: clamp(24px, 3vw, 38px);
  text-align: center;
  margin-bottom: 16px;
  color: var(--c-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--c-text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 17px;
}

/* --- Prose (article text) --- */
.prose { max-width: 820px; }
.prose-center { margin-left: auto; margin-right: auto; }

.prose p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: var(--c-text);
}

.prose h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  margin: 42px 0 18px;
  color: var(--c-primary);
}

.prose h3 {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--c-primary-light);
}

.prose ul, .prose ol {
  margin: 0 0 18px 20px;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--c-text);
}

.prose img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

.prose a { font-weight: 500; }

/* --- Content Grid (text + image side by side) --- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 36px;
  align-items: start;
}

.content-grid-reverse {
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
}

.content-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  border-top: 3px solid var(--c-primary-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3, .card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}

/* --- Game Card --- */
.game-card {
  border-top: none;
  overflow: hidden;
  padding: 0;
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.game-card-body p {
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

/* ============================================
   STEPS
   ============================================ */
.steps-list {
  counter-reset: step-counter;
  max-width: 780px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  background: var(--c-surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--c-primary-light);
}

.step-num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}

.step-content h4 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--c-primary);
}

.step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-secondary);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-wrap {
  overflow-x: auto;
  margin: 36px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th {
  background: var(--c-primary);
  color: #fff;
  padding: 16px 18px;
  font-size: 15px;
  text-align: left;
}

.comparison-table td {
  padding: 14px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--c-border);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--c-bg-alt); }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--c-primary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-stack);
  transition: background .15s;
}

.faq-q:hover { background: var(--c-bg-alt); }

.faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--c-text-secondary);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 22px;
}

.faq-item.is-open .faq-a {
  max-height: 600px;
  padding: 0 22px 20px;
}

.faq-a p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-secondary);
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial .stars { color: var(--c-gold); font-size: 16px; margin-bottom: 12px; }
.testimonial blockquote { font-size: 15px; line-height: 1.7; color: var(--c-text); margin-bottom: 14px; font-style: italic; }
.testimonial cite { font-size: 14px; color: var(--c-text-secondary); font-style: normal; font-weight: 600; }

/* ============================================
   PRICING / MEMBERSHIP
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--c-accent);
  position: relative;
}

.pricing-card h3 { font-size: 20px; margin-bottom: 10px; }
.pricing-card .price { font-size: 32px; font-weight: 800; color: var(--c-accent); margin-bottom: 6px; }
.pricing-card .price-desc { font-size: 14px; color: var(--c-text-secondary); margin-bottom: 22px; }

.pricing-card ul {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--c-border);
  list-style: none;
}

.pricing-card li::before {
  content: "\2713";
  color: var(--c-success);
  margin-right: 10px;
  font-weight: 700;
}

/* ============================================
   ALERT / NOTICE BOX
   ============================================ */
.notice-box {
  background: linear-gradient(135deg, #eaf2f8, #d4e6f1);
  border-left: 5px solid var(--c-primary-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 36px 0;
}

.notice-box h3 { font-size: 18px; margin-bottom: 10px; }
.notice-box p { font-size: 15px; line-height: 1.8; color: var(--c-text); }

.warning-box {
  background: linear-gradient(135deg, #fef9e7, #fdebd0);
  border-left: 5px solid var(--c-accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 36px 0;
}

.warning-box h3 { font-size: 18px; margin-bottom: 10px; color: var(--c-accent); }
.warning-box p { font-size: 15px; line-height: 1.8; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-section h2 { color: #fff; font-size: clamp(22px, 3vw, 34px); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: 17px; }

.cta-section .btn-cta {
  display: inline-flex;
  padding: 14px 36px;
  background: var(--c-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background .2s;
  text-decoration: none;
}

.cta-section .btn-cta:hover { background: var(--c-accent-hover); color: #fff; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-wrap {
  padding: 14px 0;
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text-secondary);
}

.breadcrumb a { color: var(--c-primary-light); }
.breadcrumb span { color: var(--c-text-secondary); }

/* ============================================
   INNER PAGE HERO
   ============================================ */
.inner-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 48px 0;
}

.inner-hero h1 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 40px);
  margin-bottom: 14px;
}

.inner-hero p {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  max-width: 720px;
  line-height: 1.75;
}

/* ============================================
   RELATED LINKS
   ============================================ */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}

.related-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-link .rl-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.related-link .rl-text { font-weight: 600; color: var(--c-text); font-size: 15px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding: 56px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-footer-text);
  margin-top: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--c-footer-text);
  font-size: 14px;
  padding: 5px 0;
  transition: color .2s;
}

.footer-col a:hover { color: var(--c-gold); }

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--c-footer-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.footer-bottom a { color: rgba(255,255,255,.6); }

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.error-page h1 { font-size: 72px; color: var(--c-accent); margin-bottom: 12px; }
.error-page h2 { font-size: 24px; margin-bottom: 18px; }
.error-page p { font-size: 17px; color: var(--c-text-secondary); margin-bottom: 28px; }

/* ============================================
   AUTH PAGES (Register / Login)
   ============================================ */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.auth-box {
  max-width: 520px;
  width: 100%;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.auth-box h1 { font-size: 28px; margin-bottom: 14px; }
.auth-box p { font-size: 16px; color: var(--c-text-secondary); margin-bottom: 24px; line-height: 1.7; }

.auth-box .notice-list {
  text-align: left;
  margin: 20px 0;
  list-style: disc;
  padding-left: 20px;
}

.auth-box .notice-list li {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--c-text);
  line-height: 1.7;
}

.auth-box .btn-cta {
  display: inline-flex;
  padding: 14px 36px;
  background: var(--c-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s;
  margin-top: 16px;
}

.auth-box .btn-cta:hover { background: var(--c-accent-hover); color: #fff; }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid,
  .content-grid-reverse {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE — Mobile (<=900px)
   ============================================ */
@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;
    font-size: 16px;
  }

  .brand-text strong {
    max-width: 86px;
    font-size: 15px;
  }

  .brand-text span {
    max-width: 86px;
    font-size: 10px;
  }

  .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(--c-surface);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    color: var(--c-text);
    font-size: 15px;
    border-bottom: 1px solid var(--c-border);
  }

  .primary-nav a:last-child { border-bottom: none; }

  .primary-nav a:hover,
  .primary-nav a.active {
    color: var(--c-primary);
    background: var(--c-bg-alt);
    border-bottom-color: var(--c-border);
  }

  .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;
  }

  /* Content */
  .content-section { padding: 48px 0; }

  .content-grid,
  .content-grid-reverse {
    grid-template-columns: 1fr;
  }

  .prose p { font-size: 16px; line-height: 1.85; }

  .card-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .hero { padding: 40px 0 48px; }
  .inner-hero { padding: 32px 0; }

  .pricing-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .related-links { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-wrap {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }

  .hero h1 { font-size: 22px; }
  .section-title { font-size: 20px; }
  .prose h2 { font-size: 20px; }

  .auth-box { padding: 28px 20px; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .nav-toggle, .header-actions, #br-stick { display: none !important; }
  body { background: #fff; color: #000; }
}
