/* ═══════════════════════════════════════════════════════════════════════
   BlockBuyer — Django template design system
   Matches the Next.js front end: real brand (olive #768f1b / lime #9bc73c /
   gold #efc330 / silver / cream), editorial serif headings, glass + depth.
   Fully self-contained: no web fonts, no external images → zero extra
   network requests (fast on every device).
   ═════════════════════════════════════════════════════════════════════ */
:root {
  /* Brand greens */
  --pine-950: #1f2608;
  --pine-900: #2c350b;
  --pine-800: #3d4a0e;
  --pine-700: #5a6d14;   /* primary action */
  --pine-600: #768f1b;   /* THE brand green */
  --pine-500: #8aa62c;
  --pine-400: #9bc73c;   /* logo lime */
  --pine-100: #e8f0c8;
  --pine-50:  #f4f8e3;
  /* Warm neutrals */
  --cream: #faf9f5;
  --sand: #f2f0e9;
  --sand-deep: #e6e2d6;
  --ink: #1c1e17;
  --ink-soft: #4c5145;
  --ink-faint: #8b8f82;
  --line: #e6e3d8;
  /* Gold accent */
  --gold: #c5a026;
  --gold-soft: #f8eec6;
  /* Status */
  --good: #5a6d14;
  --warn: #a16207;
  --bad: #b3261e;

  /* Glass system (High-End Polished Glassy revision, 2026-07-12)
     Three elevations only: page (flat ambient) · card · overlay. */
  --glass-surface: linear-gradient(180deg, rgb(255 255 255 / 0.84), rgb(255 255 255 / 0.62));
  --glass-surface-strong: linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(255 255 255 / 0.78));
  --glass-tint: rgb(255 255 255 / 0.62);
  --glass-border: rgb(255 255 255 / 0.68);
  --glass-ring: 0 0 0 1px rgb(28 30 23 / 0.045);
  --glass-hairline: inset 0 1px 0 rgb(255 255 255 / 0.85);
  --glass-fallback: #ffffffe6;
  --lift: translateY(-2px);

  --shadow-sm: 0 1px 2px rgb(28 30 23 / 0.05);
  --shadow-card: 0 1px 2px rgb(28 30 23 / 0.05), 0 10px 30px -14px rgb(28 30 23 / 0.22);
  --shadow-card-hover: 0 2px 4px rgb(28 30 23 / 0.07), 0 18px 44px -14px rgb(60 74 14 / 0.30);
  --shadow-pop: 0 24px 60px -18px rgb(31 38 8 / 0.42);
  --radius: 14px;
  --radius-lg: 22px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Anchor the dark footer to the viewport bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* the full-bleed account menu uses 100vw, which includes the scrollbar
     gutter — clip the stray sliver instead of growing a horizontal scroll */
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  /* Ambient light (spec §2.3): one still, soft glow pair per page —
     lime top-left, gold bottom-right — gives the glass something to catch. */
  background:
    radial-gradient(1150px 560px at -6% -8%, rgb(155 199 60 / 0.16), transparent 62%),
    radial-gradient(1050px 640px at 106% 105%, rgb(197 160 38 / 0.13), transparent 60%),
    radial-gradient(900px 520px at -4% 108%, rgb(118 143 27 / 0.07), transparent 55%),
    radial-gradient(760px 420px at 88% -4%, rgb(244 248 227 / 0.9), transparent 58%),
    var(--cream);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--pine-100); }

/* ─── Layout ─────────────────────────────────────────────────────────── */
main {
  width: 100%;
  max-width: 940px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  flex: 1 0 auto;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) { main { animation: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─── Header (glassy, sticky) ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.5rem;
  background: rgb(250 249 245 / 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -0.01em; color: var(--pine-700); text-decoration: none;
}
.brand-logo { height: 34px; width: auto; display: block; }
nav { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  font-size: 0.93rem; padding: 0.45rem 0.8rem; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover { background: var(--sand); color: var(--ink); }
nav a.cta, .cta {
  background: var(--pine-700); color: #fff !important;
  padding: 0.55rem 1.1rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
nav a.cta:hover, .cta:hover {
  background: var(--pine-600); transform: translateY(-1px); box-shadow: var(--shadow-card);
}
.nav-user {
  color: var(--pine-800); font-size: 0.86rem; font-weight: 600;
  background: var(--pine-50); padding: 0.35rem 0.75rem; border-radius: 999px;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inline-form { display: inline; }

/* ─── Typography ─────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; font-size: 2.3rem; margin: 0 0 0.4rem;
}
h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 1.5rem; margin: 2rem 0 0.6rem;
}
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
a { color: var(--pine-700); text-decoration-color: color-mix(in srgb, var(--pine-700) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--pine-600); }
.muted { color: var(--ink-faint); }
p { margin: 0.6rem 0; }

/* ─── Buttons ────────────────────────────────────────────────────────── */
button, .btn {
  background: var(--pine-700); color: #fff; border: 0;
  padding: 0.65rem 1.3rem; border-radius: 999px; font-size: 0.98rem;
  font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  font-family: inherit;
}
button:hover, .btn:hover {
  background: var(--pine-600); transform: translateY(-1px); box-shadow: var(--shadow-card);
}
button:active, .btn:active { transform: translateY(0); }
button.linklike {
  background: none; color: var(--ink-soft); padding: 0.45rem 0.8rem;
  font-size: 0.93rem; font-weight: 500; box-shadow: none; border-radius: 999px;
}
button.linklike:hover { background: var(--sand); color: var(--ink); text-decoration: none; transform: none; }
button.voted, button.secondary {
  background: var(--pine-100); color: var(--pine-800); box-shadow: none;
}
button.voted:hover, button.secondary:hover { background: var(--pine-50); }
button.danger { background: var(--bad); }

/* ─── Forms ──────────────────────────────────────────────────────────── */
.field { margin: 1.1rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.field input, .field select, .field textarea, input[type="text"], input[type="email"],
input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; max-width: 460px; padding: 0.65rem 0.85rem;
  border: 1px solid var(--line); border-radius: 10px; font-size: 1rem;
  font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--pine-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine-400) 30%, transparent);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
/* per-deal terms acceptance row (SEC SOP): checkbox + rich label */
.accept-row {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin: 1.2rem 0 0.9rem; max-width: 560px;
  background: rgb(255 255 255 / 0.55); border: 1px solid rgb(28 30 23 / 0.1);
  border-radius: 12px; padding: 0.85rem 1rem; cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85);
}
.accept-row input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; max-width: none; margin-top: 0.2rem;
  accent-color: #4285F4; flex: 0 0 auto; cursor: pointer;
}
.accept-row span { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.errors { color: var(--bad); margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }

/* ─── Cards & panels ─────────────────────────────────────────────────── */
.panel, .card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-card); margin: 1.25rem 0;
}
.auth-card {
  max-width: 440px; margin: 3rem auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 2rem; box-shadow: var(--shadow-pop);
}
.auth-card h1 { font-size: 1.75rem; }
.auth-card .field input { max-width: none; }
.auth-card button[type="submit"], .auth-card .btn { width: 100%; margin-top: 0.5rem; padding: 0.8rem; }
.auth-alt { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-faint); }

/* ─── Messages / flash ───────────────────────────────────────────────── */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li {
  padding: 0.75rem 1rem; border-radius: 12px; margin-bottom: 0.5rem;
  background: var(--pine-50); border: 1px solid var(--pine-100); color: var(--pine-900);
  font-weight: 500;
}
.messages li.error { background: #fdeceb; border-color: #f3c9c6; color: #7d1e18; }
.status-ok { color: var(--good); font-weight: 600; }
.status-bad { color: var(--bad); font-weight: 600; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 1rem 0 2rem; }
.hero h1 { font-size: 2.8rem; }
.hero h1 em { font-style: italic; color: var(--pine-600); }

/* ─── Offerings grid & cards ─────────────────────────────────────────── */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.deal-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  background: #fff; box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.deal-card .deal-banner {
  height: 116px; background: linear-gradient(135deg, #23231f, var(--pine-800));
  position: relative;
}
.deal-card .deal-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.deal-card h2 { margin: 0.2rem 0; font-size: 1.2rem; }

/* ─── Badges ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--sand); color: var(--ink-soft);
}
.badge-open, .badge-draft { background: var(--pine-100); color: var(--pine-800); }
.badge-funded { background: var(--gold-soft); color: var(--gold); }
.badge-closed { background: var(--sand-deep); color: var(--ink-soft); }
.badge-cancelled { background: #fdeceb; color: #7d1e18; }

/* ─── Progress bar (gradient) ────────────────────────────────────────── */
.progress { height: 9px; background: var(--sand-deep); border-radius: 999px; margin: 0.6rem 0; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--pine-600), var(--pine-400));
  transition: width 0.7s cubic-bezier(0.22,1,0.36,1);
}

