/* site-bundle */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('Newsreader-Variable-Latin.woff2') format('woff2-variations');
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('PublicSans-Variable-Latin.woff2') format('woff2-variations');
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('GeistMono-Variable-Latin.woff2') format('woff2-variations');
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122;
}


:root {
  --brand: #0E5E5C;
  --brand-dark: #0A4948;
  --brand-light: #E8F4F3;
  --brand-mint: #5DD7CF;
  --brand-glow: rgba(14, 94, 92, 0.22);
  --text: #111110;
  --text-secondary: #5C5A54;
  --text-muted: #8A877D;
  --bg: #FFFFFF;
  --bg-soft: #F7F6F3;
  --bg-muted: #EEEDE8;
  --border: #E4E1D9;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --success: #0A4948;
  --success-bg: #E8F4F3;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(17, 17, 16, 0.06);
  --shadow-lg: 0 24px 60px rgba(14, 94, 92, 0.12);
  --shadow-brand: 0 8px 28px var(--brand-glow);
  --font: 'Public Sans', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --container: 1180px;
  --nav-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --glass: rgba(255, 255, 255, 0.82);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Navigation layout: /styles/nav.css (link in HTML) */
.nav--workspace .nav-inner {
  grid-template-columns: auto 1fr auto;
}
.nav-workspace-meta {
  justify-self: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .nav-workspace-meta { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 12px 32px var(--brand-glow); }
.btn-outline {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-secondary {
  background: var(--brand-light); color: var(--brand-dark);
  border: 1px solid rgba(14, 94, 92, 0.15);
}
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand);
}
.page-shell { padding: 32px 0 64px; }
.page-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.field .hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 94, 92, 0.12);
}
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field-error {
  font-size: 0.75rem; color: var(--danger); margin-top: 6px; display: none;
}
.field-error.show { display: block; }
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: var(--text-secondary);
}
.check-row input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-soft); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chip[aria-pressed="true"] {
  background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark);
}
.alert {
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 0.88rem; margin-bottom: 20px;
}
.alert-info { background: var(--brand-light); color: var(--brand-dark); border: 1px solid rgba(14, 94, 92, 0.2); }
.alert-warn { background: #FFF8E6; color: #7A5B00; border: 1px solid #F5E6B8; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECDCA; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(14, 94, 92, 0.25); }

/* Register layout */
.reg-layout {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  min-height: calc(100dvh - var(--nav-h) - var(--safe-top));
}
@media (max-width: 960px) {
  .reg-layout { grid-template-columns: 1fr; min-height: auto; }
  .reg-aside { border-right: none !important; border-bottom: 1px solid var(--border); }
}
.reg-aside {
  padding: 40px 32px;
  background: linear-gradient(165deg, var(--brand-dark) 0%, var(--brand) 45%, #0d7a76 100%);
  color: #fff; position: relative; overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.reg-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.reg-aside > * { position: relative; z-index: 1; }
.reg-aside h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin: 16px 0 12px;
}
.reg-aside p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 28px; }
.reg-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.reg-steps li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  transition: color 0.25s;
}
.reg-steps li.active { color: #fff; font-weight: 600; }
.reg-steps li.done { color: rgba(93, 215, 207, 0.95); }
.step-dot {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.reg-steps li.active .step-dot {
  background: rgba(255,255,255,0.15); border-color: var(--brand-mint);
}
.reg-steps li.done .step-dot { background: var(--brand-mint); color: var(--brand-dark); border-color: transparent; }
.reg-trust {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
}
.reg-trust strong { display: block; color: #fff; margin-bottom: 8px; }

.reg-main { padding: 40px 48px; background: var(--bg); }
@media (max-width: 640px) { .reg-main { padding: 28px 20px; } }
.reg-progress {
  height: 4px; background: var(--bg-muted); border-radius: 99px;
  margin-bottom: 32px; overflow: hidden;
}
.reg-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand));
  border-radius: inherit; transition: width 0.45s var(--ease-out);
}
.reg-panel { display: none; animation: fadeUp 0.4s var(--ease-out); }
.reg-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reg-panel h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.reg-panel .lead { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.95rem; }
.reg-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.doc-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; background: var(--bg-soft);
  transition: border-color 0.2s, background 0.2s;
}
.doc-zone.dragover { border-color: var(--brand); background: var(--brand-light); }
.doc-list { margin-top: 12px; text-align: left; font-size: 0.82rem; color: var(--text-secondary); }
.doc-list li { margin: 6px 0; }

