/* BuySafe Escrow — shared site styles. Mobile-first; ink navy + brass accent. */

:root {
  --ink: #14171F;
  --ink-alt: #171B24;
  --navy: #1B1F2A;
  --navy-elev: #20242F;
  --navy-elev-2: #262B38;
  --border: #2E3341;
  --border-soft: rgba(46,51,65,0.7);
  --cream: #EDE6D6;
  --muted: #8B93A6;
  --muted-soft: #C9C9C9;
  --gold: #C9A227;
  --gold-bright: #E4BE49;
  --green: #4F7965;
  --green-bright: #7FB89E;
  --red: #B5533C;
  --red-bright: #D98B78;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.2), 0 8px 24px -12px rgba(0,0,0,0.5);
  --shadow-pop: 0 4px 14px rgba(201,162,39,0.22);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  background-image:
    radial-gradient(1100px 480px at 15% -8%, rgba(201,162,39,0.10), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(79,121,101,0.07), transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(201,162,39,0.35); color: var(--cream); }

.container { max-width: 480px; margin: 0 auto; padding: 0 18px; }

/* --- Top bar (desktop nav lives here too, shown/hidden by breakpoint) --- */
.site-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(27,31,42,0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 18px;
  transition: box-shadow 0.2s ease;
}
.site-topbar-inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo {
  font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.site-logo::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 10px rgba(201,162,39,0.6);
  flex-shrink: 0;
}
.site-logo b { color: var(--gold); font-weight: 700; }

.desktop-nav { display: none; gap: 26px; align-items: center; }
.desktop-dropdown { display: none; }
.desktop-nav a {
  font-size: 14.5px; color: var(--muted-soft); text-decoration: none;
  position: relative; padding: 4px 0; transition: color 0.15s ease;
}
.desktop-nav a:hover { color: var(--cream); }
.desktop-nav a.active { color: var(--gold); font-weight: 600; }
.desktop-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

/* --- Bottom tab bar (mobile/tablet) --- */
.bottom-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(20,23,31,0.88);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--border-soft);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.5);
}
.bottom-tabbar a {
  flex: 1; text-align: center; padding: 10px 4px 8px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  position: relative; transition: color 0.15s ease, transform 0.15s ease;
}
.bottom-tabbar a:active { transform: scale(0.94); }
.bottom-tabbar a.active { color: var(--gold); }
.bottom-tabbar a.active::before {
  content: ''; position: absolute; top: 0; width: 20px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--gold);
  box-shadow: 0 0 8px rgba(201,162,39,0.6);
}
.tab-icon { font-size: 20px; line-height: 1; transition: transform 0.15s ease; }
.bottom-tabbar a.active .tab-icon { transform: translateY(-1px); }
.tab-badge {
  position: absolute; margin-left: 14px; margin-top: -4px;
  background: var(--gold); color: var(--navy); font-size: 9px; font-weight: 700;
  border-radius: 8px; padding: 1px 5px;
}

main.site-main { padding: 24px 0 90px; min-height: 60vh; }

/* --- Breakpoint: hide bottom bar / show desktop nav on wider screens --- */
@media (min-width: 640px) {
  .container { max-width: 600px; padding: 0 24px; }
  .hero { padding: 56px 18px 40px; }
}
@media (min-width: 860px) {
  .bottom-tabbar { display: none; }
  .desktop-nav { display: flex; }
  .desktop-dropdown { display: block; }
  main.site-main { padding-bottom: 60px; }
  .container { max-width: 760px; padding: 0 32px; }
  .site-topbar { padding: 16px 18px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* --- Generic content blocks (CMS sections + app cards share this look) --- */
.card {
  background: linear-gradient(180deg, var(--navy-elev-2), var(--navy-elev));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .card:hover { border-color: rgba(201,162,39,0.35); }
}

.hero { text-align: center; padding: 44px 18px 32px; position: relative; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 6vw, 34px); line-height: 1.15;
  margin: 0 0 12px; color: var(--cream); letter-spacing: -0.2px;
}
.hero p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 0 22px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--gold); background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.3); border-radius: 20px;
  padding: 5px 12px; margin-bottom: 16px;
}