/* ─── Tables ─────────────────────────────────────────────────────────── */
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.25rem 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--sand); font-weight: 700; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: var(--pine-50); }

/* ─── Stat tiles ─────────────────────────────────────────────────────── */
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0; }
.stat {
  flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm);
}
.stat .stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--pine-800); }
.stat .stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-weight: 600; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 5rem; padding: 2.5rem 1.5rem; background: #141412; color: rgb(255 255 255 / 0.55);
  font-size: 0.88rem; text-align: center;
}
.site-footer p { margin: 0.4rem 0; }
.footer-legal { display: flex; gap: 1.4rem; justify-content: center; margin: 0.8rem 0; flex-wrap: wrap; }
.footer-legal a { color: rgb(255 255 255 / 0.7); text-decoration: none; font-size: 0.85rem; }
.footer-legal a:hover { color: var(--pine-400); }
.footer-disclaimer { max-width: 660px; margin: 0.8rem auto 0; font-size: 0.76rem; color: rgb(255 255 255 / 0.4); line-height: 1.6; }
.footer-disclaimer a { color: rgb(255 255 255 / 0.6); }

/* ─── Draft banner ───────────────────────────────────────────────────── */
.draft-banner {
  background: var(--gold-soft); color: #7a611a; border: 1px solid #ecd9a0;
  padding: 0.7rem 1rem; border-radius: 12px; font-size: 0.86rem; margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ─── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 0.5rem; align-items: stretch; }
  nav { justify-content: center; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  main { margin-top: 1.5rem; }
}

/* ─── Money input with $ prefix + live comma formatting ──────────────── */
.money-input { position: relative; max-width: 460px; }
.money-input .money-prefix {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); font-weight: 600; pointer-events: none; font-size: 1.05rem;
}
.money-input .money-field {
  width: 100%; padding: 0.7rem 0.9rem 0.7rem 1.9rem; font-size: 1.15rem;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}

/* ─── Privacy note + No-Data badge ───────────────────────────────────── */
.privacy-note {
  margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: center;
}
.privacy-note p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.no-data-badge { flex: 0 0 auto; line-height: 0; filter: drop-shadow(0 6px 14px rgb(60 74 14 / 0.22)); }
.no-data-badge svg { display: block; }
@media (max-width: 520px) {
  .privacy-note { flex-direction: column; text-align: center; }
}

/* Footer badge placement (matches legacy site: badge in the footer) */
.footer-badge { display: flex; justify-content: center; margin: 0.5rem 0 1rem; }
.footer-badge .no-data-badge svg { width: 92px; height: 92px; }

/* ═══ ACCOUNT AREA — production-style (RaiseCentral/CloseCentral/BragBoard) ═══ */
/* One row across the whole page, NEVER wraps (Ed 2026-07-12). Full-bleed
   strip; item padding scales with the viewport so all role menus fit. */
.account-menu {
  display: flex; gap: 0.1rem; flex-wrap: nowrap; align-items: stretch;
  justify-content: center;
  width: 100vw; margin: 0 0 1.5rem calc(50% - 50vw);
  padding: 0 1.5rem;
  border-bottom: 2px solid var(--line);
}
.account-menu a {
  flex: 0 0 auto; white-space: nowrap;
  padding: 0.65rem clamp(0.45rem, 1.1vw, 1.1rem);
  font-weight: 600; font-size: clamp(0.78rem, 1.05vw, 0.95rem); color: var(--ink-soft);
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.account-menu a:hover { color: var(--pine-700); }
.account-menu a.active { color: var(--pine-700); border-bottom-color: var(--pine-600); }
@media (max-width: 1000px) {
  .account-menu { gap: 0; }
  .account-menu a { font-size: 0.76rem; padding: 0.6rem 0.42rem; }
}
.account-menu .menu-drop { display: inline-flex; align-items: stretch; }
.account-menu .menu-drop > a { display: flex; align-items: center; }

.dash-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.75rem; align-items: start; }
.dash-columns > * { min-width: 0; }
@media (max-width: 820px){ .dash-columns { grid-template-columns: 1fr; } }
.box-heading {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem; color: var(--pine-900);
}
.status-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
}
.status-box .box-heading { margin-top: 0; }
.status-box.empty { text-align: center; color: var(--ink-faint); }
.status-items { display: flex; flex-direction: column; gap: 0.75rem; }
.status-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.status-item:last-child { border-bottom: 0; }
.status-item .item-name { color: var(--ink-soft); font-weight: 500; }
.status-item .item-count { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--pine-800); }

.stage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stage-card {
  display: block; text-decoration: none; text-align: center; padding: 1.4rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; color: var(--ink);
}
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.stage-card .stage-n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.stage-card.raise .stage-n { color: var(--pine-600); }
.stage-card.close .stage-n { color: var(--gold); }
.stage-card.brag .stage-n { color: var(--ink-soft); }
.stage-card .stage-label { font-weight: 700; margin-top: 0.4rem; }
.stage-card .stage-desc { font-size: 0.8rem; color: var(--ink-faint); }

.dash-side .side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
}
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { text-decoration: none; font-weight: 500; }

/* lifecycle deal rows */
.deal-rows { display: flex; flex-direction: column; gap: 1rem; }
.deal-row {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 1.25rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-card);
}
.deal-row-banner { display: none; }
.deal-row::before { content: ""; grid-row: 1; width: 6px; height: 100%; border-radius: 3px; background: var(--pine-400); }
.deal-row-body h2 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.deal-row-body h2 a { text-decoration: none; }
.deal-row-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.deal-row-stats .you-invested { color: var(--pine-700); font-weight: 700; }
.deal-row-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.deal-row-actions .btn { text-align: center; text-decoration: none; white-space: nowrap; }
@media (max-width:640px){ .deal-row { grid-template-columns: 1fr; } .deal-row::before { display:none; } }

