/* ORION shared Vedic design system */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #fffdf8;
  --surface: #fffaf1;
  --surface-strong: #fff7e8;
  --navy: #071a33;
  --navy-soft: #18304d;
  --gold: #c98a18;
  --gold-light: #e7b651;
  --gold-border: rgba(201, 138, 24, 0.30);
  --border-gold: rgba(201, 138, 24, 0.30);
  --text: #172236;
  --text-dark: #172236;
  --muted: #626a76;
  --text-soft: #626a76;
  --success: #16856a;
  --error: #b43b3b;
  --shadow-sm: 0 4px 14px rgba(83, 58, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(83, 58, 23, 0.10);
  --shadow-soft: var(--shadow-md);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 16px;
  --container: 1240px;
}

/* Base and reset */
html { color-scheme: light; scroll-padding-top: 92px; }

/* Hide protected pages until auth gate marks them ready */
html:not(.auth-ready) body:not(.auth-public-page):not(.admin-login-page):not(.admin-system-page) {
  visibility: hidden;
}
html.auth-ready body,
body.auth-public-page,
body.admin-login-page,
body.admin-system-page {
  visibility: visible;
}

body {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(231, 182, 81, .08), transparent 23rem),
    radial-gradient(circle at 92% 32%, rgba(201, 138, 24, .055), transparent 22rem),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body::before {
  position: fixed; inset: 0; z-index: -1; content: ""; opacity: .3; pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 49.5%, rgba(201, 138, 24, .035) 50%, transparent 50.5%),
    linear-gradient(150deg, transparent 49.5%, rgba(201, 138, 24, .035) 50%, transparent 50.5%);
  background-size: 68px 118px;
}
::selection { color: #fff; background: var(--gold); }
img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
.page-shell { overflow: clip; }
.container { width: min(calc(100% - 32px), var(--container)); }
.section { padding: clamp(64px, 7vw, 104px) 0; }
.section::before { display: none; }

/* Typography */
h1, h2, h3, h4, .brand-text strong, .admin-topbar-title h1, .admin-sidebar-brand strong {
  color: var(--navy); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; letter-spacing: -.02em;
}
h1 { font-size: clamp(2.75rem, 6vw, 5.2rem); line-height: .94; }
h2 { font-size: clamp(2.2rem, 4vw, 3.65rem); line-height: 1; }
h3 { font-size: 1.45rem; line-height: 1.15; }
p { color: inherit; }
.eyebrow, .about-label, .report-result-section-label, .report-error-kicker {
  color: var(--gold); font: 700 .72rem/1.4 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase;
}
.section-heading { margin-bottom: 3rem; }
.section-heading h2 { padding: 0; }
.section-heading h2::before, .section-heading h2::after { display: none; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--gold-border);
  background: rgba(255, 253, 248, .96); box-shadow: 0 2px 16px rgba(83, 58, 23, .045); backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; gap: 22px; }
