/* Honest Surveys shared design system: calm, trustworthy, and reduced-motion aware. */
:root {
  --hs-navy: #0a2540;
  --hs-navy-2: #163a5f;
  --hs-gold: #d4af37;
  --hs-gold-soft: #fff7dc;
  --hs-green: #17633f;
  --hs-red: #c0392b;
  --hs-bg: #f4f5f7;
  --hs-text: #0a2540;
  --hs-muted: #607080;
  --hs-border: #e4eaee;
  --hs-surface: #fff;
  --hs-surface-muted: #eef3f7;
  --hs-focus: #ffbf00;
  --hs-space-1: 4px;
  --hs-space-2: 8px;
  --hs-space-3: 12px;
  --hs-space-4: 16px;
  --hs-space-5: 20px;
  --hs-space-6: 24px;
  --hs-content-gutter: clamp(16px, 4vw, 24px);
  --hs-radius-card: 14px;
  --hs-radius-button: 10px;
  --hs-shadow-card: 0 2px 8px rgba(10, 37, 64, .08);
  --hs-shadow-raised: 0 8px 22px rgba(10, 37, 64, .12);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--hs-bg); color: var(--hs-text); }
.hs-page-shell { width: min(100%, 760px); margin: 0 auto; padding-inline: var(--hs-content-gutter); }
.hs-surface { background: var(--hs-surface); border: 1px solid var(--hs-border); border-radius: var(--hs-radius-card); box-shadow: var(--hs-shadow-card); }
.hs-section { margin: var(--hs-space-6) var(--hs-content-gutter); }
.hs-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 20px 10px; }
.hs-section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.hs-section-heading p { margin: 0; color: var(--hs-muted); font-size: 12px; }
.hs-muted { color: var(--hs-muted); }
.hs-form-label { display: block; margin: 0 0 6px; color: var(--hs-text); font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.hs-trust-note { margin: 12px 16px; padding: 12px 14px; border: 1px solid #cfe3d5; border-radius: var(--hs-radius-button); background: #f0faf3; color: var(--hs-green); font-size: 13px; line-height: 1.5; }
.hs-status-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hs-status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hs-status-badge.is-demo { background: var(--hs-gold-soft); color: #6f5510; }
.hs-status-badge.is-pending { background: #fff4d6; color: #8a6412; }
.hs-status-badge.is-approved { background: #eaf7ef; color: var(--hs-green); }
.hs-status-badge.is-reversed, .hs-status-badge.is-unavailable { background: #fdecec; color: var(--hs-red); }
.hs-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; align-items: stretch; justify-content: space-around; min-height: 76px; min-height: calc(76px + env(safe-area-inset-bottom)); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); background: var(--hs-surface); border-top: 1px solid var(--hs-border); box-shadow: 0 -4px 16px rgba(10,37,64,.06); }
.hs-bottom-nav-item { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border-radius: var(--hs-radius-button); color: #687785; text-align: center; text-decoration: none; font-size: 12px; font-weight: 750; line-height: 1.2; transition: background 160ms ease-out, color 160ms ease-out; }
.hs-bottom-nav-item.is-active { background: var(--hs-surface-muted); color: var(--hs-text); }
.hs-bottom-nav-item:hover { color: var(--hs-text); }
.hs-bottom-nav-item:focus-visible { outline: 3px solid var(--hs-focus); outline-offset: -3px; }
.hs-bottom-nav-icon { width: 20px; height: 20px; margin-bottom: 3px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hs-bottom-nav-label { display: block; }
body:has(.hs-bottom-nav) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.hs-menu-btn { border-radius: 8px; transition: background 160ms ease-out, transform 160ms ease-out; }
.hs-menu-btn:hover, .hs-menu-btn:focus-visible { background: rgba(255,255,255,.12); }
.hs-menu-btn:active { transform: scale(.97); }
.hs-menu-drawer { box-shadow: -12px 0 32px rgba(10,37,64,.16); }
.hs-menu-list a:focus-visible, .hs-menu-list button:focus-visible, .hs-menu-card:focus-visible { background: #eef3f7; outline-offset: -3px !important; }
body.hs-menu-open { overflow: hidden; }

/* Existing motion contracts. The balance counter intentionally retains its blinking count-up. */
#page-loader { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10, 37, 64, .94); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease-out, visibility 180ms ease-out; z-index: 9999; }
#page-loader.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hs-loader-inner { display: grid; justify-items: center; gap: 14px; color: #fff; font-size: 13px; font-weight: 650; }
.hs-coin { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 30%, #fff6bd 0 8%, #f7dd8f 9% 25%, #d4af37 26% 67%, #97771b 68% 100%); border: 3px solid #fff0a5; box-shadow: 0 0 0 7px rgba(212,175,55,.20), 0 16px 35px rgba(0,0,0,.26); color: #0a2540; font-size: 19px; font-weight: 850; letter-spacing: -.08em; transform-style: preserve-3d; animation: hs-coin-spin 780ms linear infinite; }
@keyframes hs-coin-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes hs-cash-blink { 50% { opacity: .52; } }
@keyframes hs-progress-blink {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 4px rgba(255, 255, 255, .55), 0 0 10px rgba(192, 57, 43, .7); }
  50% { background-position: 100% 50%; box-shadow: 0 0 7px rgba(255, 255, 255, .95), 0 0 20px rgba(255, 76, 58, .95); }
}
.balance-amount.is-counting, [data-streak-counter].is-counting { animation: hs-cash-blink 260ms steps(2, end) infinite; }
.cashout-meter { position: relative; margin: 12px 0 8px; padding-top: 14px; }.progress-bar { position: relative; }.threshold-line { position: absolute; top: -6px; bottom: -6px; right: 0; width: 2px; background: rgba(255,255,255,.88); }.threshold-label { position: absolute; right: 0; top: -1px; transform: translateY(-100%); color: #f7dd8f; font-size: 11px; font-weight: 700; white-space: nowrap; }.progress-fill { width: 0; background: #c0392b; transition: width 2500ms cubic-bezier(.18,.82,.24,1); }.progress-fill.is-filling { background: linear-gradient(90deg, #c0392b 0%, #fff 48%, #ff4c3a 52%, #c0392b 100%); background-size: 220% 100%; animation: hs-progress-blink 420ms steps(2, end) infinite; }
@media (prefers-reduced-motion: reduce) { #page-loader { transition: none; }.hs-coin, .balance-amount.is-counting, [data-streak-counter].is-counting, .progress-fill.is-filling { animation: none; }.progress-fill, .tier-progress-fill, .hs-bottom-nav-item { transition: none; } body { animation: none !important; } }
body.hs-reduce-motion { animation: none !important; }
body:not(.hs-reduce-motion) { animation: hs-page-fade-in 260ms ease-out; }
@keyframes hs-page-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Accessibility preferences persist through the user's signed session and local device setting. */
body.hs-high-contrast, body.hs-high-contrast * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
body.hs-high-contrast a, body.hs-high-contrast button, body.hs-high-contrast input, body.hs-high-contrast select, body.hs-high-contrast textarea { color: #fff700 !important; text-decoration-thickness: 2px; }
body.hs-high-contrast .hs-coin { background: #fff700 !important; color: #000 !important; border-color: #fff !important; }
body.hs-large-text { font-size: 118% !important; }
body.hs-large-text input, body.hs-large-text select, body.hs-large-text button { font-size: 1em !important; }
body.hs-reduce-motion *, body.hs-reduce-motion *::before, body.hs-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
:focus-visible { outline: 3px solid #ffbf00 !important; outline-offset: 3px !important; }
.hs-settings { min-height: 100vh; background: #f4f5f7; color: #0a2540; padding-bottom: 42px; }
.hs-settings-header { background: #0a2540; color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.hs-settings-header a { color: #fff; text-decoration: none; font-weight: 800; }.hs-settings-header small { color: #d4af37; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; }
.hs-settings-card { max-width: 660px; margin: 22px auto; padding: 0 16px; }.hs-settings-card h1 { margin: 20px 0 6px; font-size: 26px; }.hs-settings-card > p { margin: 0 0 20px; color: #526477; line-height: 1.6; }
.hs-pref-group { background: #fff; border-radius: 13px; padding: 18px; margin: 13px 0; box-shadow: 0 1px 4px rgba(10,37,64,.09); }.hs-pref-group h2 { margin: 0 0 7px; font-size: 16px; }.hs-pref-group > p { color: #526477; font-size: 13px; line-height: 1.55; margin: 0 0 13px; }
.hs-language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.hs-language-option { border: 2px solid #dce3e9; padding: 13px; border-radius: 10px; cursor: pointer; }.hs-language-option:has(input:checked) { border-color: #d4af37; background: #fffdf2; }.hs-language-option input { margin-right: 7px; }.hs-language-option b { display: block; font-size: 14px; }.hs-language-option small { color: #526477; display: block; margin: 3px 0 0 24px; }
.hs-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #e9edf0; }.hs-switch-row:first-of-type { border-top: 0; }.hs-switch-row label { font-weight: 750; }.hs-switch-row small { display: block; color: #526477; font-weight: 400; line-height: 1.4; margin-top: 3px; }.hs-switch-row input { width: 20px; height: 20px; flex: none; }
.hs-save-button { width: 100%; border: 0; background: #0a2540; color: #fff; padding: 14px; border-radius: 10px; font-weight: 800; cursor: pointer; }.hs-save-button:active { transform: scale(.98); }

/* Hamburger menu: consistent across every authenticated page */
.hs-menu-btn { background: none; border: 0; min-width: 44px; min-height: 44px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.hs-menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.hs-menu-overlay { position: fixed; inset: 0; background: rgba(10,37,64,.55); opacity: 0; visibility: hidden; transition: opacity 180ms ease; z-index: 998; }
.hs-menu-overlay.is-open { opacity: 1; visibility: visible; }
.hs-menu-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 340px; background: #f4f5f7; z-index: 999; transform: translateX(100%); transition: transform 220ms cubic-bezier(.23,1,.32,1); overflow-y: auto; padding-bottom: 40px; }
.hs-menu-drawer.is-open { transform: translateX(0); }
.hs-menu-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.hs-menu-brand { color: var(--hs-navy); font-size: 14px; line-height: 1.3; }
.hs-menu-close { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; border-radius: var(--hs-radius-button); font-size: 26px; color: var(--hs-navy); cursor: pointer; line-height: 1; padding: 4px 8px; }
.hs-menu-close:focus-visible { outline: 3px solid var(--hs-focus); outline-offset: -3px; }
.hs-menu-hero { margin: 6px 18px 18px; background: linear-gradient(135deg,#0a2540,#163a5f); border-radius: 14px; padding: 18px; }
.hs-menu-hero a { display: flex; justify-content: space-between; align-items: center; color: #fff; text-decoration: none; }
.hs-menu-hero .hs-menu-hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #d4af37; font-weight: 800; }
.hs-menu-hero .hs-menu-hero-title { font-size: 19px; font-weight: 800; margin-top: 3px; }
.hs-menu-hero .arrow { color: #d4af37; font-size: 20px; }
.hs-menu-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px 18px; }
.hs-menu-section-label { margin: 16px 18px 8px; color: #89711e; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 850; }
.hs-menu-card { background: #fff; border-radius: 12px; padding: 14px 12px; text-decoration: none; color: #0a2540; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-align: center; font-size: 13px; font-weight: 700; }
.hs-menu-card small { display: block; font-weight: 400; color: #728091; font-size: 11px; margin-top: 3px; }
.hs-menu-list { background: #fff; margin: 0 18px; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hs-menu-list a, .hs-menu-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border-bottom: 1px solid #eee; text-decoration: none; color: #0a2540; font-size: 14px; background: #fff; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; cursor: pointer; }
.hs-menu-list a:last-child, .hs-menu-list button:last-child { border-bottom: none; }
.hs-menu-logout { margin: 14px 18px 0; }
.hs-menu-logout form { margin: 0; }
.hs-menu-logout button { width: 100%; min-height: 44px; background: #fdecec; color: #c0392b; border-radius: 12px; font-weight: 700; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .hs-menu-drawer, .hs-menu-overlay { transition: none; } }
@media (max-width: 420px) { .hs-menu-drawer { width: 92%; }.hs-menu-cards { gap: 8px; }.hs-menu-card { min-height: 44px; } }
@media (min-width: 768px) {
  .hs-page-shell { padding-inline: var(--hs-space-6); }
  .hs-bottom-nav { padding-inline: max(24px, calc((100vw - 760px) / 2)); }
}
@media (min-width: 1024px) {
  .hs-bottom-nav { padding-inline: max(32px, calc((100vw - 960px) / 2)); }
}
/* Header logo rendering: remove inline-image descender gaps and keep the wordmark compact. */
.header > a, .header-row > a, .head-row > a { display: block; line-height: 0; }
.header img.brand, .header img.brand-wordmark, .header-row img.brand, .head-row img.brand { display: block; height: auto; max-width: min(190px, 58vw); object-fit: contain; }

/* Shared bottom navigation icons remain readable at every breakpoint. */
.hs-bottom-nav-item { gap: 3px; }
.hs-bottom-nav-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-bottom-nav-item.is-active .hs-bottom-nav-icon { stroke-width: 2.2; }

/* Wave 1B auth surfaces: scoped so legacy recovery and member pages are unaffected. */
.auth-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--hs-bg);
  color: var(--hs-text);
}
.auth-page.auth-login-page { background: var(--hs-navy); }
.auth-page .auth-hero {
  background: linear-gradient(160deg, var(--hs-navy), var(--hs-navy-2));
  padding: clamp(22px, 6vw, 40px) var(--hs-content-gutter) clamp(42px, 8vw, 64px);
  text-align: center;
}
.auth-page .auth-wordmark {
  display: block;
  width: min(200px, 72vw);
  height: auto;
  margin: 0 auto clamp(10px, 2.5vw, 18px);
}
.auth-page .auth-otis {
  display: grid;
  place-items: center;
  width: min(160px, 42vw);
  height: clamp(132px, 42vw, 187px);
  margin: 0 auto 8px;
}
.auth-page .auth-otis img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth-page .auth-hero-title { margin: 0; color: #fff; font-size: clamp(18px, 4vw, 22px); font-weight: 800; letter-spacing: -.01em; }
.auth-page .auth-hero-sub { margin: 6px 0 0; color: #b9cbe0; font-size: 13px; line-height: 1.5; }
.auth-page .auth-content {
  width: min(100%, 760px);
  margin: -24px auto 0;
  padding: 0 var(--hs-content-gutter) clamp(28px, 7vw, 48px);
  position: relative;
}
.auth-page .auth-card {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 28px);
  background: var(--hs-surface);
  border: 1px solid rgba(228, 234, 238, .9);
  border-radius: var(--hs-radius-card);
  box-shadow: var(--hs-shadow-raised);
}
.auth-page .auth-card h1,
.auth-page .auth-card h2 { margin: 0 0 8px; color: var(--hs-navy); font-size: clamp(22px, 5vw, 28px); line-height: 1.15; }
.auth-page .auth-card-intro { margin: 0 0 22px; color: var(--hs-muted); font-size: 14px; line-height: 1.55; }
.auth-page .auth-rule { width: 42px; height: 3px; margin: 0 auto 20px; border-radius: 999px; background: var(--hs-gold); }
.auth-page .auth-field { margin: 0 0 16px; }
.auth-page .auth-field-label { display: block; margin: 0 0 7px; color: var(--hs-text); font-size: 12px; font-weight: 750; letter-spacing: .03em; line-height: 1.35; }
.auth-page .auth-field input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid #d7e0e7;
  border-radius: var(--hs-radius-button);
  background: #fff;
  color: var(--hs-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.auth-page .auth-field input:not([type="hidden"]):focus { border-color: var(--hs-gold); outline: 3px solid rgba(212, 175, 55, .24); outline-offset: 1px; }
.auth-page .auth-password-row { display: flex; align-items: stretch; gap: 8px; }
.auth-page .auth-password-row input { flex: 1 1 auto; min-width: 0; }
.auth-page .auth-password-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 72px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #c9d5de;
  border-radius: var(--hs-radius-button);
  background: #f8fafb;
  color: var(--hs-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.auth-page .auth-password-toggle[hidden] { display: none; }
.auth-page .auth-password-toggle:hover { background: var(--hs-surface-muted); }
.auth-page .auth-password-toggle:focus-visible { outline: 3px solid var(--hs-focus); outline-offset: 2px; }
.auth-page .auth-password-toggle svg { width: 18px; height: 18px; flex: none; }
.auth-page .auth-check-row { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: -3px 0 14px; color: var(--hs-muted); font-size: 14px; line-height: 1.4; }
.auth-page .auth-check-row input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--hs-navy); }
.auth-page .auth-turnstile { margin: 0 0 16px; }
.auth-page .auth-protection-note { margin: 0 0 16px; color: var(--hs-muted); font-size: 12px; line-height: 1.5; }
.auth-page .auth-submit {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--hs-radius-button);
  background: var(--hs-navy);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.auth-page .auth-submit:hover { background: var(--hs-navy-2); }
.auth-page .auth-submit:active { transform: translateY(1px); }
.auth-page .auth-submit:focus-visible { outline: 3px solid var(--hs-focus); outline-offset: 3px; }
.auth-page .auth-message { margin: 0 0 16px; padding: 11px 13px; border-radius: var(--hs-radius-button); font-size: 13px; line-height: 1.45; }
.auth-page .auth-message.error { background: #fdecec; color: var(--hs-red); }
.auth-page .auth-message.success { background: #eaf7ef; color: var(--hs-green); }
.auth-page .auth-links { display: grid; gap: 10px; margin-top: 18px; color: var(--hs-muted); font-size: 14px; line-height: 1.45; text-align: center; }
.auth-page .auth-links a { color: var(--hs-navy); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.auth-page .auth-links a:focus-visible { outline: 3px solid var(--hs-focus); outline-offset: 3px; border-radius: 3px; }
.auth-page .auth-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-page .auth-signup-header { padding: clamp(18px, 5vw, 28px) var(--hs-content-gutter) 18px; border-bottom: 1px solid var(--hs-border); background: var(--hs-surface); }
.auth-page .auth-signup-header a { display: block; width: fit-content; margin: 0 auto; color: var(--hs-navy); text-decoration: none; }
.auth-page .auth-signup-logo { display: block; width: min(300px, 78vw); height: auto; }
.auth-page .auth-signup-content { width: min(100%, 760px); margin: 0 auto; padding: clamp(20px, 5vw, 36px) var(--hs-content-gutter) 48px; }
.auth-page.auth-signup-page .auth-card { max-width: 520px; }
@media (min-width: 768px) {
  .auth-page .auth-content { padding-inline: var(--hs-space-6); }
  .auth-page .auth-signup-content { padding-inline: var(--hs-space-6); }
  .auth-page .auth-card { padding: 30px; }
}
@media (max-width: 380px) {
  .auth-page .auth-card { padding: 18px 16px; }
  .auth-page .auth-password-row { gap: 6px; }
  .auth-page .auth-password-toggle { min-width: 62px; padding-inline: 7px; }
  .auth-page .auth-password-toggle svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-field input:not([type="hidden"]), .auth-page .auth-submit { transition: none; }
  .auth-page .auth-submit:active { transform: none; }
}


/* HonestSurveys v2.0 member shell — navy, gold, and existing official logo assets. */
:root {
  --hs-v2-primary: #0b1e3b;
  --hs-v2-secondary: #143d74;
  --hs-v2-gold: #f7c843;
  --hs-v2-gold-dark: #d4a017;
  --hs-v2-gold-highlight: #ffe699;
  --hs-v2-surface: #fff;
  --hs-v2-border: #e6e8ed;
  --hs-v2-focus: #ffd24d;
  --hs-v2-shadow: 0 8px 24px rgba(11,30,59,.14);
}
.hs-v2-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 18% 0%, #184f8a 0, transparent 52%),
              linear-gradient(125deg, #06152d 0%, var(--hs-v2-primary) 48%, #053466 100%);
  border-bottom: 2px solid rgba(247,200,67,.74);
  box-shadow: 0 6px 20px rgba(11,30,59,.15);
}
.hs-v2-header::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -21px;
  width: 72%;
  height: 35px;
  border-top: 3px solid var(--hs-v2-gold);
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
  pointer-events: none;
  opacity: .96;
  z-index: 0;
}
/* Shared header markup contains the sweep, but only canonical pages opt in. */
.hs-v2-header-sweep { display: none; }
.hs-v2-header-inner { z-index: 1; position: relative; width: min(100%, 1120px); margin-inline: auto; padding: 12px clamp(16px,4vw,28px) 14px; }
.hs-v2-header-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.hs-v2-header-brand { display: flex; align-items: center; min-width: 0; max-width: 75%; border-radius: 10px; }
.hs-v2-header-brand { gap: 8px; }
.hs-v2-header-brand img { display:block; height:auto; object-fit:contain; }
.hs-v2-header-brand .hs-v2-header-coin { flex:0 0 56px; width:56px; height:56px; max-width:26%; }
.hs-v2-header-brand .hs-v2-header-wordmark { flex:0 1 146px; width:min(146px,100%); max-width:calc(100% - 64px); max-height:70px; object-position:left center; }
.hs-v2-header-brand:focus-visible { outline: 3px solid var(--hs-v2-focus); outline-offset: 4px; }
.hs-v2-header-status { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 11px; line-height: 1.35; }
.hs-v2-prototype-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border: 1px solid var(--hs-v2-gold); border-radius: 999px; color: var(--hs-v2-gold-highlight); font-weight: 800; }
.hs-v2-prototype-explainer { color: #dbe8f7; font-weight: 600; }
.hs-v2-menu-toggle { flex: 0 0 48px; align-items: center; min-height: 48px; min-width: 48px; border: 1px solid rgba(255,255,255,.23); border-radius: 12px; background: rgba(255,255,255,.07); }
.hs-v2-menu-toggle span { width: 23px; height: 2.5px; background: #fff; }
.hs-v2-menu-toggle:hover { background: rgba(247,200,67,.16); }
.hs-v2-menu-toggle:focus-visible { outline: 3px solid var(--hs-v2-focus); outline-offset: 3px; }

/* Preserve four existing destinations and accessible active state. */
.hs-bottom-nav {
  gap: 5px;
  width: min(100%,1120px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: linear-gradient(180deg,#052f5b 0%,var(--hs-v2-primary) 85%);
  border: 1px solid rgba(247,200,67,.4);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,.2);
}
.hs-bottom-nav-item { color: #f4f7ff; border: 1px solid transparent; border-radius: 12px; font-weight: 700; line-height: 1.18; }
.hs-bottom-nav-item.is-active {
  color: var(--hs-v2-primary);
  border-color: #e0a720;
  background: linear-gradient(180deg,#ffe998 0%,var(--hs-v2-gold) 48%,#eab435 100%);
  box-shadow: inset 0 1px 0 #fff3c7, 0 2px 7px rgba(0,0,0,.22);
}
.hs-bottom-nav-item:not(.is-active):hover { color: #fff; background: rgba(255,255,255,.13); }
.hs-bottom-nav-item:focus-visible { outline: 3px solid var(--hs-v2-focus); outline-offset: -3px; }
.hs-bottom-nav-icon { width: 22px; height: 22px; }

/* Existing app-ui.js still owns keyboard focus, overlay, close, and inert. */
.hs-menu-drawer { background: #f3f6fb; border-left: 2px solid rgba(247,200,67,.7); box-shadow: -14px 0 45px rgba(0,0,0,.32); }
.hs-menu-header { background: linear-gradient(120deg,var(--hs-v2-primary),var(--hs-v2-secondary)); padding: 20px 18px 16px; margin-bottom: 12px; }
.hs-menu-brand { color: #fff; font-size: 15px; }
.hs-menu-close { color: #fff; background: rgba(255,255,255,.12); }
.hs-menu-close:hover, .hs-menu-close:focus-visible { background: rgba(247,200,67,.24); }
.hs-menu-hero { background: linear-gradient(130deg,var(--hs-v2-primary),#0b4b83); border: 1px solid rgba(247,200,67,.45); box-shadow: var(--hs-v2-shadow); }
.hs-menu-hero .hs-menu-hero-label { color: var(--hs-v2-gold-highlight); }
.hs-menu-hero .arrow { color: var(--hs-v2-gold); }
.hs-menu-section-label { color: #745515; }
.hs-menu-card, .hs-menu-list { border: 1px solid var(--hs-v2-border); box-shadow: 0 3px 12px rgba(11,30,59,.09); }
.hs-menu-card:hover, .hs-menu-list a:hover { background: #fff8e6; }
.hs-menu-card:focus-visible, .hs-menu-list a:focus-visible, .hs-menu-list button:focus-visible { outline: 3px solid var(--hs-v2-focus); outline-offset: -3px; }
.hs-menu-list a, .hs-menu-list button { min-height: 46px; }
.hs-menu-logout button { min-height: 46px; }

/* Reusable primitives for subsequent page waves, not fake screenshots. */
.hs-v2-panel { background: var(--hs-v2-surface); color: var(--hs-v2-primary); border: 1px solid var(--hs-v2-border); border-radius: 18px; box-shadow: var(--hs-v2-shadow); }
.hs-v2-button-primary, .hs-v2-button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; }
.hs-v2-button-primary { border: 1px solid #d4a01c; color: var(--hs-v2-primary); background: linear-gradient(#ffe993,#f7c843 52%,#dfaa20); box-shadow: 0 3px 9px rgba(127,90,16,.18); }
.hs-v2-button-secondary { border: 1px solid #0b518a; color: #fff; background: linear-gradient(#164877,#0b1e3b); }
.hs-v2-button-primary:focus-visible, .hs-v2-button-secondary:focus-visible { outline: 3px solid var(--hs-v2-focus); outline-offset: 3px; }
.hs-v2-button-primary:disabled, .hs-v2-button-secondary:disabled { opacity: .54; cursor: not-allowed; }
@media (max-width:380px) {
  .hs-v2-header-inner { padding-inline: 14px; }
  .hs-v2-header-brand .hs-v2-header-coin { flex-basis:47px; width:47px; height:47px; }
  .hs-v2-header-brand .hs-v2-header-wordmark { max-width:calc(100% - 55px); }
  .hs-v2-header-brand { max-width: calc(100% - 64px); }
  .hs-v2-prototype-explainer { font-size: 10px; }
  .hs-bottom-nav { gap: 2px; padding-inline: 5px; }
  .hs-bottom-nav-item { min-width: 44px; padding-inline: 4px; font-size: 11px; }
}
@media (min-width:768px) {
  .hs-v2-header-inner { padding-block: 16px 18px; }
  .hs-v2-header-status { margin-top: 7px; }
  .hs-bottom-nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hs-v2-menu-toggle, .hs-bottom-nav-item { transition: none; } }
body.hs-reduce-motion .hs-v2-menu-toggle, body.hs-reduce-motion .hs-bottom-nav-item { transition: none; }


/* V2 brand correction: one restrained lockup on login, signup, and every member header.
   CSS/semantic text is intentional until final outlined vector export is approved. */
.hs-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-align: left;
  vertical-align: middle;
  user-select: none;
}
.hs-brand-coin {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ffe6a0;
  border-radius: 50%;
  color: #f8d472;
  background: linear-gradient(145deg, #ffe49a 0%, #ad7520 30%, #fff2be 58%, #b47a26 100%);
  box-shadow: 0 0 0 2px rgba(255,222,144,.16), 0 2px 8px rgba(0,0,0,.22);
}
.hs-brand-coin::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid rgba(255,230,160,.64);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 20%, #24456d 0%, #0a2340 46%, #071526 100%);
}
.hs-brand-coin > span { position: relative; font-size: 18px; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.hs-brand-wordmark { display: grid; gap: 3px; min-width: 0; line-height: .94; white-space: nowrap; }
.hs-brand-wordmark strong {
  display: block;
  font-size: clamp(17px,4.4vw,22px);
  font-weight: 850;
  letter-spacing: .11em;
  color: #f6f7fc;
}
.hs-brand-wordmark strong:last-child { color: #f5ca5f; letter-spacing: .12em; }
.hs-v2-header-brand .hs-brand-lockup { max-width: 100%; }
.hs-v2-header { border-bottom: 1px solid rgba(244,194,77,.5); box-shadow: 0 3px 14px rgba(6,21,45,.11); }
.hs-v2-header::after { display: none; }
.hs-v2-header-inner { padding-block: 9px 11px; }
.hs-v2-header-status { margin-top: 5px; gap: 8px; }
.hs-v2-header-status .hs-v2-prototype-pill { font-size: 10px; padding: 2px 8px; }
.hs-v2-header-status .hs-v2-prototype-explainer { font-size: 11px; font-weight: 500; }
.auth-page .auth-hero .hs-brand-lockup { display: flex; width: fit-content; margin: 0 auto 20px; }
.auth-page .auth-signup-header {
  background: linear-gradient(120deg,#081b34,#123c68);
  border-bottom: 1px solid rgba(247,200,67,.36);
  padding: 18px var(--hs-content-gutter);
}
.auth-page .auth-signup-header a { display: flex; width: fit-content; align-items: center; margin: auto; }
.hs-bottom-nav { border-radius: 0; border-color: rgba(247,200,67,.24); box-shadow: 0 -3px 12px rgba(6,21,45,.1); }
.hs-bottom-nav-item.is-active {
  color: #ffe18d;
  border-color: rgba(247,200,67,.32);
  background: rgba(247,200,67,.13);
  box-shadow: none;
}
@media (max-width:380px) {
  .hs-brand-lockup { gap: 7px; }
  .hs-brand-coin { width: 42px; height: 42px; flex-basis: 42px; }
  .hs-brand-wordmark strong { font-size: 17px; letter-spacing: .09em; }
}
@media (prefers-contrast: more) {
  .hs-brand-wordmark strong { color: #fff; }
  .hs-brand-wordmark strong:last-child, .hs-brand-coin { color: #ffe48b; }
  .hs-bottom-nav-item.is-active { outline: 2px solid #ffe48b; }
}