/* investment status pills */
.stat-box {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem;
  font-weight: 700; text-transform: capitalize; background: var(--sand); color: var(--ink-soft);
}
.stat-box.settled, .stat-box.funded_escrow { background: var(--pine-100); color: var(--pine-800); }
.stat-box.committed, .stat-box.signed { background: var(--gold-soft); color: var(--gold); }
.stat-box.cancelled, .stat-box.refunded { background: #fdeceb; color: #7d1e18; }
.deal-banner { height: 44px; display: flex; align-items: center; padding: 0 1rem;
  background: linear-gradient(135deg, #23231f, var(--pine-800)); }

/* ── Gamification profileBox (the badge ladder) ─────────────────────────── */
.profile-box {
  background: linear-gradient(135deg, #ffffff 0%, #f7fae9 100%);
  border: 1px solid var(--line, #e3e3e0);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0 26px;
  box-shadow: 0 1px 2px rgb(26 26 26 / 0.05), 0 10px 28px -14px rgb(60 74 14 / 0.25);
}
.pb-head { display: flex; gap: 18px; align-items: center; }
.pb-medallion { position: relative; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgb(60 74 14 / 0.28)); }
.pb-level-chip {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: #3d4a0e; color: #fdfdf8; font-weight: 800; font-size: 0.66rem;
  letter-spacing: 0.08em; padding: 2px 10px; border-radius: 999px; border: 2px solid #fdfdf8;
  white-space: nowrap;
}
.pb-badge-name { font-family: var(--font-display, Georgia, serif); font-size: 1.5rem; font-weight: 650; color: #2c350b; }
.pb-next { color: #6b6b64; margin-top: 2px; }
.pb-next strong { color: #5a6d14; }
.pb-next.pb-summit { color: #a87b0a; font-weight: 600; }
.pb-count { margin-top: 4px; font-size: 0.82rem; font-weight: 700; color: #768f1b; text-transform: uppercase; letter-spacing: 0.06em; }

/* production colorTag — 5 segments, one per task */
.color-tag { display: flex; gap: 5px; margin: 18px 0 12px; }
.g-seg { height: 12px; flex: 1; border-radius: 999px; background: #e9e9e3; transition: background 0.3s, box-shadow 0.3s; }
.g-seg.on.orange { background: #ffb20d; box-shadow: 0 0 8px rgb(255 178 13 / 0.5); }
.g-seg.on.yellow { background: #ffd927; box-shadow: 0 0 8px rgb(255 217 39 / 0.5); }
.g-seg.on.green  { background: #aaf654; box-shadow: 0 0 8px rgb(170 246 84 / 0.5); }
.g-seg.on.red    { background: #ff6363; box-shadow: 0 0 8px rgb(255 99 99 / 0.5); }
.g-seg.on.silver { background: #27aff5; box-shadow: 0 0 8px rgb(39 175 245 / 0.5); }

.pb-tasks { list-style: none; margin: 0; padding: 0; }
.pb-tasks li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e6e6de; }
.pb-tasks li:last-child { border-bottom: 0; }
.pb-tasks li.done .pb-task-label { color: #9b9b93; text-decoration: line-through; text-decoration-color: #c9d9a3; }
.pb-task-label { flex: 1; font-size: 0.94rem; }
.pb-task-label a { color: #5a6d14; font-weight: 600; }
.pb-progress { font-style: normal; margin-left: 8px; font-size: 0.78rem; font-weight: 700; color: #768f1b; background: #eef4dc; border-radius: 999px; padding: 1px 8px; }
.pb-track-btn {
  border: 1px solid #c9d9a3; background: #fff; color: #5a6d14; font-size: 0.74rem; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; cursor: pointer; transition: all 0.15s;
}
.pb-track-btn:hover { background: #5a6d14; color: #fff; border-color: #5a6d14; }

.pb-ladder { display: flex; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #ecece5; }
.pb-ladder .rung {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.74rem; font-weight: 800; color: #9b9b93; background: #efefe9; cursor: help;
}
.pb-ladder .rung.past { background: #c9d9a3; color: #3d4a0e; }
.pb-ladder .rung.here { background: #5a6d14; color: #fff; box-shadow: 0 0 0 3px #e8f0c8; }

/* ── BragBoard operator evaluation ──────────────────────────────────────── */
.eval-box { margin-top: 14px; background: #fbfbf7; border: 1px solid #ecece4; border-radius: 14px; padding: 16px 18px; }
.eval-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.eval-title { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #3d4a0e; }
.eval-rating .star { color: #ddddd3; font-size: 1rem; }
.eval-rating .star.on { color: #f2a900; text-shadow: 0 1px 2px rgb(242 169 0 / 0.4); }
.eval-rating b { margin-left: 4px; }
.eval-rating em { color: #8b8b85; font-style: normal; font-size: 0.85rem; }
.eval-pending { margin: 10px 0 0; font-size: 0.88rem; }

.meters { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 760px) { .meters { grid-template-columns: repeat(3, 1fr); } }
.meter-label { font-size: 0.82rem; font-weight: 700; color: #4a4a46; }
.meter-label span { display: block; font-weight: 500; color: #8b8b85; font-size: 0.76rem; margin-top: 1px; }
.meter-track { height: 10px; border-radius: 999px; background: linear-gradient(#e9e9e2, #f2f2ec); margin-top: 6px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.meter-fill.green  { background: linear-gradient(90deg, #9bc73c, #768f1b); }
.meter-fill.yellow { background: linear-gradient(90deg, #ffe27a, #ffc500); }
.meter-fill.red    { background: linear-gradient(90deg, #ff8a8a, #e81010); }
.meter-pct { font-size: 0.76rem; font-weight: 700; margin-top: 3px; }
.meter-pct.green { color: #5a6d14; } .meter-pct.yellow { color: #a87b0a; } .meter-pct.red { color: #b81f1f; }

.review-form { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-form textarea { flex: 1 1 260px; border: 1px solid #e0e0d8; border-radius: 10px; padding: 8px 12px; font: inherit; resize: vertical; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; }
.rate-stars input { display: none; }
.rate-stars label { font-size: 1.6rem; color: #ddddd3; cursor: pointer; padding: 0 2px; transition: color 0.1s; }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: #f2a900; }
.my-review { margin-top: 12px; font-size: 0.92rem; }
.review-list { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed #e6e6de; }
.review-list li { padding: 4px 0; font-size: 0.9rem; }

/* ── Operator status stepper ────────────────────────────────────────────── */
.status-layout { display: grid; gap: 26px; margin-top: 18px; }
@media (min-width: 900px) { .status-layout { grid-template-columns: 1fr 340px; } }
.stepper { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 24px 26px; box-shadow: 0 1px 2px rgb(26 26 26 / 0.05); }
.step { display: flex; gap: 16px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #eeeee7; border: 2px solid #ddddd2; flex: 0 0 auto;
}
.step-line { width: 3px; flex: 1; min-height: 26px; background: #e8e8e0; margin: 3px 0; border-radius: 2px; }
.step.done .step-dot { background: #768f1b; border-color: #5a6d14; }
.step.done .step-line { background: #b7cd7a; }
.step.current .step-dot { background: #fff; border: 7px solid #768f1b; box-shadow: 0 0 0 4px #e8f0c8; }
.step-body { padding-bottom: 22px; }
.step-label { font-weight: 700; color: #6f6f68; }
.step.current .step-label { color: #2c350b; font-size: 1.06rem; }
.step.current .step-label::after { content: "◀ current"; margin-left: 10px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; color: #768f1b; text-transform: uppercase; }
.step.done .step-label { color: #3d4a0e; }
.step-desc { font-size: 0.86rem; }

.status-actions .side-box { margin-bottom: 18px; }
.fld, .status-actions select { width: 100%; border: 1px solid #e0e0d8; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fdfdfd; margin-bottom: 10px; }
.fld-label { display: block; font-size: 0.8rem; font-weight: 700; color: #4a4a46; margin: 6px 0 4px; }
.btn.warn { background: #ff6633; border-color: #ff6633; color: #fff; }
.btn.warn:hover { background: #e5522a; }
.btn.full, .cta.full { display: block; width: 100%; text-align: center; }
.auto-note { margin-top: 10px; font-size: 0.82rem; background: #eef4dc; border-radius: 10px; padding: 8px 12px; color: #3d4a0e; }
.auto-box .auto-list { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.auto-box .auto-list li { padding: 6px 0; border-bottom: 1px dashed #e6e6de; }
.auto-box .auto-list li:last-child { border-bottom: 0; }
.update-log { list-style: none; margin: 10px 0 30px; padding: 0; }
.update-log li { padding: 8px 0; border-bottom: 1px solid #efefe8; font-size: 0.9rem; }
.log-when { display: inline-block; min-width: 170px; }
.cancel-note { border-left: 4px solid #e81010; }

/* ── Production deal card (.deals-item, two panels) ─────────────────────── */
.deals-item {
  display: grid; grid-template-columns: 1fr; border: 1px solid var(--line, #e3e3e0);
  border-radius: 18px; background: #fff; overflow: hidden; margin-bottom: 22px;
  box-shadow: 0 1px 2px rgb(26 26 26 / 0.05), 0 10px 26px -16px rgb(26 26 26 / 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}
.deals-item:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(26 26 26 / 0.06), 0 18px 40px -16px rgb(60 74 14 / 0.28); }
@media (min-width: 860px) { .deals-item { grid-template-columns: 0.9fr 1.1fr; } }
.deal-props { position: relative; padding: 22px 24px; border-bottom: 1px solid #efefe8; }
@media (min-width: 860px) { .deal-props { border-bottom: 0; border-right: 1px solid #efefe8; } }
.rent-box {
  position: absolute; top: 14px; right: -1px; background: linear-gradient(90deg, #768f1b, #5a6d14);
  color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 12px 4px 14px; border-radius: 999px 0 0 999px;
}
.deal-thumb {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px;
  background: linear-gradient(135deg, #eef4dc, #f7f7f0); border: 1px solid #e3e8cf; margin-bottom: 12px;
}
.property-title a { font-family: var(--font-display, Georgia, serif); font-size: 1.25rem; font-weight: 650; color: #2c350b; text-decoration: none; }
.property-title a:hover { color: #5a6d14; }
.deal-location { color: #8b8b85; font-size: 0.88rem; margin-top: 3px; }
.prop-spec { width: 100%; margin-top: 12px; border-collapse: collapse; }
.prop-spec th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9b9b93; text-align: left; padding: 2px 8px 2px 0; }
.prop-spec td { font-weight: 700; color: #333; padding: 2px 8px 2px 0; }
.green-btns { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn.view-details { background: linear-gradient(180deg, #86a226, #5a6d14); color: #fff; border: 0; }
.btn.view-details:hover { background: linear-gradient(180deg, #768f1b, #4e5f10); }
.deal-details { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
/* property hero atop the terms panel (photo, or branded block pattern) */
.deal-hero {
  position: relative; display: block; height: 130px; border-radius: 14px;
  overflow: hidden; background: linear-gradient(135deg, #23231f, var(--pine-800));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 8px 20px -12px rgb(31 38 8 / 0.5);
}
.deal-hero svg, .deal-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-hero-note {
  position: absolute; bottom: 8px; right: 12px; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.55);
}
.raise-graph .raised-amt { font-size: 1.05rem; }
.raise-area { height: 10px; border-radius: 999px; background: linear-gradient(#e9e9e2, #f2f2ec); overflow: hidden; margin: 7px 0 6px; }
.raise-area .raised { height: 100%; background: linear-gradient(90deg, #9bc73c, #768f1b); border-radius: 999px; }
.raise-meta { font-size: 0.82rem; color: #8b8b85; }
.terms-box { background: #fbfbf6; border: 1px solid #efefe6; border-radius: 12px; padding: 12px 14px; }
.terms-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #3d4a0e; margin-bottom: 6px; }
.terms-box ul { list-style: none; margin: 0; padding: 0; }
.terms-box li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 0.86rem; }
.terms-box li span { color: #8b8b85; }
.stage-tag { padding: 1px 10px; border-radius: 999px; font-size: 0.74rem; }
.stage-tag.stage-open { background: #eef4dc; color: #3d4a0e; }
.stage-tag.stage-funded { background: #e3ecf7; color: #1e4e79; }
.stage-tag.stage-closed { background: #efe3f7; color: #5b2d79; }
.stage-tag.stage-draft { background: #f5e3e3; color: #8a1f1f; }
.stage-tag.stage-cancelled { background: #f0f0ea; color: #6f6f68; }
.operator-info { display: flex; align-items: center; gap: 10px; }
.op-avatar { width: 34px; height: 34px; border-radius: 50%; background: #5a6d14; color: #fdfdf8; display: grid; place-items: center; font-weight: 800; }
.op-avatar.big { width: 52px; height: 52px; font-size: 1.3rem; }
.op-name { font-weight: 600; }
.deal-mng { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px dashed #e6e6de; padding-top: 12px; }
.deal-mng a {
  font-size: 0.8rem; font-weight: 700; color: #3d4a0e; text-decoration: none;
  background: #f1f4e4; border: 1px solid #dde5c2; border-radius: 999px; padding: 5px 12px;
}
.deal-mng a:hover { background: #5a6d14; color: #fff; border-color: #5a6d14; }
.post-update { display: flex; gap: 8px; flex-wrap: wrap; }
.post-update select, .post-update input[type="text"] { border: 1px solid #e0e0d8; border-radius: 10px; padding: 8px 10px; font: inherit; }
.post-update input[type="text"] { flex: 1 1 200px; }

/* ── Deal Status pipeline (production DiamondMap rebuilt as a WORKFLOW) ──
   Seven jewel stages flow left→right, each arrow pointing to the next
   step of a deal's life; NO SALE hangs off the end as the cancellation
   branch (dashed red connector). Every gem is a live counter AND a
   click-to-filter for the MY DEALS list below — production behavior. */
.deal-box { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 26px 12px 18px; margin-bottom: 24px; box-shadow: 0 1px 2px rgb(26 26 26 / 0.05); container-type: inline-size; }
.diamond-strip { display: flex; justify-content: center; align-items: flex-start; padding: 2px; }
/* FLUID: gems shrink with the container so the whole pipeline always fits */
.diamond { flex: 1 1 88px; min-width: 52px; max-width: 96px; text-align: center; text-decoration: none; }
.diamond .d-shape {
  width: min(54px, 68%); aspect-ratio: 1 / 1; height: auto;
  margin: 21px auto 24px; transform: rotate(45deg);
  border-radius: 13px; display: grid; place-items: center; position: relative;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
/* gem gloss: a specular sweep across the upper facet */
.diamond .d-shape::before {
  content: ""; position: absolute; inset: 3px; border-radius: 10px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.45), rgb(255 255 255 / 0.06) 46%, rgb(0 0 0 / 0.05) 100%);
  pointer-events: none;
}
.diamond .d-count {
  transform: rotate(-45deg); font-family: var(--font-display, Georgia, serif);
  font-size: 1.45rem; font-weight: 650; font-style: normal; color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.45);
}
.diamond .d-label {
  display: block; font-size: 0.63rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft); line-height: 1.3; padding: 0 3px;
  transition: color 0.15s;
}
.diamond:hover .d-shape { transform: rotate(45deg) scale(1.09); filter: brightness(1.06); }
.diamond:hover .d-label, .diamond.active .d-label { color: var(--pine-900); }
.diamond.active .d-shape { outline: 3px solid var(--pine-900); outline-offset: 4px; }
.diamond.active .d-label::after { content: " ◂ viewing"; color: var(--pine-600); letter-spacing: 0.04em; text-transform: none; }
/* stages with zero deals recede until you reach for them */
.diamond.empty .d-shape { filter: saturate(0.45); opacity: 0.68; }
.diamond.empty:hover .d-shape { filter: saturate(1) brightness(1.06); opacity: 1; }
.diamond.empty .d-label { color: var(--ink-faint); }
.diamond.red .d-shape { background: linear-gradient(135deg, #ff8a80, #d63a2f); }
.diamond.yellow .d-shape { background: linear-gradient(135deg, #ffe27a, #f0b400); }
.diamond.drkblue .d-shape { background: linear-gradient(135deg, #5c86c5, #1e4e79); }
.diamond.violet .d-shape { background: linear-gradient(135deg, #b78ae0, #6d3fa0); }
.diamond.green .d-shape { background: linear-gradient(135deg, #a5d65f, #5a8f1b); }
.diamond.blue .d-shape { background: linear-gradient(135deg, #7fc2ec, #2a7fb8); }
.diamond.drkviolet .d-shape { background: linear-gradient(135deg, #8e6bb8, #4a2d6e); }
.diamond.pink .d-shape { background: linear-gradient(135deg, #f2a3c0, #d1517f); }
/* connector: the flow arrow between consecutive stages — each one carries
   the color of the stage it leaves into the stage it enters (fixed
   production order, so the child positions are stable: spans sit at even
   nth-child slots between the gem anchors) */
.flow-arrow { flex: 0 0 auto; width: 26px; height: 12px; margin-top: 42px; position: relative; }
.flow-arrow::before {
  content: ""; position: absolute; left: 0; right: 7px; top: 5px; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(90 109 20 / 0.25), rgb(90 109 20 / 0.6));
}
.flow-arrow::after {
  content: ""; position: absolute; right: 0; top: 1px;
  border-left: 8px solid rgb(90 109 20 / 0.65);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.flow-arrow:nth-child(2)::before  { background: linear-gradient(90deg, #d63a2fb0, #f0b400c8); }
.flow-arrow:nth-child(2)::after   { border-left-color: #f0b400d9; }
.flow-arrow:nth-child(4)::before  { background: linear-gradient(90deg, #f0b400b0, #1e4e79c8); }
.flow-arrow:nth-child(4)::after   { border-left-color: #1e4e79d9; }
.flow-arrow:nth-child(6)::before  { background: linear-gradient(90deg, #1e4e79b0, #6d3fa0c8); }
.flow-arrow:nth-child(6)::after   { border-left-color: #6d3fa0d9; }
.flow-arrow:nth-child(8)::before  { background: linear-gradient(90deg, #6d3fa0b0, #5a8f1bc8); }
.flow-arrow:nth-child(8)::after   { border-left-color: #5a8f1bd9; }
.flow-arrow:nth-child(10)::before { background: linear-gradient(90deg, #5a8f1bb0, #2a7fb8c8); }
.flow-arrow:nth-child(10)::after  { border-left-color: #2a7fb8d9; }
.flow-arrow:nth-child(12)::before { background: linear-gradient(90deg, #2a7fb8b0, #4a2d6ec8); }
.flow-arrow:nth-child(12)::after  { border-left-color: #4a2d6ed9; }
/* the cancellation branch into NO SALE: dashed red, set apart */
.flow-branch { flex: 0 0 auto; width: 40px; height: 12px; margin-top: 42px; position: relative; margin-left: 6px; }
.flow-branch::before {
  content: ""; position: absolute; left: 8px; right: 7px; top: 5px; height: 0;
  border-top: 2px dashed rgb(214 58 47 / 0.5);
}
.flow-branch::after {
  content: ""; position: absolute; right: 0; top: 1px;
  border-left: 8px solid rgb(214 58 47 / 0.55);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.flow-branch .fb-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; color: rgb(214 58 47 / 0.75);
  text-transform: uppercase; white-space: nowrap;
}
.diamond-filter-note { text-align: center; margin: 14px 0 0; font-size: 0.88rem; color: #6f6f68; }
.diamond-stage-action { text-align: center; margin: 10px 0 0; }
.diamond-stage-action .btn { font-size: 0.85rem; padding: 0.5rem 1.1rem; }
@media (prefers-reduced-motion: reduce) { .diamond .d-shape { transition: none; } }
/* container-query steps: the pipeline compresses gracefully, never clips */
@container (max-width: 800px) {
  .diamond .d-count { font-size: 1.05rem; }
  .diamond .d-label { font-size: 0.55rem; letter-spacing: 0.04em; }
  .diamond .d-shape { margin: 15px auto 16px; }
  .flow-arrow { width: 16px; margin-top: 32px; }
  .flow-branch { width: 22px; margin-left: 2px; margin-top: 32px; }
  .flow-branch .fb-tag { display: none; }
}
@container (max-width: 520px) {
  .diamond-strip { flex-wrap: wrap; row-gap: 10px; }
  .flow-arrow, .flow-branch { display: none; }
  .diamond { flex: 0 0 25%; min-width: 0; max-width: none; }
  .diamond .d-shape { width: 46px; margin: 12px auto 14px; }
}
.deal-fail { border: 1px solid #f3c9c9; border-left: 5px solid #d63a2f; background: #fdf6f6; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.deal-fail .fail-head { font-size: 1rem; }

/* ── Find Deals layout ──────────────────────────────────────────────────── */
.page-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.find-search { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.find-search input[type="search"] { flex: 1 1 280px; border: 1px solid #e0e0d8; border-radius: 999px; padding: 11px 18px; font: inherit; background: #fff; }
.find-search select { border: 1px solid #e0e0d8; border-radius: 999px; padding: 11px 14px; font: inherit; background: #fff; }
.filter-pills { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; }
.filter-pills li { background: #95c150; color: #fff; font-size: 0.82rem; font-weight: 700; border-radius: 999px; padding: 5px 8px 5px 14px; display: inline-flex; align-items: center; gap: 8px; }
.filter-pills a { color: #fff; background: rgb(255 255 255 / 0.25); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-weight: 800; }
.filter-pills a:hover { background: rgb(0 0 0 / 0.2); }
.find-layout { display: grid; gap: 24px; }
@media (min-width: 980px) { .find-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.find-sidebar { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 16px; padding: 18px 20px; position: sticky; top: 90px; }
.filter-group { margin-bottom: 16px; }
.filter-title { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #3d4a0e; margin-bottom: 8px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.9rem; cursor: pointer; }
.clear-link { display: block; text-align: center; margin-top: 10px; font-size: 0.84rem; color: #8b8b85; }

/* ── Commission report & KPI tiles ──────────────────────────────────────── */
.kpi-row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 16px 0 22px; }
.kpi-row.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .kpi-row.four { grid-template-columns: repeat(4, 1fr); } }
.s-box { background: linear-gradient(135deg, #ffffff, #f7fae9); border: 1px solid #e4e8d2; border-radius: 16px; padding: 18px 20px; text-align: center; box-shadow: 0 1px 2px rgb(26 26 26 / 0.04); }
.s-box b { display: block; font-family: var(--font-display, Georgia, serif); font-size: 1.5rem; color: #2c350b; }
.s-box span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8b8b85; }
.com-report { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 14px; overflow: hidden; font-size: 0.88rem; }
.com-report th { background: #f4f6ea; text-align: left; padding: 10px 12px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #3d4a0e; }
.com-report td { padding: 10px 12px; border-top: 1px solid #f0f0e8; }
.com-report td.amount, .com-report th.amount { text-align: right; }
.com-report tr.dead { opacity: 0.5; }
.com-report em.paid { color: #3d7a24; font-style: normal; font-weight: 700; font-size: 0.72rem; }
.com-report em.pend { color: #a87b0a; font-style: normal; font-weight: 700; font-size: 0.72rem; }
.inv-stat { padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: #f0f0ea; color: #6f6f68; }
.inv-stat.settled { background: #e3f2d9; color: #2f6118; }
.inv-stat.committed, .inv-stat.signed, .inv-stat.funded_escrow { background: #fdf3d7; color: #8a6508; }
.inv-stat.cancelled, .inv-stat.refunded { background: #f5e3e3; color: #8a1f1f; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.report-filters { display: flex; gap: 8px; }
.chip { border: 1px solid #dde5c2; background: #fff; color: #3d4a0e; border-radius: 999px; padding: 6px 14px; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.chip.on, .chip:hover { background: #5a6d14; color: #fff; border-color: #5a6d14; }
.broker-info { display: grid; gap: 18px; margin: 18px 0; }
@media (min-width: 900px) { .broker-info { grid-template-columns: 1.2fr 0.8fr; } }
.broker-inv, .broker-card { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 16px; padding: 20px 22px; }
.link-display { background: #f4f6ea; border: 1px dashed #c9d9a3; border-radius: 10px; padding: 10px 14px; font-family: ui-monospace, monospace; font-size: 0.84rem; margin: 10px 0; word-break: break-all; }
.broker-row { display: flex; gap: 14px; align-items: center; }
.broker-row .name { font-weight: 700; font-size: 1.05rem; }
.agents-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.agent-chip { border: 1px solid #dde5c2; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 0.86rem; font-weight: 700; color: #3d4a0e; text-decoration: none; }
.agent-chip em { font-style: normal; color: #768f1b; margin-left: 6px; }
.agent-chip.on, .agent-chip:hover { background: #5a6d14; color: #fff; }
.agent-chip.on em, .agent-chip:hover em { color: #d9e6b0; }

/* ── Post-a-Deal wizard ─────────────────────────────────────────────────── */
.wizard-bar { display: flex; justify-content: center; gap: 0; margin: 22px 0 26px; flex-wrap: wrap; }
.wiz-step { display: flex; align-items: center; }
.wiz-round {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #9b9b93; background: #efefe9; border: 2px solid #ddddd2; text-decoration: none;
}
.wiz-step.done .wiz-round { background: #768f1b; border-color: #5a6d14; color: #fff; }
.wiz-step.current .wiz-round { background: #fff; border: 3px solid #768f1b; color: #3d4a0e; box-shadow: 0 0 0 4px #e8f0c8; }
.wiz-label { margin: 0 10px 0 8px; font-size: 0.8rem; font-weight: 700; color: #8b8b85; max-width: 90px; line-height: 1.15; }
.wiz-step.current .wiz-label, .wiz-step.done .wiz-label { color: #3d4a0e; }
.wiz-line { width: 34px; height: 3px; background: #e8e8e0; border-radius: 2px; margin-right: 10px; }
.wiz-step.done .wiz-line { background: #b7cd7a; }
.wiz-panel { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 26px 28px; box-shadow: 0 1px 2px rgb(26 26 26 / 0.05); }
.wiz-grid { display: grid; gap: 16px; margin: 18px 0 22px; }
@media (min-width: 760px) { .wiz-grid { grid-template-columns: 1fr 1fr; } .wiz-grid .span2 { grid-column: span 2; } }
.wiz-grid label { display: block; font-size: 0.84rem; font-weight: 700; color: #4a4a46; }
.wiz-grid input, .wiz-grid select, .wiz-grid textarea {
  width: 100%; margin-top: 6px; border: 1px solid #e0e0d8; border-radius: 10px;
  padding: 10px 12px; font: inherit; background: #fdfdfd;
}
.w-narrow { display: block; max-width: 320px; margin-bottom: 18px; font-weight: 700; font-size: 0.84rem; }
.team-list { list-style: none; padding: 0; margin: 14px 0 20px; }
.team-list li { padding: 6px 0; border-bottom: 1px dashed #e6e6de; }
.doc-list { list-style: none; padding: 0; margin: 12px 0; }
.doc-list li { padding: 5px 0; }

/* ── Dashboard side widgets ─────────────────────────────────────────────── */
.msg-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #ecece4; font-size: 0.88rem; }
.msg-row:last-of-type { border-bottom: 0; }
.msg-row.unread .msg-title { font-weight: 700; }
.msg-when { flex: 0 0 auto; }
.view-all { display: inline-block; margin-top: 8px; font-size: 0.84rem; font-weight: 700; color: #5a6d14; }

/* ── Promote-A-Vote ─────────────────────────────────────────────────────── */
.vote-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.vote-tab { border: 1px solid #dde5c2; background: #fff; color: #3d4a0e; border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.vote-tab.on, .vote-tab:hover { background: #5a6d14; color: #fff; border-color: #5a6d14; }

.vote-basket { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 800px) { .vote-basket { grid-template-columns: repeat(3, 1fr); } }
.vb-slot { border-radius: 16px; padding: 16px 18px; min-height: 110px; }
.vb-slot.filled { background: #fff; border: 2px solid #9bc73c; box-shadow: 0 6px 18px -10px rgb(60 74 14 / 0.4); }
.vb-slot.empty { border: 2px dashed #d5d5c9; display: grid; place-items: center; color: #9b9b93; font-weight: 600; }
.vb-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.vb-remove { color: #b81f1f; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.raise-area.sm { height: 7px; margin-top: 8px; display: block; }
.raise-area.sm .raised { display: block; }
.sm-note { font-size: 0.78rem; }

.vote-form-card { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 22px 24px; margin-bottom: 22px; box-shadow: 0 1px 2px rgb(26 26 26 / 0.05); }
.vote-form-card label { display: block; font-size: 0.84rem; font-weight: 700; color: #4a4a46; margin-bottom: 14px; }
.vote-form-card input, .vote-form-card textarea, .vote-form-card select {
  width: 100%; margin-top: 6px; border: 1px solid #e0e0d8; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fdfdfd;
}
.pick-grid { display: grid; gap: 12px; }
@media (min-width: 800px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
.pick-card { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pick-card .btn.disabled { pointer-events: none; opacity: 0.4; }

.contact-picks { list-style: none; margin: 0 0 16px; padding: 0; max-height: 260px; overflow: auto; }
.contact-picks li { padding: 6px 0; border-bottom: 1px dashed #ecece4; }
.contact-picks.manage li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.joined-tag { font-style: normal; background: #e8f0c8; color: #3d4a0e; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.contacts-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .contacts-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

.vote-rows { display: grid; gap: 14px; }
.vote-row { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 16px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.vote-row.closed { opacity: 0.65; }
.vote-row.act { border-left: 5px solid #f0b400; }
.vr-actions { display: flex; gap: 8px; }
.kind-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.kind-tag.promote { background: #e8f0c8; color: #3d4a0e; }
.kind-tag.share { background: #dff0fb; color: #155a80; }
.cast-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cast-btn { background: #fff; border: 2px solid #9bc73c; color: #3d4a0e; }
.cast-btn:hover { background: #5a6d14; color: #fff; }

.live-dot { color: #d63a2f; font-size: 0.8rem; vertical-align: middle; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.tally-board { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 22px 24px; margin: 18px 0 26px; }
.tally-board.slim { border: 0; padding: 12px 0; margin: 14px 0; text-align: left; }
.tally-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.tally-track { height: 16px; border-radius: 999px; background: linear-gradient(#e9e9e2, #f2f2ec); overflow: hidden; margin-top: 6px; }
.tally-fill { height: 100%; border-radius: 999px; transition: width 0.6s; }
.tally-fill.p1 { background: linear-gradient(90deg, #9bc73c, #5a6d14); }
.tally-fill.p2 { background: linear-gradient(90deg, #ffd97a, #e6a817); }
.tally-fill.p3 { background: linear-gradient(90deg, #8fc7ee, #2a7fb8); }
.mini-link { font-size: 0.72rem; background: #f4f6ea; border-radius: 6px; padding: 2px 6px; word-break: break-all; }

/* public voting page */
.public-vote { max-width: 1060px; margin: 0 auto; padding: 40px 20px 70px; }
.pv-card { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 22px; padding: 40px 36px; box-shadow: 0 2px 4px rgb(26 26 26 / 0.05), 0 20px 50px -24px rgb(60 74 14 / 0.35); }
.pv-card.center { text-align: center; max-width: 620px; margin: 0 auto; }
.pv-emoji { font-size: 3rem; }
.pv-intro { text-align: center; margin-bottom: 26px; }
.pv-from { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; color: #768f1b; }
.pv-message { font-style: italic; color: #4a4a46; max-width: 560px; margin: 10px auto; }
.pv-steps { display: flex; justify-content: center; gap: 26px; list-style: none; padding: 0; margin: 18px 0 0; flex-wrap: wrap; color: #6f6f68; font-size: 0.9rem; counter-reset: pv; }
.pv-steps li::before { counter-increment: pv; content: counter(pv); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #5a6d14; color: #fff; font-weight: 800; font-size: 0.72rem; margin-right: 7px; }
.pv-deals { display: grid; gap: 18px; }
@media (min-width: 860px) { .pv-deals { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .pv-submit { grid-column: 1 / -1; } }
.pv-deal input { position: absolute; opacity: 0; }
.pv-deal-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid var(--line, #e3e3e0); border-radius: 18px; padding: 22px; cursor: pointer; transition: all 0.15s; overflow: hidden; }
.pv-deal-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgb(60 74 14 / 0.4); }
.pv-deal input:checked + .pv-deal-card { border-color: #5a6d14; box-shadow: 0 0 0 4px #e8f0c8, 0 16px 36px -18px rgb(60 74 14 / 0.4); }
.pv-title { font-family: var(--font-display, Georgia, serif); font-size: 1.2rem; font-weight: 650; color: #2c350b; margin-top: 10px; }
.pv-pick { display: none; position: absolute; bottom: 14px; right: 16px; background: #5a6d14; color: #fff; font-size: 0.74rem; font-weight: 800; border-radius: 999px; padding: 4px 12px; }
.pv-deal input:checked + .pv-deal-card .pv-pick { display: block; }
.pv-submit { text-align: center; margin-top: 10px; }
.cta.big { font-size: 1.08rem; padding: 14px 34px; }
.pv-cta-copy { margin-top: 18px; font-size: 1.02rem; }

/* ── Oversight & delegated roles (gov/crowd, vendor, directories) ────── */
.menu-drop { position: relative; display: inline-block; }
.menu-drop-list { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 12px; padding: 8px 0; box-shadow: 0 18px 40px -18px rgb(26 26 26 / 0.35); z-index: 40; }
.menu-drop:hover .menu-drop-list, .menu-drop:focus-within .menu-drop-list { display: block; }
.menu-drop-list a { display: block; padding: 8px 16px; white-space: nowrap; }
.menu-drop-list a:hover { background: #f4f6ea; }

.member-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 14px 0 30px; }
.member-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 22px 14px; text-decoration: none; transition: all 0.15s; }
.member-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgb(60 74 14 / 0.4); }
.mt-icon { font-size: 1.7rem; }
.mt-label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: #4a4a46; }
.mt-count { font-family: var(--font-display, Georgia, serif); font-size: 1.9rem; color: #2c350b; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 16px 0 30px; }
.team-grid .member { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; padding: 26px 18px 20px; text-decoration: none; text-align: center; transition: all 0.15s; }
.team-grid .member:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgb(60 74 14 / 0.4); }
.team-grid .thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #9bc73c, #5a6d14); color: #fff; font-weight: 800; font-size: 1.5rem; }
.team-grid .name { font-weight: 700; color: #2c350b; }
.team-grid .e-mail { font-size: 0.82rem; word-break: break-all; }
.stat-ind { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; background: #f3e2e0; color: #8c2f28; }
.stat-ind.on { background: #e8f0c8; color: #3d4a0e; }
.stat-ind.warn { background: #fdf0d4; color: #7a5a10; }

.all-deals-search, .find-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.all-deals-search input[type="text"], .all-deals-search select { padding: 10px 12px; border: 1px solid var(--line, #e3e3e0); border-radius: 10px; }
.vendor-mng { margin-top: -14px; margin-bottom: 22px; }
hr.dashed { border: 0; border-top: 2px dashed var(--line, #e3e3e0); margin: 26px 0; }
.help-info { background: #f4f6ea; border: 1px solid #dfe7c4; border-radius: 14px; padding: 14px 18px; font-size: 0.9rem; color: #4a4a46; margin: 12px 0 20px; }

/* ── Team management, Learning Center, Messages, profiles ────────────── */
.priv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.invitation-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.invitation-row .thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #9bc73c, #5a6d14); color: #fff; font-weight: 800; font-size: 1.2rem; flex: none; }
.invitation-row form { margin-left: auto; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 18px; }
.video-card { background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 18px; overflow: hidden; transition: box-shadow 0.15s; }
.video-card:hover { box-shadow: 0 16px 36px -18px rgb(60 74 14 / 0.4); }
.video-card.watched { border-color: #9bc73c; }
.video-frame { aspect-ratio: 16 / 9; background: #1a1a1a; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }

.inbox-toolbar { display: flex; align-items: center; gap: 14px; background: #f4f6ea; border: 1px solid #dfe7c4; border-radius: 12px; padding: 10px 16px; margin: 12px 0; }
.inbox-toolbar .pager { margin-left: auto; }
.inbox-toolbar .pager a { padding: 0 8px; font-weight: 800; }
.message-bx { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line, #e3e3e0); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.message-bx.unread { border-left: 4px solid #9bc73c; background: #fcfdf7; }
.message-bx a { display: flex; flex: 1; align-items: baseline; gap: 14px; text-decoration: none; min-width: 0; }
.message-bx .name { font-weight: 800; color: #2c350b; flex: none; }
.message-bx.unread .subject { font-weight: 700; }
.message-bx .subject { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4a4a46; }
.message-bx .date { flex: none; font-size: 0.82rem; }

.op-profile-head { display: flex; align-items: center; gap: 20px; margin: 10px 0 20px; }
.big-thumb { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #9bc73c, #5a6d14); color: #fff; font-weight: 800; font-size: 2rem; flex: none; }
.meter-fill.green { background: linear-gradient(90deg, #9bc73c, #5a6d14); }
.meter-fill.yellow { background: linear-gradient(90deg, #ffd97a, #e6a817); }
.meter-fill.red { background: linear-gradient(90deg, #f2a09a, #d63a2f); }
.review-item p { margin: 6px 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-actions input[type="text"] { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid var(--line, #e3e3e0); border-radius: 10px; }
.admin-users .chip { margin-right: 4px; }

/* challenge fixes: dead vote options, print, focus, a11y */
.pv-deal-card.pv-closed { opacity: 0.55; cursor: not-allowed; }
.pv-deal input:focus-visible + .pv-deal-card { outline: 3px solid #9bc73c; outline-offset: 2px; }
@media print { .account-menu, .site-header nav, .site-footer, .inbox-toolbar, form button { display: none !important; } }
@media (max-width: 760px) {
  /* Still one row: the strip scrolls sideways instead of wrapping. Dropdown
     children flatten into the strip so the scroll container can't clip them. */
  .account-menu { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
  .account-menu::-webkit-scrollbar { display: none; }
  .account-menu .menu-drop-list {
    display: inline-flex; position: static; min-width: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .account-menu .menu-drop > a { display: none; }
  .account-menu .menu-drop-list a { padding: 0.65rem clamp(0.45rem, 1.1vw, 1.1rem); }
}
@media (max-width: 700px) {
  .account-menu a { flex: none; }
  .site-header { flex-wrap: wrap; }
  .dash-columns { display: block; }
}
.header-search input { padding: 8px 14px; border: 1px solid var(--line, #e3e3e0); border-radius: 999px; min-width: 180px; }
button.busy { opacity: 0.6; cursor: wait; }
.deal-thumb.has-photo { padding: 0; overflow: hidden; }
.deal-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.account-drop .nav-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #9bc73c, #5a6d14); color: #fff; font-weight: 800; font-size: 0.8rem; margin-left: 6px; vertical-align: middle; }
.account-drop .menu-drop-list { right: 0; left: auto; }
.account-drop form { padding: 8px 16px; }
.tbl-myinvt { margin-top: 12px; font-size: 0.88rem; }
.tbl-myinvt tr.dead { opacity: 0.55; }
.breadcrumb { display: flex; gap: 6px; list-style: none; padding: 8px 0 0; margin: 0; font-size: 0.8rem; color: #8a8a82; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: #768f1b; }

/* ── Invest = Google Blue (Ed 2026-07-12: red reads as a warning) ────────── */
.btn.invest-blue, .cta.invest-blue {
  background: #4285F4; border-color: #4285F4; color: #fff;
}
.btn.invest-blue:hover, .cta.invest-blue:hover {
  background: #3367D6; border-color: #3367D6; color: #fff;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════
   HIGH-END POLISHED GLASSY — design revision layer (2026-07-12)
   Spec: docs/DESIGN_HIGH_END_GLASSY_SPEC.md · restyles SURFACES ONLY.
   Depth discipline: page (flat ambient backdrop) → card (faux glass:
   layered translucency + hairline, no compositing cost) → overlay (true
   backdrop-filter glass; budget ≤3 per viewport: header, dropdown, modal).
   ═════════════════════════════════════════════════════════════════════ */

/* ── 1 · Header/nav — the signature glass bar ───────────────────────── */
.site-header {
  background: rgb(255 255 255 / 0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgb(255 255 255 / 0.75);
  box-shadow: 0 1px 0 rgb(28 30 23 / 0.06), 0 12px 32px -22px rgb(31 38 8 / 0.35);
}
nav a:hover { background: rgb(255 255 255 / 0.72); }
.nav-user { background: color-mix(in srgb, var(--pine-50) 80%, transparent); box-shadow: var(--glass-hairline); }
.header-search input {
  background: rgb(255 255 255 / 0.6);
  border-color: rgb(255 255 255 / 0.8);
  box-shadow: var(--glass-ring), var(--glass-hairline);
}
.header-search input:focus { background: #fff; }

/* ── 2 · Card elevation — one glass recipe for every panel surface ──── */
.panel, .card, .auth-card, .status-box, .dash-side .side-box, .stage-card,
.deal-card, .deal-row, .deals-item, .profile-box, .stepper, .wiz-panel,
.vote-form-card, .vote-row, .tally-board, .pick-card, .pv-card,
.pv-deal-card, .member-tile, .team-grid .member, .video-card, .message-bx,
.broker-inv, .broker-card, .find-sidebar, .deal-box, .s-box, .stat,
.vb-slot.filled, .invitation-card, table {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hairline), var(--glass-ring), var(--shadow-card);
}
/* Quieter interior wells sit ON glass — they stay tints, not stacked glass */
.eval-box { background: rgb(255 255 255 / 0.55); border-color: rgb(255 255 255 / 0.7); }
.terms-box { background: rgb(255 255 255 / 0.5); border-color: rgb(255 255 255 / 0.7); }
.help-info, .inbox-toolbar { background: color-mix(in srgb, var(--pine-50) 62%, transparent); border-color: rgb(255 255 255 / 0.7); box-shadow: var(--glass-hairline); }
.link-display { background: rgb(255 255 255 / 0.55); }
.auto-note { background: color-mix(in srgb, var(--pine-50) 70%, transparent); }

/* Overlay elevation: the auth card is the page's single hero surface */
.auth-card { background: var(--glass-surface-strong); box-shadow: var(--glass-hairline), var(--glass-ring), var(--shadow-pop); }

/* Hover lifts: calm luxury — 2px max, never bouncy (spec §2.2) */
.deal-card:hover { transform: var(--lift); }
.stage-card:hover, .member-tile:hover, .team-grid .member:hover,
.pv-deal-card:hover { transform: var(--lift); box-shadow: var(--glass-hairline), var(--glass-ring), var(--shadow-card-hover); }
.deals-item:hover { transform: var(--lift); box-shadow: var(--glass-hairline), var(--glass-ring), var(--shadow-card-hover); }
.video-card:hover, .vote-row:hover { box-shadow: var(--glass-hairline), var(--glass-ring), var(--shadow-card-hover); }

/* ── 3 · Account menu + dropdown (dropdown = true overlay glass) ────── */
.account-menu { border-bottom-color: rgb(28 30 23 / 0.08); }
.account-menu a { border-radius: 10px 10px 0 0; }
.account-menu a.active { background: linear-gradient(180deg, var(--pine-100), color-mix(in srgb, var(--pine-100) 40%, transparent)); }
.menu-drop-list {
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: var(--glass-hairline), var(--shadow-pop);
}
.menu-drop-list a:hover { background: color-mix(in srgb, var(--pine-50) 75%, transparent); }

/* ── 4 · Stat/KPI boxes — numbers in display serif, gold for money ──── */
.stat .stat-value, .s-box b, .status-item .item-count, .mt-count {
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.7);
}
.s-box b.money, .stat .stat-value.money { color: var(--gold); }
.stat-label, .s-box span, .badge, th, .filter-title, .terms-title,
.eval-title, .pv-from, .mt-label { letter-spacing: 0.08em; }

/* ── 5 · Progress / raise / tally bars — jewel polish ───────────────── */
.progress, .raise-area, .tally-track, .meter-track {
  background: rgb(28 30 23 / 0.07);
  box-shadow: inset 0 1px 3px rgb(28 30 23 / 0.14), inset 0 -1px 0 rgb(255 255 255 / 0.8);
}
.progress-bar, .raise-area .raised, .tally-fill, .meter-fill {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

/* ── 6 · Diamond strip + medallions — the brand's jewels ────────────── */
.diamond .d-shape {
  box-shadow:
    inset 0 2px 5px rgb(255 255 255 / 0.65),
    inset 0 -3px 8px rgb(0 0 0 / 0.18),
    0 10px 22px -8px rgb(26 26 26 / 0.42);
}
.diamond:hover .d-shape {
  transform: rotate(45deg) scale(1.06);
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 5px rgb(255 255 255 / 0.7),
    inset 0 -3px 8px rgb(0 0 0 / 0.16),
    0 0 24px rgb(155 199 60 / 0.35),
    0 12px 24px -8px rgb(26 26 26 / 0.4);
}
.pb-medallion { filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.8)) drop-shadow(0 6px 14px rgb(60 74 14 / 0.3)); }
.profile-box { background: var(--glass-surface); }
.no-data-badge { filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.4)) drop-shadow(0 10px 22px rgb(197 160 38 / 0.4)); }

/* ── 7 · Forms — inputs float on the glass, lime focus ring ─────────── */
.field input, .field select, .field textarea, input[type="text"],
input[type="email"], input[type="password"], input[type="number"],
input[type="date"], select, textarea,
.wiz-grid input, .wiz-grid select, .wiz-grid textarea,
.vote-form-card input, .vote-form-card textarea, .vote-form-card select,
.fld, .status-actions select, .review-form textarea,
.find-search input[type="search"], .find-search select {
  background: rgb(255 255 255 / 0.72);
  border-color: rgb(28 30 23 / 0.1);
  border-radius: 12px;
  box-shadow: var(--glass-hairline), inset 0 1px 2px rgb(28 30 23 / 0.04);
}
.find-search input[type="search"], .find-search select { border-radius: 999px; }
.field input:focus, .field select:focus, .field textarea:focus,
input:focus, select:focus, textarea:focus {
  background: #fff;
  border-color: var(--pine-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine-400) 45%, transparent);
}

/* ── 8 · Tables — glass container, airy row hover ───────────────────── */
table { box-shadow: var(--glass-hairline), var(--glass-ring), var(--shadow-card); }
th { background: rgb(244 246 234 / 0.72); }
tbody tr:hover { background: color-mix(in srgb, var(--pine-50) 60%, transparent); }
.com-report { background: var(--glass-surface); border-color: var(--glass-border); }
.com-report th { background: rgb(244 246 234 / 0.72); }
.com-report td { border-top-color: rgb(28 30 23 / 0.06); }

/* ── 9 · Buttons — glass-polished primary, glass-ghost secondary ────── */
button, .btn, nav a.cta, .cta {
  background-image: linear-gradient(180deg,
    rgb(255 255 255 / 0.32), rgb(255 255 255 / 0.08) 46%, rgb(0 0 0 / 0.06));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -1px 0 rgb(0 0 0 / 0.14),
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    0 1px 2px rgb(28 30 23 / 0.1),
    0 10px 22px -12px rgb(61 74 14 / 0.55);
}
button:hover, .btn:hover, nav a.cta:hover, .cta:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    inset 0 -1px 0 rgb(0 0 0 / 0.12),
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    0 2px 4px rgb(28 30 23 / 0.1),
    0 14px 30px -12px rgb(61 74 14 / 0.6);
}
button:active, .btn:active, nav a.cta:active, .cta:active { transform: translateY(0) scale(0.98); }
/* the production green "View Details" keeps its gradient — glass gloss on top */
.btn.view-details {
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0.08) 46%, rgb(0 0 0 / 0.06)),
    linear-gradient(180deg, #86a226, #5a6d14);
}
.btn.view-details:hover {
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0.38), rgb(255 255 255 / 0.1) 46%, rgb(0 0 0 / 0.05)),
    linear-gradient(180deg, #768f1b, #4e5f10);
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pine-400) 60%, transparent); outline-offset: 2px; }
button.linklike, .pb-track-btn { background-image: none; box-shadow: none; }
button.voted, button.secondary, .chip, .vote-tab, .agent-chip, .deal-mng a, .cast-btn {
  background-image: none;
  background-color: rgb(255 255 255 / 0.55);
  box-shadow: var(--glass-hairline), var(--glass-ring);
}
.chip.on, .chip:hover, .vote-tab.on, .vote-tab:hover, .agent-chip.on,
.agent-chip:hover, .deal-mng a:hover, .cast-btn:hover {
  background-color: #5a6d14; box-shadow: var(--shadow-sm);
}
button.voted:hover, button.secondary:hover { background-color: var(--pine-50); }
/* INVEST stays pure Google Blue — no gradient tint alters the hex (§1) */
.btn.invest-blue, .cta.invest-blue {
  background: #4285F4; background-image: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 8px 20px -10px rgb(66 133 244 / 0.55);
}
.btn.invest-blue:hover, .cta.invest-blue:hover {
  background: #3367D6; background-image: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 10px 24px -10px rgb(51 103 214 / 0.6);
}

/* ── 10 · Typography — fluid editorial display (clamp scales viewport) ── */
h1 { font-size: clamp(1.9rem, 1.32rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.28rem, 1.1rem + 0.55vw, 1.5rem); }
.hero h1 { font-size: clamp(2.1rem, 1.35rem + 2.4vw, 3.05rem); }

/* ── 11 · Footer — the one intentionally dark surface (deep pine) ───── */
.site-footer {
  background:
    radial-gradient(900px 380px at 12% -10%, rgb(155 199 60 / 0.14), transparent 60%),
    radial-gradient(760px 320px at 92% 110%, rgb(197 160 38 / 0.1), transparent 55%),
    var(--pine-950);
  color: rgb(255 255 255 / 0.6);
}
.site-footer .footer-legal {
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  padding: 0.55rem 1.6rem;
  width: fit-content;
  margin-left: auto; margin-right: auto;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

/* ── 12 · Public vote pages — align with the ambient system ─────────── */
.pv-deal input:checked + .pv-deal-card {
  background: var(--glass-surface-strong);
  border-color: #5a6d14;
}
.vb-slot.empty { border-color: rgb(28 30 23 / 0.14); background: rgb(255 255 255 / 0.28); }

/* ── 13 · Fallback + reduced motion (spec §5.3–4) ───────────────────── */
@supports not (backdrop-filter: blur(1px)) {
  .site-header, .menu-drop-list { background: var(--glass-fallback); }
}
@media (prefers-reduced-motion: reduce) {
  .deal-card:hover, .stage-card:hover, .member-tile:hover,
  .team-grid .member:hover, .pv-deal-card:hover, .deals-item:hover,
  button:hover, .btn:hover, .cta:hover, .btn.invest-blue:hover,
  .cta.invest-blue:hover { transform: none; }
  .progress-bar, .tally-fill, .meter-fill, .diamond .d-shape,
  .deal-card, .deals-item, .stage-card, .member-tile, .pv-deal-card { transition: none; }
  .live-dot { animation: none; }
}