.brand { gap: 12px; color: var(--navy); }
.brand-mark {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold-border); background: var(--surface);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px rgba(201,138,24,.14);
}
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; border: 1px solid rgba(201,138,24,.25); border-radius: 50%; }
.brand-mark::before { width: 34px; height: 34px; }
.brand-mark::after { width: 26px; height: 26px; border-style: dashed; }
.brand-mark-core { position: relative; z-index: 1; width: auto; height: auto; border: 0; background: none; color: var(--gold); font: 700 20px/1 "Cormorant Garamond", serif; }
.brand-text { gap: 0; letter-spacing: .24em; }
.brand-text strong { font-size: 1.8rem; line-height: .86; letter-spacing: .12em; }
.brand-text > span { margin-top: 5px; color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .35em; }
.brand-tagline { display: none; margin-top: 5px; color: var(--muted); font: 600 .46rem/1 Inter,sans-serif; letter-spacing: .14em; white-space: nowrap; }
.site-nav { border-radius: var(--radius-md); border-color: var(--gold-border); background: var(--surface); box-shadow: var(--shadow-md); }
.site-nav a { position: relative; color: var(--navy); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::after { position: absolute; left: 0; right: 0; bottom: -9px; width: 18px; height: 2px; margin: auto; content: ""; background: var(--gold); }
.header-actions { margin-left: auto; }
.login-button { min-width: 104px; gap: 8px; color: var(--navy) !important; background: transparent !important; }
.login-icon { color: var(--gold); font-size: 1rem; }
.menu-toggle {
  display: inline-grid; place-content: center; width: 46px; height: 46px; gap: 5px; padding: 0;
  border: 1px solid var(--gold-border); border-radius: var(--radius-sm); background: var(--surface);
}
.menu-toggle span { width: 19px; height: 1.5px; border-radius: 0; background: var(--navy); transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Buttons */
.button, .sample-reports-button, .report-copy-button, .report-close-button, .report-error-copy {
  min-height: 46px; padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 700 .75rem/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.button::before { display: none; }
.button-primary, .submit-button, .report-track-button {
  color: #fff !important; border-color: var(--gold); background: linear-gradient(135deg, #b8730f, var(--gold-light)) !important;
  box-shadow: 0 8px 18px rgba(201, 138, 24, .22);
}
.button-secondary { color: var(--navy); border-color: var(--gold-border); background: var(--bg); }
.button-dark { color: #fff; border-color: var(--navy); background: var(--navy); }
.button:hover, .sample-reports-button:hover, .report-copy-button:hover, .report-close-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(83,58,23,.13); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid rgba(201,138,24,.33); outline-offset: 3px; }

/* Shared cards */
:where(.info-card,.service-card,.pricing-card,.testimonial-card,.step-card,.visual-card,.contact-form,.faq-item,.card-panel,.kundali-form,.horoscope-form,.lr-form,.lr-report,.reviews-score-card,.review-card,.review-form,.report-search-card,.report-result-card,.chat-guidance-card,.chat-window) {
  border: 1px solid var(--gold-border); border-radius: var(--radius-md); background: rgba(255, 250, 241, .88); box-shadow: var(--shadow-sm);
}
:where(.info-card,.service-card,.pricing-card,.testimonial-card,.step-card,.faq-item):hover { transform: translateY(-4px); border-color: rgba(201,138,24,.5); box-shadow: var(--shadow-md); }
.card-icon, .problem-icon, .step-icon {
  width: 54px; height: 54px; border: 1px solid rgba(201,138,24,.22); border-radius: 50%; color: var(--gold); background: var(--surface-strong); box-shadow: none;
}
.card-icon svg, .problem-icon svg, .step-icon svg { width: 24px; height: 24px; color: var(--gold); stroke: currentColor; }

/* Homepage hero */
.home-hero { min-height: 0; padding: 28px 0 24px; color: var(--navy); background: transparent !important; }
.home-hero-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr); align-items: center;
  min-height: 610px; overflow: hidden; padding: clamp(44px, 6vw, 78px); border: 1px solid var(--gold-border); border-radius: var(--radius-md);
  background: linear-gradient(115deg, rgba(255,255,255,.96), rgba(255,249,239,.88)); box-shadow: var(--shadow-sm);
}
.home-hero-panel::before, .home-hero-panel::after { position: absolute; content: ""; pointer-events: none; }
.home-hero-panel::before { inset: 14px; border: 1px solid rgba(201,138,24,.09); border-radius: 8px; }
.home-hero-panel::after { width: 360px; height: 360px; right: -180px; top: -180px; border: 1px solid rgba(201,138,24,.12); transform: rotate(45deg); }
.home-hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero-welcome { margin-bottom: 20px; }
.home-hero h1 { margin: 0; color: var(--navy); font-size: clamp(3.35rem, 6.1vw, 5.8rem); line-height: .84; text-transform: uppercase; }
.home-hero h1 span { display: block; margin-top: 10px; color: var(--gold); }
.hero-divider { display: flex; align-items: center; width: min(290px, 70%); margin: 28px 0 20px; color: var(--gold); }
.hero-divider::before, .hero-divider::after { flex: 1; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-divider::after { transform: scaleX(-1); }
.hero-divider span { margin: 0 10px; font-size: .8rem; }
.home-hero .hero-text { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.home-hero .hero-actions { margin-top: 28px; }
.home-hero .button-secondary { color: var(--navy); background: var(--bg); }
.zodiac-art { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; margin-left: auto; color: var(--gold); }
.zodiac-ring, .zodiac-ring::before, .zodiac-ring::after { position: absolute; border: 1px solid rgba(201,138,24,.38); border-radius: 50%; content: ""; }
.zodiac-ring { inset: 5%; background: repeating-conic-gradient(from -7.5deg, transparent 0deg 28deg, rgba(201,138,24,.28) 29deg 30deg); box-shadow: inset 0 0 0 20px rgba(255,247,232,.5); }
.zodiac-ring::before { inset: 15%; border-style: dashed; }
.zodiac-ring::after { inset: 32%; border-width: 2px; box-shadow: 0 0 0 11px rgba(201,138,24,.06); }
.zodiac-sun { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--gold); border-radius: 50%; font: 600 2rem/1 "Cormorant Garamond",serif; }
.zodiac-symbols { position: absolute; inset: 0; animation: orion-spin 80s linear infinite; }
.zodiac-symbols span { position: absolute; left: 50%; top: 50%; font: 600 1.15rem/1 "Cormorant Garamond",serif; transform: rotate(calc(var(--i) * 30deg)) translateY(-190px) rotate(calc(var(--i) * -30deg)); transform-origin: center; }
.zodiac-symbols span:nth-child(1) { --i: 0; }
.zodiac-symbols span:nth-child(2) { --i: 1; }
.zodiac-symbols span:nth-child(3) { --i: 2; }
.zodiac-symbols span:nth-child(4) { --i: 3; }
.zodiac-symbols span:nth-child(5) { --i: 4; }
.zodiac-symbols span:nth-child(6) { --i: 5; }
.zodiac-symbols span:nth-child(7) { --i: 6; }
.zodiac-symbols span:nth-child(8) { --i: 7; }
.zodiac-symbols span:nth-child(9) { --i: 8; }
.zodiac-symbols span:nth-child(10) { --i: 9; }
.zodiac-symbols span:nth-child(11) { --i: 10; }
.zodiac-symbols span:nth-child(12) { --i: 11; }
@keyframes orion-spin { to { transform: rotate(360deg); } }

/* Quick services and trust cards */
.quick-services { padding: 0 0 36px; }
.quick-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.quick-service-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 128px; padding: 20px;
  border: 1px solid var(--gold-border); border-radius: var(--radius-md); background: rgba(255,250,241,.94); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-service-card:hover { transform: translateY(-4px); border-color: rgba(201,138,24,.52); box-shadow: var(--shadow-md); }
.quick-service-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(201,138,24,.2); border-radius: 50%; background: var(--surface-strong); color: var(--gold); font-size: 1.2rem; }
.quick-service-card h2 { font-size: 1.28rem; line-height: 1.05; }
.quick-service-card p { margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.quick-service-arrow { color: var(--gold); font-size: 1.2rem; }
.trust-snapshot-section { padding: clamp(64px,7vw,98px) 0; background: rgba(255,247,232,.52); border-block: 1px solid rgba(201,138,24,.12); }
.trust-snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.trust-card, .snapshot-card { position: relative; min-height: 480px; overflow: hidden; padding: clamp(32px,5vw,58px); border: 1px solid var(--gold-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.trust-card { color: #fff; background: var(--navy); }
.trust-card::after, .snapshot-card::after { position: absolute; right: -90px; bottom: -110px; width: 300px; height: 300px; content: ""; border: 1px solid rgba(231,182,81,.2); border-radius: 50%; box-shadow: 0 0 0 26px rgba(231,182,81,.045), 0 0 0 52px rgba(231,182,81,.035); }
.trust-card h2 { max-width: 500px; color: #fff; }
.trust-card > p:not(.eyebrow) { max-width: 520px; margin-top: 18px; color: rgba(255,255,255,.76); }
.trust-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 34px 0; }
.trust-stat { border-left: 1px solid rgba(231,182,81,.35); padding-left: 14px; }
.trust-stat strong { display: block; color: var(--gold-light); font: 700 2rem/1 "Cormorant Garamond",serif; }
.trust-stat span { display: block; margin-top: 4px; color: rgba(255,255,255,.66); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.snapshot-card { background: var(--bg); }
.snapshot-card h2 { font-size: clamp(2rem,4vw,3.2rem); }
.snapshot-subtitle { color: var(--muted); }
.snapshot-rows { position: relative; z-index: 1; display: grid; gap: 0; margin: 28px 0; border-block: 1px solid rgba(201,138,24,.15); }
.snapshot-row { display: grid; grid-template-columns: minmax(135px,.7fr) 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(201,138,24,.12); }
.snapshot-row:last-child { border-bottom: 0; }
.snapshot-row span { color: var(--muted); font-size: .76rem; }
.snapshot-row strong { color: var(--navy); font-size: .88rem; }
.snapshot-row:nth-child(2) strong { color: var(--success); }

/* Existing homepage sections */
.problem-section, .selector-section, .how-section, .reviews-summary-section { background: transparent; }
.problem-grid { grid-template-columns: repeat(3,1fr); max-width: var(--container); gap: 16px; padding: 0; }
.problem-card { min-height: 190px; padding: 26px 20px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.about-section { background-color: var(--surface-strong); }
.about-title, .sample-reports-title { color: var(--navy); }
.report-showcase, .reviews-hero, .chat-hero, .report-status-hero { background: var(--surface-strong) !important; color: var(--navy); }
.report-showcase h2, .reviews-hero h1, .chat-hero h1, .report-status-hero h1 { color: var(--navy); }
.sample-reports-button { color: #fff; background: var(--navy); }
.pricing-card.featured { border-color: var(--gold); background: var(--surface-strong); }

/* Forms */
form label { color: var(--navy); font-size: .82rem; font-weight: 700; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(7,26,51,.14); border-radius: 10px;
  color: var(--text); background: rgba(255,255,255,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #92969d; }
input:hover, select:hover, textarea:hover { border-color: rgba(201,138,24,.42); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,138,24,.12); }
.input-error, input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error) !important; background: #fff5f4 !important; }
.form-feedback.is-error, .chat-start-feedback.is-error, .report-status-feedback.is-error { border: 1px solid rgba(180,59,59,.35); border-radius: var(--radius-sm); color: #8f2929; background: #fff0ef; }
.form-feedback.is-success, .chat-start-feedback.is-success { border: 1px solid rgba(22,133,106,.3); border-radius: var(--radius-sm); color: #0f6c56; background: #eefaf6; }
.contact-form, .kundali-form, .horoscope-form, .lr-form, .review-form { padding: clamp(22px,4vw,38px); }

/* Report tracking */
.report-status-page { background: var(--bg); }
.report-status-hero { min-height: 300px; padding: 72px 0 90px; background-image: none !important; }
.report-status-hero .hero-text { color: var(--muted); }
.report-status-main { width: min(calc(100% - 32px), 1040px); margin: -50px auto 70px; }
.report-search-card, .report-result-card { background: rgba(255,253,248,.98); }
.report-status-search { gap: 10px; }
.report-timeline ol, #report-timeline-stages { position: relative; display: grid; grid-template-columns: repeat(5,1fr); gap: 0; padding: 24px 0 0; }
#report-timeline-stages::before { position: absolute; left: 10%; right: 10%; top: 44px; height: 1px; content: ""; background: rgba(201,138,24,.24); }
.report-stage { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.report-stage__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #ddd0bb; color: var(--muted); background: #f4eee4; }
.report-stage--complete .report-stage__icon { border-color: var(--gold); color: #fff; background: var(--gold); }
.report-stage--current .report-stage__icon { border: 3px solid var(--gold-light); color: #fff; background: var(--navy); box-shadow: 0 0 0 6px rgba(201,138,24,.12); }
.report-stage > div { padding-top: 12px; }
.report-stage > div strong { color: var(--navy); font-weight: 700; }
.report-stage > div p { margin: 4px 0; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.report-stage__meta { color: var(--gold); font-size: .68rem; }
.report-error-section { border: 1px solid rgba(180,59,59,.35); border-radius: var(--radius-md); background: #fff1ef; }
.report-status-pill { border-radius: 6px; }

/* Chat */
.chat-main { background: var(--bg); }
.chat-hero { min-height: 250px; background-image: none !important; }
.chat-hero p:not(.eyebrow) { color: var(--muted); }
.chat-guidance-card, .chat-window { background: var(--surface); }
.chat-window { overflow: hidden; }
.chat-window-header { color: #fff; background: var(--navy); }
.chat-window-header h2, .chat-window-header p { color: #fff; }
.chat-message-list, .chat-messages { background: #fffaf1; }
.chat-message-admin .chat-message-bubble { color: var(--navy); border: 1px solid rgba(7,26,51,.08); background: #fff; }
.chat-message-user .chat-message-bubble { color: var(--navy); border: 1px solid rgba(201,138,24,.18); background: #fff0cf; }
.chat-composer { border-top: 1px solid var(--gold-border); background: var(--bg); }
.chat-composer button, .chat-composer .button { color: #fff; border-radius: var(--radius-sm); background: var(--gold); }
.chat-close-button { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.chat-floating-button { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); border: 1px solid var(--gold-border); border-radius: 10px; color: #fff; background: var(--navy); box-shadow: var(--shadow-md); }
.chat-active-panel:not(.is-hidden) { min-height: min(680px, calc(100vh - 170px)); }

/* Admin */
.admin-body, .admin-login-main { color: var(--text); background: var(--bg); }
.admin-sidebar { color: var(--navy); border-right: 1px solid var(--gold-border); background: var(--surface); }
.admin-sidebar-brand, .admin-sidebar-nav a, .admin-sidebar-logout { color: var(--navy); }
.admin-sidebar-nav a.is-active { color: #fff; background: var(--navy); }
.admin-topbar { border-bottom: 1px solid var(--gold-border); background: rgba(255,253,248,.96); }
.admin-card, .admin-table-card, .admin-login-card, .admin-message-panel, .admin-conversation-panel { border: 1px solid var(--gold-border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-topbar-account button, .admin-sidebar-logout { border-color: var(--gold-border); border-radius: var(--radius-sm); }

/* Footer */
.site-footer { padding: 68px 0 0; color: var(--muted); border-top: 1px solid var(--gold-border); background: #fff8ec; }
.footer-grid { gap: 36px; }
.footer-grid h3, .footer-grid h4 { color: var(--navy); }
.footer-grid h4 { margin-bottom: 16px; font: 700 .78rem/1.3 Inter,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-lockup > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold-border); border-radius: 50%; color: var(--gold); font: 700 1.3rem/1 "Cormorant Garamond",serif; }
.footer-brand-lockup strong, .footer-brand-lockup small { display: block; }
.footer-brand-lockup strong { color: var(--navy); font: 700 1.65rem/.9 "Cormorant Garamond",serif; letter-spacing: .11em; }
.footer-brand-lockup small { margin-top: 6px; color: var(--gold); font-size: .58rem; letter-spacing: .28em; }
.social-row span { border: 1px solid var(--gold-border); color: var(--gold); background: var(--bg); }
.footer-bottom { margin-top: 46px; padding: 19px 0; border-top: 1px solid var(--gold-border); color: rgba(255,255,255,.72); background: var(--navy); }

/* Responsive breakpoints */
@media (min-width: 1100px) {
  .brand-tagline { display: block; }
  .site-nav { position: static; display: flex; flex: 1 1 auto; justify-content: center; gap: clamp(14px,1.6vw,26px); padding: 0; border: 0; background: none; box-shadow: none; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
}

@media (max-width: 1099px) {
  .header-inner { min-height: 74px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.55rem; }
  .site-nav { top: calc(100% + 1px); left: 0; right: 0; padding: 22px max(20px, calc((100vw - var(--container))/2)); border-width: 0 0 1px; border-radius: 0; }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid rgba(201,138,24,.12); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .home-hero-panel { grid-template-columns: minmax(0,1fr) minmax(280px,.7fr); }
  .zodiac-symbols span { transform: rotate(calc(var(--i)*30deg)) translateY(-125px) rotate(calc(var(--i)*-30deg)); }
  .quick-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 58px 0; }
  .brand-text > span { font-size: .54rem; }
  .home-hero { padding-top: 14px; }
  .home-hero-panel { grid-template-columns: 1fr; min-height: 0; padding: 42px 24px 28px; }
  .home-hero h1 { font-size: clamp(2.65rem,12vw,3.7rem); line-height: .89; }
  .home-hero .hero-actions { display: grid; grid-template-columns: 1fr; }
  .home-hero .button { width: 100%; }
  .zodiac-art { width: min(82vw,330px); margin: 34px auto 0; }
  .zodiac-symbols span { transform: rotate(calc(var(--i)*30deg)) translateY(-126px) rotate(calc(var(--i)*-30deg)); }
  .quick-services { padding: 0 0 28px; }
  .quick-service-grid, .trust-snapshot-grid, .problem-grid { grid-template-columns: 1fr; }
  .quick-service-card { min-height: 108px; }
  .trust-card, .snapshot-card { min-height: auto; padding: 32px 24px; }
  .trust-stats { grid-template-columns: 1fr 1fr 1fr; }
  .snapshot-row { grid-template-columns: 1fr; gap: 3px; }
  .problem-card { min-height: 0; }
  .report-status-search { display: grid; grid-template-columns: 1fr; }
  .report-status-search .button { width: 100%; }
  #report-timeline-stages { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  #report-timeline-stages::before { left: 20px; right: auto; top: 40px; bottom: 40px; width: 1px; height: auto; }
  .report-stage { grid-template-columns: 42px 1fr; justify-items: start; gap: 14px; padding: 0 0 22px; text-align: left; }
  .report-stage > div { padding-top: 0; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-guidance-card { display: none; }
  .chat-window { min-height: calc(100dvh - 160px); }
  .chat-active-panel:not(.is-hidden) { min-height: calc(100dvh - 160px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.35rem; }
  .header-inner { gap: 10px; }
  .menu-toggle { width: 42px; height: 42px; }
  .site-nav.is-open { grid-template-columns: 1fr; max-height: calc(100dvh - 74px); overflow: auto; }
  .quick-service-grid { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-floating-copy { display: none; }
  .chat-floating-button { width: 50px; height: 50px; padding: 0; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .zodiac-symbols { animation: none; }
}

/* Shared Services submenu */
.site-header[data-shared-header] .site-nav__group {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.site-header[data-shared-header] .site-nav__parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-header[data-shared-header] .site-nav__chevron {
  display: inline-block;
  color: #b7770f;
  font-size: .9rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.site-header[data-shared-header] .site-nav__submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 20;
  display: grid;
  width: max-content;
  min-width: 224px;
  padding: 9px;
  border: 1px solid rgba(212, 162, 58, .25);
  border-radius: 12px;
  background: rgba(255, 253, 248, .99);
  box-shadow: 0 18px 38px rgba(10, 33, 73, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.site-header[data-shared-header] .site-nav__submenu a {
  width: 100%;
  min-height: 42px;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: .72rem;
}

.site-header[data-shared-header] .site-nav__submenu a::after {
  display: none;
}

.site-header[data-shared-header] .site-nav__submenu a:hover,
.site-header[data-shared-header] .site-nav__submenu a:focus-visible,
.site-header[data-shared-header] .site-nav__submenu a[aria-current="page"] {
  padding-left: 18px;
  background: rgba(246, 232, 200, .42);
  transform: none;
}

.site-header[data-shared-header] .site-nav__group:hover .site-nav__submenu,
.site-header[data-shared-header] .site-nav__group:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-header[data-shared-header] .site-nav__group:hover .site-nav__chevron,
.site-header[data-shared-header] .site-nav__group:focus-within .site-nav__chevron {
  transform: translateY(-1px) rotate(180deg);
}

.site-header[data-shared-header] .site-nav__group.is-current > .site-nav__parent {
  color: #b7770f;
}

@media (max-width: 1180px) {
  .site-header[data-shared-header] .site-nav__group {
    display: grid;
    grid-column: 1 / -1;
    align-items: stretch;
    align-self: auto;
  }

  .site-header[data-shared-header] .site-nav__parent {
    justify-content: space-between;
    width: 100%;
  }

  .site-header[data-shared-header] .site-nav__chevron {
    transform: translateY(-1px) rotate(180deg);
  }

  .site-header[data-shared-header] .site-nav__submenu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    padding: 6px 12px 12px 26px;
    border: 0;
    border-bottom: 1px solid rgba(212, 162, 58, .16);
    border-radius: 0;
    background: rgba(255, 248, 232, .58);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header[data-shared-header] .site-nav__submenu a {
    min-height: 44px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(212, 162, 58, .1);
    font-size: .74rem;
  }

  .site-header[data-shared-header] .site-nav__group:hover .site-nav__submenu,
  .site-header[data-shared-header] .site-nav__group:focus-within .site-nav__submenu {
    transform: none;
  }
}

@media (max-width: 680px) {
  .site-header[data-shared-header] .site-nav__submenu {
    grid-template-columns: 1fr;
    padding-left: 20px;
  }
}

/* Supplied cosmic artwork: aligned as the homepage's first-section background. */
.home-hero-panel {
  background-color: var(--surface-strong);
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .92) 38%, rgba(255, 253, 248, .42) 58%, rgba(255, 253, 248, .04) 100%),
    url("./public/images/orion-cosmic-hero-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.home-hero-panel .zodiac-art {
  visibility: hidden;
}

@media (max-width: 1099px) {
  .home-hero-panel {
    background-position: 55% center;
  }
}

@media (max-width: 767px) {
  .home-hero-panel {
    min-height: 560px;
    align-content: center;
    background-image:
      linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .90) 54%, rgba(255, 253, 248, .38) 100%),
      url("./public/images/orion-cosmic-hero-bg.png");
    background-position: 64% center;
  }

  .home-hero-copy {
    max-width: 92%;
  }
}

/* Premium report image showcase */
.report-showcase-image {
  position: relative;
  width: min(calc(100% - 24px), 1600px);
  height: clamp(360px, 37.65vw, 650px);
  margin: clamp(42px, 6vw, 86px) auto;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  background-color: var(--surface-strong);
  background-image: url("./public/images/orion-premium-report-demo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-md);
}

.report-demo-button {
  position: absolute;
  left: clamp(36px, 10.5vw, 172px);
  bottom: clamp(20px, 3vw, 42px);
  z-index: 2;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: clamp(270px, 24vw, 310px);
  height: 58px;
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid var(--gold-light);
  border-radius: 16px;
  color: #fff7e8;
  background: linear-gradient(180deg, #102b4b 0%, #071a33 100%) !important;
  box-shadow:
    0 0 0 2px #fff8ed,
    0 0 0 4px var(--gold),
    0 9px 18px rgba(83, 58, 23, .26);
  font-family: "Cormorant Garamond", Georgia, serif;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .24);
}

.report-demo-button span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
}

.report-demo-button::before {
  position: static;
  z-index: 2;
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  content: "\2725";
  transform: none;
  color: var(--gold-light);
  background: none;
  filter: none;
  font: 600 24px/1 "Cormorant Garamond", Georgia, serif;
  text-align: center;
}

.report-demo-button::after {
  position: absolute;
  inset: 3px;
  z-index: 1;
  display: block;
  content: "";
  border: 1px solid rgba(231, 182, 81, .72);
  border-radius: 12px;
  pointer-events: none;
}

.report-demo-button:hover,
.report-demo-button:focus-visible {
  color: #fff;
  border-color: var(--gold-light);
  background: linear-gradient(180deg, #17395f 0%, #0a2342 100%) !important;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .report-showcase-image {
    width: calc(100% - 24px);
    height: 420px;
    background-position: 57% center;
  }
}

@media (max-width: 479px) {
  .report-showcase-image {
    height: 360px;
    background-position: 55% center;
  }

  .report-demo-button {
    left: 24px;
    width: calc(100% - 48px);
  }
}

/* Supplied ORION compass brand mark for every public header. */
.site-header .brand-mark {
  overflow: hidden;
  border-color: var(--gold-border);
  background-color: var(--surface);
  background-image: url("./public/images/orion-brand-compass.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 150%;
  box-shadow: 0 3px 10px rgba(83, 58, 23, .10);
}

.site-header .brand-mark::before,
.site-header .brand-mark::after {
  display: none;
}

.site-header .brand-mark-core {
  visibility: hidden;
}

/* Canonical public navigation shared by every non-admin page. */
.site-header[data-shared-header] {
  --shared-header-height: 74px;
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  min-height: var(--shared-header-height);
  border-bottom: 1px solid rgba(212, 162, 58, .22);
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 7px 24px rgba(40, 28, 10, .055);
}

.site-header[data-shared-header] .site-header__inner {
  display: grid;
  grid-template-columns: minmax(188px, 232px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.5vw, 26px);
  width: min(100%, 1680px);
  min-height: var(--shared-header-height);
  margin: 0 auto;
  padding: 8px clamp(18px, 2.4vw, 38px);
}

.site-header[data-shared-header] .site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #0a2149;
  text-decoration: none;
}

.site-header[data-shared-header] .site-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  border: 1px solid rgba(212, 162, 58, .22);
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.site-header[data-shared-header] .site-brand__text {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.site-header[data-shared-header] .site-brand__text strong {
  overflow: hidden;
  color: #0a2149;
  font: 500 1.34rem/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .09em;
  text-overflow: ellipsis;
}

.site-header[data-shared-header] .site-brand__text > span {
  margin-top: 3px;
  color: #b7770f;
  font: 600 .62rem/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .2em;
}

.site-header[data-shared-header] .site-brand__text small {
  margin-top: 4px;
  overflow: hidden;
  color: #746a5e;
  font: 700 .42rem/1.1 "Inter", "Segoe UI", sans-serif;
  letter-spacing: .105em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-header[data-shared-header] .site-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 18px);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header[data-shared-header] .site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 0;
  color: #273348;
  font: 700 clamp(.64rem, .69vw, .74rem)/1 "Inter", "Segoe UI", sans-serif;
  letter-spacing: .005em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.site-header[data-shared-header] .site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 1.5px;
  border-radius: 2px;
  background: #d4a23a;
  content: "";
  transition: right .18s ease, left .18s ease;
}

.site-header[data-shared-header] .site-nav a:hover,
.site-header[data-shared-header] .site-nav a:focus-visible,
.site-header[data-shared-header] .site-nav a[aria-current="page"] {
  color: #b7770f;
  transform: translateY(-1px);
}

.site-header[data-shared-header] .site-nav a:hover::after,
.site-header[data-shared-header] .site-nav a:focus-visible::after,
.site-header[data-shared-header] .site-nav a[aria-current="page"]::after {
  right: 18%;
  left: 18%;
}

.site-header[data-shared-header] .site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.site-header[data-shared-header] .header-chat-button,
.site-header[data-shared-header] .header-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  font: 800 .68rem/1 "Inter", "Segoe UI", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.site-header[data-shared-header] .header-chat-button {
  border: 1px solid rgba(183, 119, 15, .48);
  color: #a76308;
  background: #fffefa;
}

.site-header[data-shared-header] .header-auth-button {
  border: 1px solid #c98a19;
  color: #fffdf8;
  background: linear-gradient(135deg, #d8a83f, #bb7911);
  box-shadow: 0 7px 16px rgba(183, 119, 15, .16);
}

.site-header[data-shared-header] .header-chat-button:hover,
.site-header[data-shared-header] .header-chat-button:focus-visible,
.site-header[data-shared-header] .header-auth-button:hover,
.site-header[data-shared-header] .header-auth-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(74, 48, 10, .14);
}

.site-header[data-shared-header] .header-chat-button.is-current,
.site-header[data-shared-header] .header-auth-button.is-current {
  outline: 2px solid rgba(212, 162, 58, .24);
  outline-offset: 2px;
}

.site-header[data-shared-header] .mobile-menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid rgba(212, 162, 58, .28);
  border-radius: 10px;
  color: #0a2149;
  background: #fffefa;
  cursor: pointer;
}

.site-header[data-shared-header] .mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 2px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.site-header[data-shared-header] .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header[data-shared-header] .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header[data-shared-header] .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.site-header[data-shared-header] .site-nav-backdrop {
  position: fixed;
  inset: var(--shared-header-height) 0 0;
  z-index: -1;
  display: none;
  width: 100%;
  height: auto;
  border: 0;
  background: rgba(10, 33, 73, .24);
  cursor: pointer;
}

.chat-page .chat-app-shell,
.profile-page .profile-app-shell {
  min-height: calc(100vh - 74px);
}

.chat-page .chat-left-sidebar,
.chat-page .chat-right-sidebar,
.profile-page .profile-left-sidebar,
.profile-page .profile-right-sidebar {
  top: 74px;
  height: calc(100vh - 74px);
}

@media (max-width: 1180px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header[data-shared-header] .site-header__inner {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .site-header[data-shared-header] .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 4;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-height: calc(100vh - var(--shared-header-height));
    overflow-y: auto;
    padding: 14px max(20px, calc((100vw - 900px) / 2));
    border-bottom: 1px solid rgba(212, 162, 58, .25);
    background: #fffdf8;
    box-shadow: 0 18px 34px rgba(10, 33, 73, .12);
  }

  .site-header[data-shared-header] .site-nav.is-open {
    display: grid;
  }

  .site-header[data-shared-header] .site-nav a {
    min-height: 48px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(212, 162, 58, .14);
    font-size: .78rem;
  }

  .site-header[data-shared-header] .site-nav a::after {
    display: none;
  }

  .site-header[data-shared-header] .site-nav a:hover,
  .site-header[data-shared-header] .site-nav a:focus-visible,
  .site-header[data-shared-header] .site-nav a[aria-current="page"] {
    padding-left: 23px;
    background: rgba(246, 232, 200, .25);
    transform: none;
  }

  .site-header[data-shared-header] .mobile-menu-toggle {
    display: grid;
  }

  body.menu-open .site-header[data-shared-header] .site-nav-backdrop {
    z-index: 2;
    display: block;
  }
}

@media (max-width: 680px) {
  .site-header[data-shared-header] {
    --shared-header-height: 68px;
  }

  .site-header[data-shared-header] .site-header__inner {
    gap: 7px;
    min-height: var(--shared-header-height);
    padding-inline: 10px;
  }

  .site-header[data-shared-header] .site-brand {
    gap: 7px;
  }

  .site-header[data-shared-header] .site-brand img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .site-header[data-shared-header] .site-brand__text strong {
    font-size: 1.05rem;
  }

  .site-header[data-shared-header] .site-brand__text > span {
    font-size: .5rem;
  }

  .site-header[data-shared-header] .site-brand__text small {
    display: none;
  }

  .site-header[data-shared-header] .site-header__actions {
    gap: 5px;
  }

  .site-header[data-shared-header] .header-chat-button,
  .site-header[data-shared-header] .header-auth-button {
    min-width: 48px;
    height: 36px;
    padding-inline: 9px;
    font-size: .62rem;
  }

  .site-header[data-shared-header] .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .site-header[data-shared-header] .site-nav {
    grid-template-columns: 1fr;
    max-height: calc(100vh - var(--shared-header-height));
    padding: 9px 14px 16px;
  }

  .site-header[data-shared-header] .site-nav-backdrop {
    inset-block-start: var(--shared-header-height);
  }

  .chat-page .chat-app-shell,
  .profile-page .profile-app-shell {
    min-height: calc(100vh - 68px);
  }

  .chat-page .chat-left-sidebar,
  .chat-page .chat-right-sidebar,
  .profile-page .profile-left-sidebar,
  .profile-page .profile-right-sidebar {
    top: 68px;
    height: calc(100vh - 68px);
  }
}

@media (max-width: 420px) {
  .site-header[data-shared-header] .site-brand img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-header[data-shared-header] .site-brand__text strong {
    font-size: .94rem;
  }

  .site-header[data-shared-header] .site-brand__text > span {
    font-size: .44rem;
    letter-spacing: .14em;
  }

  .site-header[data-shared-header] .header-chat-button,
  .site-header[data-shared-header] .header-auth-button {
    min-width: 44px;
    padding-inline: 7px;
    font-size: .57rem;
  }
}

.cta-contact-section,
#contact-form {
  scroll-margin-top: 92px;
}

/* Fixed, safe-area-aware public header and navigation on mobile. */
@media (max-width: 768px) {
  :root {
    --mobile-header-bar-height: 68px;
    --mobile-header-height: calc(var(--mobile-header-bar-height) + env(safe-area-inset-top, 0px));
    scroll-padding-top: calc(var(--mobile-header-height) + 12px);
  }

  body.has-shared-header {
    padding-top: var(--mobile-header-height);
  }

  body.has-shared-header.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.has-shared-header .page-shell {
    overflow: visible;
  }

  .cta-contact-section,
  #contact-form {
    scroll-margin-top: calc(var(--mobile-header-height) + 12px);
  }

  .cta-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .cta-contact-grid > *,
  .premium-submission-panel,
  #contact-form {
    min-width: 0;
    max-width: 100%;
  }

  .consultation-panel {
    min-height: auto;
    padding: 42px 28px;
  }

  .site-header[data-shared-header] {
    --shared-header-height: var(--mobile-header-bar-height);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    min-height: var(--mobile-header-height);
    padding: env(safe-area-inset-top, 0px) 0 0;
    border-bottom: 1px solid rgba(212, 162, 58, .28);
    background: rgba(255, 253, 248, .98);
    box-shadow: 0 5px 18px rgba(10, 33, 73, .10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-header[data-shared-header] .site-header__inner {
    position: relative;
    z-index: 10002;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: calc(var(--mobile-header-bar-height) - 1px);
  }

  .site-header[data-shared-header] .site-header__actions {
    position: relative;
    z-index: 10002;
  }

  .site-header[data-shared-header] .mobile-menu-toggle {
    position: relative;
    z-index: 10002;
    display: grid;
    flex: 0 0 auto;
    color: #0a2149;
    background: #fffefa;
  }

  .site-header[data-shared-header] .site-nav {
    position: fixed;
    top: var(--mobile-header-height);
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 10001;
    box-sizing: border-box;
    width: min(88vw, 460px);
    min-width: min(320px, 100vw);
    height: calc(100dvh - var(--mobile-header-height));
    max-height: none;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    background: #fffdf8;
    box-shadow: -12px 18px 34px rgba(10, 33, 73, .14);
    -webkit-overflow-scrolling: touch;
  }

  .site-header[data-shared-header] .site-nav-backdrop {
    position: fixed;
    inset: var(--mobile-header-height) 0 0;
    z-index: 10000;
    width: 100%;
    height: calc(100dvh - var(--mobile-header-height));
  }

  body.menu-open .site-header[data-shared-header] .site-nav-backdrop {
    z-index: 10000;
    display: block;
  }

  .chat-page .chat-app-shell,
  .profile-page .profile-app-shell {
    min-height: calc(100dvh - var(--mobile-header-height));
  }

  .chat-page .chat-left-sidebar,
  .chat-page .chat-right-sidebar,
  .profile-page .profile-left-sidebar,
  .profile-page .profile-right-sidebar {
    top: var(--mobile-header-height);
    height: calc(100dvh - var(--mobile-header-height));
  }
}