.btn {
  display: inline-block; padding: 14px 22px; border-radius: var(--radius-md); border: none;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  text-align: center; transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1B1500; box-shadow: var(--shadow-pop);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--navy-elev-2); color: var(--cream); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(201,162,39,0.4); background: #2A2F3D; }
.btn-secondary:active { transform: scale(0.98); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; transform: none; }

label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 7px; }
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%; background: var(--ink); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 13px 14px; color: var(--cream); font-size: 15px; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
input::placeholder, textarea::placeholder { color: #5A6274; }
textarea { resize: vertical; min-height: 90px; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B93A6' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

/* --- Segmented control (e.g. Buyer / Seller role picker) --- */
.segmented { display: flex; background: var(--ink); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 4px; gap: 4px; }
.segmented input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented label.seg-option {
  flex: 1; text-align: center; padding: 11px 10px; margin: 0; border-radius: 9px;
  font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.segmented input[type="radio"]:checked + label.seg-option {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1B1500;
}

/* --- Country + phone number input (escrow creation) --- */
.phone-field { margin-top: 8px; }
.phone-input-row { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.phone-prefix {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0 12px; color: var(--muted-soft); font-size: 15px; font-family: var(--font-mono);
  white-space: nowrap; flex-shrink: 0;
}
.phone-input-row input { flex: 1; margin: 0; }

.msg-error { background: rgba(181,83,60,0.15); border: 1px solid var(--red); padding: 13px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.msg-success { background: rgba(79,121,101,0.15); border: 1px solid var(--green); padding: 13px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

.pill { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill-gold { background: rgba(201,162,39,0.18); color: var(--gold); }
.pill-green { background: rgba(79,121,101,0.18); color: var(--green-bright); }
.pill-red { background: rgba(181,83,60,0.18); color: var(--red-bright); }

.code-display {
  font-family: var(--font-mono); font-size: 22px; letter-spacing: 1.5px; color: var(--gold);
  background: var(--ink); border: 1.5px dashed rgba(201,162,39,0.6); border-radius: 10px;
  padding: 16px 14px; text-align: center; margin: 12px 0;
  position: relative; cursor: pointer; user-select: all;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.code-display:hover { border-color: var(--gold); background: #171b24; }
.code-display.copied::after {
  content: 'Copied ✓'; position: absolute; top: -11px; right: 10px;
  background: var(--green); color: #EDF7F2; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 10px; letter-spacing: 0.3px;
}

.timeline-item { display: flex; gap: 12px; padding-bottom: 16px; }
.timeline-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-elev-2); border: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px; }
.timeline-dot.done { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1B1500; border: none; }
.timeline-line { width: 1px; flex: 1; background: var(--border); min-height: 20px; }

.rich-text-p { color: var(--muted-soft); line-height: 1.65; font-size: 15px; margin: 0 0 14px; }
.rich-text-p:last-child { margin-bottom: 0; }
.cta-card { text-align: center; }
.cta-heading { color: var(--cream); font-family: var(--font-display); font-size: 20px; margin: 0 0 16px; }

/* --- FAQ accordion (native <details>) --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 14px 4px;
  font-weight: 600; color: var(--cream); font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--gold); font-size: 20px; font-weight: 400; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { color: var(--muted); font-size: 14px; line-height: 1.6; padding: 0 4px 16px; }

/* --- Testimonials --- */
.testimonial-quote { color: #1B1F2A00; }
.testimonial-card { position: relative; overflow: hidden; }
.testimonial-mark { position: absolute; top: 6px; right: 16px; font-family: var(--font-display); font-size: 64px; color: rgba(201,162,39,0.1); line-height: 1; pointer-events: none; }
.testimonial-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1B1500; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

/* --- App top bar (transactional /app/* pages) --- */
.app-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(27,31,42,0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 18px; text-align: center;
}
.app-topbar span,
.app-topbar .app-topbar-home { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.1px; }
.app-topbar .app-topbar-sub { color: var(--muted); font-weight: normal; font-family: var(--font-body); font-size: 15px; }
.app-topbar-home { color: var(--cream); text-decoration: none; }
.app-topbar-home:hover { opacity: 0.85; }
.app-back-home {
  display: inline-block; color: var(--gold); text-decoration: none;
  font-size: 13.5px; font-weight: 600; margin: 16px 0 4px;
}
.app-back-home:hover { text-decoration: underline; }

/* --- Homepage app panel: trust card, activity ticker, quick actions,
   CTA row, how-it-works — replaces the old quick-actions grid --- */

.trust-card {
  background: linear-gradient(160deg, #232A22 0%, var(--navy-elev-2) 55%, var(--navy-elev) 100%);
  border: 1px solid rgba(127,184,158,0.22);
  border-radius: 22px; padding: 20px 20px 18px; margin: 4px 0 14px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.trust-card::before {
  content: ''; position: absolute; top: -40%; right: -20%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(127,184,158,0.16), transparent 70%);
  pointer-events: none;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--green-bright); background: rgba(127,184,158,0.12);
  border: 1px solid rgba(127,184,158,0.3); border-radius: 20px;
  padding: 4px 10px 4px 8px; margin-bottom: 12px;
}
.trust-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 6px rgba(127,184,158,0.9);
}
.trust-stat-label { color: var(--muted); font-size: 12.5px; margin-bottom: 3px; }
.trust-stat-value {
  font-family: var(--font-display); font-size: 30px; color: var(--cream); font-weight: 600;
  letter-spacing: -0.3px; margin-bottom: 2px;
}
.trust-stat-value span { color: var(--green-bright); font-size: 18px; }
.trust-stat-sub { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 320px; }

/* Live activity ticker */
.ticker-wrap {
  margin: 0 0 18px; padding: 10px 0;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  overflow: hidden; position: relative;
  background: rgba(255,255,255,0.015);
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--navy), transparent); }
.ticker-track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  animation: ticker 22s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted-soft);
  font-family: var(--font-mono);
}
.ticker-item .tick-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }
.ticker-item b { color: var(--cream); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* Section label used above quick actions / how it works */
.section-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}

/* Quick actions — buying + selling together, one row */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; }
.icon-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.icon-tile .squircle {
  width: 100%; aspect-ratio: 1; max-width: 58px; margin: 0 auto; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 6px 14px -6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.15s ease;
}
.icon-tile:active .squircle { transform: scale(0.94); }
.icon-tile .squircle.gold { background: linear-gradient(150deg, var(--gold-bright), var(--gold)); }
.icon-tile .squircle.slate,
.icon-tile .squircle.plain { background: linear-gradient(150deg, #323949, #262B38); border: 1px solid var(--border); }
.icon-tile .squircle.green { background: linear-gradient(150deg, var(--green-bright), var(--green)); }
.icon-tile .icon-label { font-size: 11.5px; font-weight: 600; color: var(--muted-soft); text-align: center; line-height: 1.25; }

/* CTA row — start a transaction / create seller link, side by side */
.cta-row { display: flex; gap: 10px; margin: 0 0 26px; }
.cta-row .btn { flex: 1; padding: 14px 10px; font-size: 13.5px; white-space: nowrap; }
.btn-mint {
  background: linear-gradient(180deg, rgba(127,184,158,0.14), rgba(127,184,158,0.04));
  border: 1px solid rgba(127,184,158,0.35); color: var(--green-bright);
}
.btn-mint:hover { border-color: rgba(127,184,158,0.55); }
.btn-mint:active { transform: scale(0.98); }

/* How it works — horizontal scroll steps */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 0 24px; padding: 0 0 4px;
  scroll-snap-type: x mandatory;
}
.step-card {
  scroll-snap-align: start; flex: 0 0 150px;
  background: linear-gradient(180deg, var(--navy-elev-2), var(--navy-elev));
  border: 1px solid var(--border); border-radius: 16px; padding: 14px;
}
.step-card .step-num { font-family: var(--font-display); font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.step-card .step-title { font-size: 13.5px; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.step-card .step-desc { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

@media (min-width: 640px) {
  .icon-grid { gap: 16px; }
}

/* --- Two-step confirmation panels (dispute self-resolution actions) --- */
.confirm-panel {
  display: none; margin-top: 4px;
}
.confirm-panel.open { display: block; }
.confirm-text {
  font-size: 13.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.5;
}
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions form { flex: 1; margin: 0; }
.confirm-actions .btn-block { margin-top: 0; }

/* ============================================================
   Mobile hamburger button
   ============================================================ */
.mob-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mob-menu-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(201,162,39,0.4); }
.mob-menu-btn span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mob-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mob-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 860px) { .mob-menu-btn { display: none !important; } }

/* ============================================================
   Drawer overlay
   ============================================================ */
.mob-drawer-overlay {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mob-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   Slide-in drawer
   ============================================================ */
.mob-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
  width: min(300px, 85vw);
  background: var(--navy-elev);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mob-drawer-logo { font-family: var(--font-display); font-size: 17px; color: var(--cream); }
.mob-drawer-logo b { color: var(--gold); }

.mob-drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.mob-drawer-close:hover { background: rgba(255,255,255,0.12); color: var(--cream); }

.mob-drawer-body { padding: 10px 0 40px; flex: 1; overflow-y: auto; }

.mob-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; color: var(--muted-soft);
  text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background 0.12s, color 0.12s; position: relative;
}
.mob-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--cream); }
.mob-nav-item.active { color: var(--gold); font-weight: 600; background: rgba(201,162,39,0.08); }
.mob-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}