.reg-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Login */
.auth-center {
  max-width: 440px; margin: 48px auto; padding: 40px;
}
.auth-center h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-center .lead { color: var(--text-secondary); margin-bottom: 28px; }

/* Browse workspace */
.app-layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 900px) { .app-layout { grid-template-columns: 1fr; min-height: auto; } }
.app-sidebar {
  background: var(--bg); border-right: 1px solid var(--border);
  padding: 24px 16px;
}
@media (max-width: 900px) {
  .app-sidebar {
    display: flex; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    border-right: none; border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }
  .app-sidebar::-webkit-scrollbar { display: none; }
  .app-nav-btn { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 10px 14px; font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .app-main { padding: 16px; }
  .lot-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal-sheet {
    max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
.app-nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border: none; border-radius: var(--radius);
  background: transparent; text-align: left; font-weight: 600;
  font-size: 0.85rem; color: var(--text-secondary); cursor: pointer;
}
.app-nav-btn:hover { background: var(--bg-soft); color: var(--text); }
.app-nav-btn.active { background: var(--brand-light); color: var(--brand-dark); }
.app-main { padding: 24px; }
.status-banner {
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.status-banner.pending { background: #FFF8E6; border: 1px solid #F5E6B8; }
.status-banner.verified { background: var(--brand-light); border: 1px solid rgba(14, 94, 92, 0.2); }
.lot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.lot-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  cursor: pointer;
}
.lot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.lot-card h3 { font-size: 1rem; margin: 8px 0 4px; }
.lot-meta { font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono); }
.lot-price { font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); margin-top: 12px; }
.lot-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  font-size: 0.68rem; font-weight: 700; padding: 4px 8px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-bev { background: var(--brand-light); color: var(--brand-dark); }
.badge-hot { background: #FEF3F2; color: var(--danger); }
.app-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
.app-toolbar h2 { font-size: 1.35rem; font-weight: 800; flex: 1; min-width: 200px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17, 17, 16, 0.45);
  display: none; align-items: flex-end; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-sheet {
  background: var(--bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-width: 560px; width: 100%; max-height: 85vh; overflow: auto;
  padding: 28px; box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s var(--ease-out);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.footer-mini {
  text-align: center; padding: 24px; font-size: 0.78rem; color: var(--text-muted);
}
.market-select {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 0.8rem; background: var(--bg);
}
#globalError:not([hidden]) { display: block; }
@media (prefers-reduced-motion: reduce) {
  .reg-panel, .modal-sheet, .lot-card { animation: none; transition: none; }
}


/* Site navigation — shared across marketing & app pages */
:root {
  --nav-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }

button, a, select, input, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand, #0E5E5C);
  outline-offset: 2px;
}

/* Minimal buttons used in nav (full set in gma.css on app pages) */
.nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
}
.nav .btn:active { transform: scale(0.98); }
.nav .btn-primary {
  background: linear-gradient(135deg, var(--brand, #0E5E5C) 0%, var(--brand-dark, #0A4948) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 94, 92, 0.2);
}
.nav .btn-outline {
  background: transparent;
  border: 1.5px solid var(--border, #E4E1D9);
  color: var(--text, #111110);
}
.nav .btn-outline:hover {
  border-color: var(--text-secondary, #5C5A54);
  background: var(--bg-soft, #F7F6F3);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(228, 225, 217, 0.9);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  @media (hover: hover) and (pointer: fine) {
    .nav {
      background: rgba(255, 255, 255, 0.82);
      -webkit-backdrop-filter: blur(16px) saturate(1.15);
      backdrop-filter: blur(16px) saturate(1.15);
    }
  }
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 24px rgba(17, 17, 16, 0.06);
  border-bottom-color: transparent;
}

.nav-inner {
  max-width: var(--container, 1180px);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 20px;
}

.logo {
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  letter-spacing: -0.03em;
  color: var(--text, #111110);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  justify-self: start;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--brand, #0E5E5C) 0%, var(--brand-dark, #0A4948) 100%);
  box-shadow: 0 6px 18px rgba(14, 94, 92, 0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text { display: inline-flex; align-items: baseline; gap: 0.22em; }
.logo-gm { font-style: normal; color: var(--brand, #0E5E5C); letter-spacing: -0.03em; }

.nav-primary {
  justify-self: center;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }

.nav-links a,
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary, #5C5A54);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-dropdown-btn:hover,
.nav-dropdown-btn:focus-visible {
  color: var(--text, #111110);
  background: var(--bg-soft, #F7F6F3);
}
.nav-links a.active {
  color: var(--brand-dark, #0A4948);
  background: var(--brand-light, #E8F4F3);
}

.nav-dropdown-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  margin-top: 2px;
  transition: transform 0.2s;
}
.nav-dropdown.open .nav-dropdown-btn::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border, #E4E1D9);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 17, 16, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 130;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary, #5C5A54);
  text-decoration: none;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--bg-soft, #F7F6F3);
  color: var(--text, #111110);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.nav-market-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #E4E1D9);
  background: var(--bg, #fff);
}
.nav-market-wrap label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8A877D);
  white-space: nowrap;
}
.nav-market,
.market-select {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #111110);
  padding: 6px 8px 6px 4px;
  cursor: pointer;
  max-width: 118px;
}
.nav-market:focus,
.market-select:focus {
  outline: 2px solid var(--brand, #0E5E5C);
  outline-offset: 2px;
  border-radius: 6px;
}

.live-dot {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--brand, #0E5E5C);
  background: var(--brand-light, #E8F4F3);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-dot.on { display: inline-flex; }
.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, #0E5E5C);
  animation: nav-pulse 2s ease infinite;
}
@keyframes nav-pulse {
  50% { opacity: 0.35; }
}

.nav-actions .btn {
  padding: 9px 16px;
  font-size: 0.8125rem;
}
.nav-actions .btn-outline.nav-login {
  padding: 9px 14px;
  border-color: transparent;
  background: transparent;
  color: var(--text-secondary, #5C5A54);
}
.nav-actions .btn-outline.nav-login:hover {
  color: var(--text, #111110);
  background: var(--bg-soft, #F7F6F3);
}
.nav-actions .btn-primary.nav-cta {
  padding: 9px 18px;
  box-shadow: 0 6px 20px rgba(14, 94, 92, 0.2);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border, #E4E1D9);
  border-radius: 10px;
  background: var(--bg, #fff);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text, #111110);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 16, 0.4);
  z-index: 118;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.nav-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  z-index: 119;
  background: #fff;
  border-left: 1px solid var(--border, #E4E1D9);
  box-shadow: -12px 0 40px rgba(17, 17, 16, 0.12);
  padding: calc(var(--nav-h) + var(--safe-top) + 12px) 24px calc(32px + var(--safe-bottom));
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-section {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #8A877D);
  margin: 20px 0 8px;
}
.nav-drawer-section:first-child { margin-top: 0; }
.nav-drawer-links {
  list-style: none;
  display: grid;
  gap: 4px;
}
.nav-drawer-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text, #111110);
  text-decoration: none;
}
.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  background: var(--brand-light, #E8F4F3);
  color: var(--brand-dark, #0A4948);
}
.nav-drawer-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #E4E1D9);
  display: grid;
  gap: 10px;
}
.nav-drawer-actions .btn { width: 100%; justify-content: center; }
.nav-drawer .nav-market-wrap {
  width: 100%;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nav-drawer .nav-market,
.nav-drawer .market-select {
  max-width: none;
  flex: 1;
}

@media (max-width: 1080px) {
  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav-primary { display: none; }
  .nav-actions .nav-login,
  .nav-actions .live-dot,
  .nav-actions .nav-market-wrap {
    display: none;
  }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 480px) {
  .logo { font-size: 0.8rem; }
  .logo-mark { width: 26px; height: 26px; }
  .nav-actions .btn-primary.nav-cta {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

/* App pages: slimmer bar */
.nav--app .nav-primary--minimal .nav-links { gap: 2px; }
.nav--app .nav-inner { grid-template-columns: auto 1fr auto; }
.nav--workspace .nav-actions .nav-login { display: inline-flex; }
@media (max-width: 1080px) {
  .nav--workspace .nav-actions .nav-login { display: none; }
}
@media (max-width: 720px) {
  .nav--workspace .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav--workspace .live-dot,
  .nav--workspace .nav-market-wrap { display: none; }
  .nav--workspace .nav-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot::before { animation: none; }
  .nav-drawer { transition: none; }
  .nav-dropdown-menu { transition: none; }
}