.mob-nav-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }

.mob-badge {
  margin-left: auto; background: rgba(201,162,39,0.18); color: var(--gold);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

.mob-nav-parent {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 20px; color: var(--muted-soft);
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; font-family: inherit;
  text-align: left; transition: background 0.12s, color 0.12s;
}
.mob-nav-parent:hover { background: rgba(255,255,255,0.05); color: var(--cream); }
.mob-nav-group.open .mob-nav-parent { color: var(--gold); }

.mob-chevron { margin-left: auto; flex-shrink: 0; color: var(--muted); transition: transform 0.22s ease; }
.mob-nav-group.open .mob-chevron { transform: rotate(180deg); color: var(--gold); }

.mob-nav-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1);
  background: rgba(0,0,0,0.15);
}
.mob-nav-group.open .mob-nav-sub { max-height: 400px; }

.mob-nav-child {
  display: block; padding: 11px 20px 11px 54px;
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color 0.12s, background 0.12s;
}
.mob-nav-child:hover { color: var(--cream); background: rgba(255,255,255,0.04); }

/* ============================================================
   Desktop dropdown (hover, 860px+)
   ============================================================ */
.desktop-dropdown { position: relative; }
.desktop-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: var(--navy-elev-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 50;
  padding: 6px 0; overflow: hidden;
}
.desktop-dropdown:hover .desktop-dropdown-menu { display: block; }
.desktop-dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--muted-soft);
  text-decoration: none; font-size: 14px; white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.desktop-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--cream); }

/* --- Pages directory (pages.php) --- */
.page-heading { padding: 28px 0 20px; }
.page-heading h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--cream); margin: 0; }

.page-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, var(--navy-elev-2), var(--navy-elev));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  text-decoration: none; color: inherit;
  transition: border-color 0.18s, transform 0.15s;
}
.page-link:hover { border-color: rgba(201,162,39,0.35); transform: translateY(-1px); }
.page-link:active { transform: scale(0.98); }
.page-link-text { min-width: 0; }
.page-link-title { font-size: 15px; font-weight: 600; color: var(--cream); }
.page-link-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.page-link-arrow { color: var(--gold); font-size: 20px; flex-shrink: 0; opacity: 0.8; }
