/* REVOICE DEALS — Deep Plum #2C1132 · Brushed Gold #B49658 · White · Warm Ivory #FAF8F4 */
:root {
  --plum: #2C1132; --plum-2: #3E1C46; --plum-soft: #F3EDF4;
  --gold: #B49658; --gold-2: #C8AD72; --gold-dark: #8E7440; --gold-soft: #F5EFE2; --gold-line: #D8C393;
  --white: #FFFFFF; --ivory: #FAF8F4; --line: #E8E2D8; --line-2: #D9D2C5;
  --ink: #241329; --muted: #6C6170; --ok: #2E7D4F; --warn: #A8641A; --bad: #A3312D;
  --radius: 6px; --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(44,17,50,.06), 0 8px 24px rgba(44,17,50,.07);
  --font-d: 'Montserrat', system-ui, sans-serif;
  --font-b: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-b); color: var(--ink); background: var(--ivory); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
img, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--font-d); color: var(--plum); line-height: 1.15; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* header */
.top-accent-bar { height: 4px; background: linear-gradient(90deg, var(--plum) 0 62%, var(--gold) 62% 100%); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
.brand-lockup { display: inline-flex; align-self: flex-start; }
.brand-logo-img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-btn { flex: 0 0 auto; background: none; border: 0; padding: 9px 12px; font-family: var(--font-d); font-weight: 700; font-size: 13.5px; color: var(--muted); border-radius: 4px; position: relative; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-btn:hover { color: var(--plum); background: var(--ivory); }
.nav-btn.active { color: var(--plum); background: var(--plum-soft); }
.nav-btn.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-btn-cta { color: var(--plum); }
.free-pill { background: var(--gold); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; }
.pending-badge { background: var(--plum); color: var(--white); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid transparent; border-radius: 4px; padding: 11px 20px; font-family: var(--font-d); font-weight: 700; font-size: 14px; line-height: 1.2; text-align: center; transition: background .15s, color .15s, border-color .15s, transform .05s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-2); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-gold-outline { background: var(--white); color: var(--plum); border-color: var(--gold); }
.btn-gold-outline:hover { background: var(--gold-soft); }
.btn-ghost { background: var(--white); color: var(--plum); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--plum); }
.btn-danger { background: var(--white); color: var(--bad); border-color: #E6C3C1; }
.btn-danger:hover { background: #FBF1F0; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 11px; font-size: 12px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-full { width: 100%; }
.btn.copied { background: var(--ok); }
.link-btn { background: none; border: 0; color: var(--plum); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; padding: 4px; }
.file-btn { cursor: pointer; }

/* hero */
.hero-band { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 26px; }
.hero-kicker, .section-kicker { font-family: var(--font-d); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--gold-dark); display: inline-block; }
.hero-title { font-size: clamp(30px, 7.4vw, 50px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 12px; }
.hero-sub { color: var(--muted); font-size: 15.5px; max-width: 620px; }
.hero-sub strong { color: var(--plum); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.hero-stat { background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px; }
.hero-stat strong { display: block; font-family: var(--font-d); font-weight: 900; font-size: 24px; color: var(--plum); line-height: 1.1; }
.hero-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* filters */
.filter-bar { display: grid; gap: 10px; margin: 20px 0 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gold-dark); }
.input-field, .select-field { width: 100%; background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input-field:focus, .select-field:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(180,150,88,.25); }
textarea.input-field { resize: vertical; }
.search-input { padding-left: 40px; }
.select-field { appearance: none; -webkit-appearance: none; padding-right: 34px; 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' fill='none' stroke='%232C1132' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.type-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pill-btn { flex: 1 0 auto; background: var(--ivory); border: 1.5px solid var(--line); border-radius: 4px; padding: 8px 14px; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--muted); }
.pill-btn.active { background: var(--plum); border-color: var(--plum); color: var(--white); }
.select-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.select-group #sortSelect { grid-column: 1 / -1; }
.feed-meta-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 14px; min-height: 32px; }
.feed-count { color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* deal grid */
.deals-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 40px; }
.deal-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(44,17,50,.06), 0 16px 34px rgba(44,17,50,.12); }
.deal-card-media { border: 0; padding: 0; background: var(--line); display: block; width: 100%; aspect-ratio: 4 / 5; }
.deal-card-media canvas { width: 100%; height: 100%; }
.deal-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deal-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deal-card-amount { margin-left: auto; font-family: var(--font-d); font-weight: 900; color: var(--plum); font-size: 16px; }
.type-chip, .asset-chip { font-family: var(--font-d); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.type-chip { background: var(--plum); color: var(--white); }
.type-chip.type-sale { background: var(--gold); }
.type-chip.type-lease { background: var(--plum-2); }
.asset-chip { background: var(--gold-soft); color: var(--gold-dark); }
.deal-card-title { font-size: 17px; font-weight: 800; }
.deal-card-market { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.deal-card-firms { color: var(--ink); font-size: 13.5px; }
.deal-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.comment-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.empty-state { text-align: center; padding: 36px 20px; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--radius); margin-bottom: 40px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 16px; }

/* pages */
.view-section { display: none; }
.view-section.active { display: block; }
.page-wrap { padding-top: 26px; padding-bottom: 50px; }
.page-head { margin-bottom: 20px; }
.centered-head { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.page-title { font-size: clamp(26px, 6vw, 38px); font-weight: 900; letter-spacing: -.015em; margin: 6px 0 10px; }
.page-desc { color: var(--muted); max-width: 760px; }
.centered-head .page-desc { margin: 0 auto; }
.section-heading { font-size: 22px; font-weight: 800; margin-top: 4px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gold-tag { display: inline-block; font-family: var(--font-d); font-weight: 800; font-size: 10.5px; letter-spacing: .12em; color: var(--gold-dark); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 3px 8px; border-radius: 6px; }
.mini-label { display: block; font-family: var(--font-d); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.error-box { background: #FBF1F0; border: 1px solid #E6C3C1; color: var(--bad); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.error-box ul { margin: 6px 0 0; padding-left: 18px; }

/* auth gate & client */
.auth-gate-card { background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.auth-gate-inner h2 { font-size: 24px; margin: 12px 0 8px; }
.auth-gate-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.auth-gate-actions, .client-profile-actions, .success-banner-actions, .modal-cta-row, .request-actions, .edit-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-gate-actions { justify-content: center; }
.demo-login-strip { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--plum); color: var(--white); border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; }
.demo-login-strip strong { display: block; font-family: var(--font-d); font-size: 16px; }
.demo-login-strip span { color: #D9CDDB; font-size: 14px; }
.auth-grid { display: grid; gap: 18px; }
.auth-card { padding: 22px 18px; }
.auth-card h2 { font-size: 21px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.auth-sub strong { color: var(--plum); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field label { font-weight: 700; font-size: 13.5px; color: var(--plum); }
.req { color: var(--gold-dark); }
.auth-note-box { margin-top: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: var(--muted); }
.auth-note-box strong { color: var(--plum); }
.client-profile-header { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.client-profile-info { display: flex; gap: 14px; align-items: center; }
.avatar-circle { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; background: var(--plum); color: var(--white); font-family: var(--font-d); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--gold); }
.profile-name { font-size: 21px; margin: 6px 0 2px; }
.profile-meta { color: var(--muted); font-weight: 600; font-size: 14px; }
.profile-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink); word-break: break-word; }
.submissions-list { display: grid; gap: 16px; }
.submission-card { padding: 14px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.submission-thumb canvas { width: 100%; height: auto; border-radius: 5px; border: 1px solid var(--line); }
.submission-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.submission-info h3 { font-size: 16px; }
.submission-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sub-date { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sub-meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sub-meta strong { color: var(--plum); font-family: var(--font-d); }
.submission-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-d); font-weight: 800; font-size: 11.5px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { background: #FBF3E4; color: var(--warn); }
.status-approved { background: #E9F5EE; color: var(--ok); }
.status-changes { background: var(--plum-soft); color: var(--plum); }
.status-rejected { background: #FBF1F0; color: var(--bad); }
.feedback-box { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; grid-column: 1 / -1; }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.fb-item { font-size: 13.5px; border-left: 3px solid var(--line-2); padding-left: 10px; }
.fb-item p { color: var(--ink); }
.fb-admin { border-left-color: var(--gold); }
.fb-client { border-left-color: var(--plum); }
.fb-system { color: var(--muted); }
.fb-time { color: var(--muted); font-size: 12px; font-weight: 500; }
.inline-reply { display: flex; gap: 8px; margin-top: 10px; }
.inline-reply .input-field { padding: 8px 12px; font-size: 14px; }

/* submit */
.submit-layout { display: grid; gap: 20px; }
.submit-form-col { min-width: 0; }
.submitter-banner { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--gold-line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px; }
.submitter-banner strong { display: block; color: var(--plum); font-family: var(--font-d); }
.submitter-banner span { display: block; color: var(--ink); word-break: break-word; }
.submitter-banner em { display: block; color: var(--muted); font-size: 12.5px; }
.sb-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.success-banner { background: #F2F8F4; border: 1px solid #BFDCCB; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.success-banner-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.success-banner-head strong { font-family: var(--font-d); color: var(--plum); font-size: 16px; }
.success-banner p { color: var(--ink); font-size: 14px; margin-bottom: 12px; }
.form-card { padding: 6px 16px 16px; }
.form-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.form-section-title { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: var(--white); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.req-badge { font-size: 10px; letter-spacing: .1em; background: var(--gold); color: var(--white); padding: 3px 7px; border-radius: 5px; }
.form-grid-2, .form-grid-3 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.form-grid-3 { grid-template-columns: 1fr 1fr; }
.field-hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.section-row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.section-row-between .form-section-title { margin-bottom: 8px; }
.upload-box { background: var(--ivory); border: 1.5px dashed var(--gold-line); border-radius: var(--radius-sm); padding: 14px; }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upload-status { font-size: 13px; color: var(--muted); font-weight: 600; }
.upload-status.ok { color: var(--ok); }
.sample-picker { margin-top: 12px; }
.sample-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sample-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.sample-thumb { padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: none; aspect-ratio: 1; }
.sample-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sample-thumb.selected { border-color: var(--plum); box-shadow: 0 0 0 2px var(--gold); }
.dealmakers-list { display: grid; gap: 10px; }
.dealmaker-row { display: flex; gap: 12px; align-items: flex-start; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; position: relative; }
.dm-avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--white); border: 3px solid var(--plum); box-shadow: inset 0 0 0 2px var(--white); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; color: var(--gold-dark); }
.dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-fields { flex: 1; min-width: 0; display: grid; gap: 8px; padding-right: 22px; }
.dm-name { padding: 9px 12px; }
.dm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dm-samples { display: inline-flex; gap: 5px; align-items: center; }
.dm-sample { width: 30px; height: 30px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); background: none; }
.dm-sample:hover { border-color: var(--gold); }
.dm-sample img { width: 100%; height: 100%; object-fit: cover; }
.dm-remove { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 50%; }
.dm-remove:hover { color: var(--bad); background: #FBF1F0; }
.logo-uploads-grid { display: grid; gap: 10px; margin-top: 4px; }
.upload-mini { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.upload-mini-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; color: var(--plum); margin-bottom: 8px; }
.sample-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sample-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1.5px solid var(--line-2); border-radius: 4px; padding: 4px 10px 4px 5px; font-size: 12px; font-weight: 700; color: var(--plum); }
.sample-chip img { width: 22px; height: 22px; object-fit: contain; }
.sample-chip.selected { border-color: var(--plum); background: var(--plum-soft); }
.options-row { display: grid; gap: 10px; }
.checkbox-card { display: flex; gap: 10px; align-items: center; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 14px; cursor: pointer; }
.checkbox-card input { width: 18px; height: 18px; accent-color: var(--plum); flex: 0 0 auto; }
.form-submit-bar { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.free-guarantee strong { display: block; font-family: var(--font-d); color: var(--plum); }
.free-guarantee span { font-size: 13px; color: var(--muted); }
.form-submit-bar .btn-lg { width: 100%; }
.submit-preview-col { min-width: 0; }
.preview-sticky-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.preview-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.preview-header h3 { font-size: 17px; margin-top: 6px; }
.canvas-stage { background: var(--ivory); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.canvas-stage canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.preview-caption { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* admin */
.admin-head-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.admin-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.preview-mode-chip { font-size: 11.5px; font-weight: 700; color: var(--plum); background: var(--plum-soft); padding: 3px 9px; border-radius: 4px; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; }
.admin-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font-family: var(--font-d); font-weight: 700; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; margin-bottom: -1px; }
.admin-tab.active { color: var(--plum); border-bottom-color: var(--gold); }
.tab-count { background: var(--line); color: var(--plum); border-radius: 4px; font-size: 11.5px; padding: 1px 8px; font-weight: 800; }
.admin-tab.active .tab-count { background: var(--plum); color: var(--white); }
.admin-queue-list { display: grid; gap: 20px; }
.admin-card { padding: 14px; display: grid; gap: 16px; }
.admin-card-media { display: grid; gap: 10px; align-content: start; }
.admin-card-media canvas { width: 100%; height: auto; border-radius: 5px; border: 1px solid var(--line); }
.admin-card-info { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-deal-title { font-size: 19px; }
.contact-box { background: var(--ivory); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); padding: 12px 14px; }
.contact-grid { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; margin: 0; font-size: 14px; }
.contact-grid dt { color: var(--muted); font-weight: 600; }
.contact-grid dd { margin: 0; font-weight: 700; color: var(--ink); word-break: break-word; }
.admin-line { font-size: 13.5px; }
.admin-line strong { color: var(--plum); }
.admin-notes { font-size: 14px; color: var(--ink); background: var(--white); border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request-box { background: var(--plum-soft); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }
.admin-thread summary { cursor: pointer; font-weight: 700; color: var(--plum); font-size: 13.5px; padding: 4px 0; }
.admin-thread .fb-list { margin-top: 8px; }
.admin-social { border-top: 1px solid var(--line); padding-top: 12px; }
.social-kit { display: grid; gap: 10px; }
.social-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.social-tab { flex: 0 0 auto; background: var(--ivory); border: 1.5px solid var(--line); border-radius: 4px; padding: 6px 12px; font-family: var(--font-d); font-weight: 700; font-size: 12.5px; color: var(--muted); }
.social-tab.active { background: var(--plum); border-color: var(--plum); color: var(--white); }
.social-text { font-size: 13.5px; line-height: 1.5; background: var(--ivory); }
.social-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.char-count { font-size: 12px; color: var(--muted); }

/* footer */
.site-footer { background: var(--plum); color: #D9CDDB; padding: 30px 0; border-top: 4px solid var(--gold); }
.footer-inner { display: grid; gap: 18px; }
.footer-logo { height: 40px; width: auto; background: var(--white); padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; box-sizing: content-box; }
.footer-brand p { font-size: 13.5px; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-link-btn { background: none; border: 0; color: var(--white); font-weight: 700; font-size: 14px; padding: 4px 0; }
.footer-link-btn:hover { color: var(--gold-2); }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(26,10,30,.62); z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 0; overflow-y: auto; }
.modal-dialog { background: var(--white); width: 100%; max-width: 1120px; border-radius: 6px 6px 0 0; position: relative; padding: 18px 14px 24px; margin-top: 40px; max-height: calc(100% - 40px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-dialog-sm { max-width: 640px; }
.modal-close { position: sticky; top: 0; float: right; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--plum); font-size: 24px; line-height: 1; box-shadow: var(--shadow); }
.modal-body-grid { display: grid; gap: 18px; clear: both; }
.modal-media { display: grid; gap: 10px; align-content: start; }
.modal-media canvas { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.modal-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.modal-title { font-size: 23px; font-weight: 900; }
.modal-amount { font-family: var(--font-d); font-weight: 900; font-size: 30px; color: var(--plum); line-height: 1.1; }
.modal-amount::after { content: ''; display: block; width: 46px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 8px; }
.modal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.modal-tab { flex: 0 0 auto; background: var(--ivory); border: 1.5px solid var(--line); border-radius: 4px; padding: 7px 12px; font-family: var(--font-d); font-weight: 700; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.modal-tab:hover { border-color: var(--gold); color: var(--plum); }
.modal-tab.active { background: var(--plum); border-color: var(--plum); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.modal-pane { display: grid; gap: 12px; }
.breakdown { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.breakdown dt { color: var(--muted); font-weight: 600; }
.breakdown dd { margin: 0; font-weight: 700; color: var(--ink); word-break: break-word; }
.notes-box { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.pane-hint { font-size: 13px; color: var(--muted); }
.comment-list, .dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment-item { display: flex; gap: 10px; font-size: 14px; }
.comment-item p { margin-top: 2px; }
.comment-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--plum); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 12px; }
.c-firm { color: var(--gold-dark); font-weight: 700; font-size: 12.5px; }
.dm-item { background: var(--ivory); border: 1px solid var(--line); border-radius: 6px 6px 6px 4px; padding: 10px 12px; font-size: 14px; max-width: 92%; }
.dm-item.dm-out { background: var(--plum-soft); border-color: #E1D3E3; border-radius: 6px 6px 4px 6px; justify-self: end; }
.muted-line { color: var(--muted); font-size: 14px; }
.stack-form { display: grid; gap: 10px; background: var(--white); border-top: 1px solid var(--line); padding-top: 12px; }
.stack-form .form-grid-2 { gap: 10px; }
.stack-form .btn { justify-self: start; }
.edit-modal-content h2 { font-size: 22px; margin: 8px 0 14px; }
.edit-modal-actions { justify-content: flex-end; margin-top: 14px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; background: var(--plum); color: var(--white); padding: 12px 18px; border-radius: 6px; font-weight: 600; font-size: 14px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); border-left: 4px solid var(--gold); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); width: max-content; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 430px) {
  .main-nav { gap: 0; justify-content: space-between; }
  .nav-btn { padding: 8px 9px; font-size: 13px; }
  .free-pill { display: none; }
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .main-nav { margin: 0; padding: 0; }
  .deals-grid { grid-template-columns: 1fr 1fr; }
  .select-group { grid-template-columns: repeat(3, 1fr); }
  .select-group #sortSelect { grid-column: auto; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .logo-uploads-grid { grid-template-columns: 1fr 1fr; }
  .options-row { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .options-row .field { margin-bottom: 0; }
  .demo-login-strip { flex-direction: row; align-items: center; justify-content: space-between; }
  .client-profile-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .submission-card { grid-template-columns: 150px 1fr; }
  .form-submit-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-submit-bar .btn-lg { width: auto; }
  .admin-card { grid-template-columns: 280px 1fr; }
  .modal-backdrop { align-items: flex-start; padding: 28px 20px; }
  .modal-dialog { border-radius: 6px; margin: 0 auto; max-height: none; padding: 24px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- ≥ 980px ---------- */
@media (min-width: 980px) {
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
  .brand-logo-img { height: 46px; }
  .brand-lockup { align-self: center; }
  .nav-btn { font-size: 14px; padding: 10px 14px; }
  .hero-inner { grid-template-columns: 1.35fr 1fr; align-items: center; padding-top: 44px; padding-bottom: 40px; gap: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat strong { font-size: 30px; }
  .filter-bar { grid-template-columns: minmax(200px, 1fr) auto minmax(500px, 1.5fr); align-items: center; }
  .select-group .select-field { font-size: 14px; padding-left: 11px; padding-right: 30px; background-position: right 10px center; }
  .deals-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .submit-layout { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); align-items: start; gap: 26px; }
  .preview-sticky-card { position: sticky; top: 96px; }
  .auth-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .admin-head-row { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .admin-card { grid-template-columns: 340px 1fr; padding: 18px; gap: 22px; }
  .modal-body-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; }
  .modal-media { position: sticky; top: 0; }
  .submission-card { grid-template-columns: 170px 1fr; }
}


/* =====================================================================
   v2 — REVOICE DEALS color architecture
   Deep Plum #2C1132 · Royal Plum #3E1A48 · Brushed Gold #B49658 · Champagne #F3ECE0
   ===================================================================== */
:root {
  --plum: #2C1132; --plum-2: #3E1A48; --plum-3: #4A2356;
  --gold: #B49658; --gold-2: #C5A664; --gold-lux: #E2C67E; --gold-hi: #D4B876; --gold-text: #E5CA89;
  --champagne: #F3ECE0; --warm-white: #FDFBF7; --ivory-txt: #EDE4D3; --card-line: #DCCBA8;
  --gold-metal: linear-gradient(135deg, #D9BE7E 0%, #C5A664 38%, #B49658 70%, #9F8248 100%);
}
body { background: var(--champagne); }

/* header */
.site-header { background: var(--plum); border-bottom: 2px solid var(--gold); box-shadow: 0 6px 20px rgba(28,8,32,.28); }
.header-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.brand-lockup { align-self: center; flex: 0 0 auto; }
.brand-logo-img { height: 34px; width: auto; }
.main-nav { margin: 0; padding: 0; gap: 2px; align-items: center; overflow: visible; }
.nav-btn { color: #EFE6F0; font-size: 13.5px; padding: 8px 10px; border-radius: 4px; }
.nav-btn:hover { color: #FFFFFF; background: rgba(255,255,255,.08); }
.nav-btn.active { color: #FFFFFF; background: rgba(180,150,88,.16); }
.nav-btn.active::after { left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold-hi); }
#navClientBtn { overflow: hidden; text-overflow: ellipsis; }
.nav-btn.nav-submit { background: var(--gold-metal); color: var(--plum); font-weight: 800; padding: 8px 14px 8px 12px; margin-left: 6px; box-shadow: 0 2px 10px rgba(180,150,88,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.nav-btn.nav-submit:hover { filter: brightness(1.06); color: var(--plum); background: var(--gold-metal); }
.nav-btn.nav-submit.active::after { display: none; }
.nav-btn.nav-submit.active { box-shadow: 0 0 0 2px var(--plum), 0 0 0 3.5px var(--gold-hi); }
.nav-submit .plus { font-size: 17px; line-height: 1; font-weight: 800; margin-right: -1px; }
.nav-submit .free-pill { background: var(--plum); color: var(--gold-text); }
.pending-badge { background: var(--gold); color: var(--plum); }

/* buttons */
.btn-primary { background: var(--plum); color: #FFFFFF; }
.btn-primary:hover { background: var(--plum-2); box-shadow: inset 0 -2px 0 var(--gold); }
.btn-gold { background: var(--gold-metal); color: var(--plum); font-weight: 800; }
.btn-gold:hover { filter: brightness(1.05); background: var(--gold-metal); }
.btn-gold-metal { background: var(--gold-metal); color: var(--plum); font-weight: 800; border: 0; box-shadow: 0 6px 18px rgba(180,150,88,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-gold-metal:hover { filter: brightness(1.06); }
.btn-hero-outline { background: rgba(255,255,255,.04); color: #FFFFFF; border-color: var(--gold); }
.btn-hero-outline:hover { background: rgba(180,150,88,.16); }
.btn-gold-outline { background: var(--warm-white); border-color: var(--gold); }
.btn-banner-ghost { background: transparent; color: var(--ivory-txt); border-color: rgba(212,184,118,.6); }
.btn-banner-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* hero */
.hero-band { position: relative; overflow: hidden; background:
    radial-gradient(900px 380px at 50% -10%, rgba(226,198,126,.16), transparent 60%),
    linear-gradient(160deg, #2C1132 0%, #351540 50%, #3E1A48 100%);
  border-bottom: 3px solid var(--gold); }
.hero-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #9F8248, #E2C67E 50%, #9F8248); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding-top: 30px; padding-bottom: 54px; max-width: 860px; }
.hero-kicker { color: var(--gold-hi); font-size: 10.5px; letter-spacing: .2em; }
.hero-title { color: #FFFFFF; text-transform: uppercase; font-weight: 900; font-size: clamp(34px, 9.6vw, 66px); line-height: .98; letter-spacing: -.015em; margin: 10px 0 12px; }
.hero-title .gold-word { display: block; background: linear-gradient(180deg, #F0DCA2 0%, #E2C67E 45%, #C5A664 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ivory-txt); font-size: 15px; max-width: 560px; }
.hero-actions { justify-content: center; margin-top: 18px; gap: 10px; }
.hero-actions .btn { padding: 12px 20px; }
.hero-search { position: relative; width: 100%; max-width: 640px; margin-top: 20px; border-radius: 4px; padding: 2px; background: linear-gradient(90deg, #E2C67E, #B49658 45%, #8E5C8E 100%); box-shadow: 0 10px 30px rgba(10,2,14,.35); }
.hero-search-input { width: 100%; border: 0; outline: none; border-radius: 4px; background: var(--warm-white); color: var(--plum); font-size: 15.5px; padding: 14px 60px 14px 44px; min-width: 0; -webkit-appearance: none; appearance: none; }
.hero-search-input::placeholder { color: #8A7B86; }
.hero-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search-input:focus { box-shadow: 0 0 0 3px rgba(226,198,126,.45); }
.hero-search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--gold); z-index: 1; }
.hero-search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold-metal); color: var(--plum); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.hero-search-btn:hover { filter: brightness(1.07); }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; z-index: 1; pointer-events: none; display: block; max-width: none; }

/* market strip + filters */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.market-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 18px 2px 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-margin-top: 70px; }
.market-strip::-webkit-scrollbar { display: none; }
.market-pill { flex: 0 0 auto; background: var(--warm-white); border: 1.5px solid var(--card-line); color: var(--plum); border-radius: 4px; padding: 9px 16px; font-family: var(--font-d); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.market-pill:hover { border-color: var(--gold); }
.market-pill.active { background: var(--plum); border-color: var(--plum); color: var(--gold-text); box-shadow: inset 0 -2px 0 var(--gold); }
.filter-bar { position: relative; background: var(--warm-white); border: 1.5px solid rgba(44,17,50,.18); border-top: 3px solid var(--gold); border-radius: 6px; padding: 12px; margin: 12px 0 10px; box-shadow: 0 8px 24px rgba(44,17,50,.08); }
.pill-btn { background: #F6F0E5; border-color: var(--card-line); color: var(--plum); }
.pill-btn.active { background: var(--plum); border-color: var(--plum); color: var(--gold-text); }
.select-group { grid-template-columns: 1fr 1fr; }
.select-group #sortSelect { grid-column: auto; }
.input-field, .select-field { background-color: #FFFFFF; border-color: var(--card-line); }
.input-field:focus, .select-field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,150,88,.3); }
.feed-count { color: var(--plum); opacity: .75; }

/* deal cards */
.deal-card { background: #FFFFFF; border: 1.5px solid var(--card-line); box-shadow: 0 2px 6px rgba(44,17,50,.06), 0 12px 28px rgba(44,17,50,.08); }
.deal-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--plum), 0 0 0 4px var(--gold), 0 18px 40px rgba(44,17,50,.18); }
.deal-card-media { background: var(--plum); }
.deal-card-body { border-top: 3px solid var(--gold); }
.deal-card-tags { padding-bottom: 8px; border-bottom: 1px solid #EADFC9; }
.type-chip { background: var(--plum); color: var(--gold-text); }
.type-chip.type-sale { background: var(--gold); color: var(--plum); }
.type-chip.type-lease { background: var(--plum-2); color: #FFFFFF; }
.asset-chip { background: #F5ECDB; color: #7D6435; }
.deal-card-amount { color: var(--plum); font-size: 17px; }
.deal-card-foot { border-top: 1px solid #EADFC9; }
.deal-card-foot .btn { background: var(--plum); color: #FFFFFF; border-color: var(--plum); }
.deal-card-foot .btn:hover { background: var(--plum-2); color: var(--gold-text); border-color: var(--gold); }
.empty-state { background: var(--warm-white); border-color: var(--card-line); }

/* sub-page banners */
.page-banner { position: relative; overflow: hidden; background: radial-gradient(700px 260px at 85% -20%, rgba(226,198,126,.16), transparent 60%), linear-gradient(160deg, #2C1132 0%, #3E1A48 100%); border-bottom: 3px solid var(--gold); }
.page-banner-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; padding-top: 26px; padding-bottom: 34px; }
.banner-kicker { font-family: var(--font-d); font-weight: 800; font-size: 10.5px; letter-spacing: .18em; color: var(--gold-hi); }
.banner-title { color: #FFFFFF; font-weight: 900; font-size: clamp(26px, 6.4vw, 40px); letter-spacing: -.01em; margin: 6px 0 8px; }
.banner-desc { color: var(--ivory-txt); max-width: 720px; font-size: 14.5px; }
.banner-badge { align-self: flex-start; background: var(--gold-metal); color: var(--plum); font-family: var(--font-d); font-weight: 900; letter-spacing: .08em; font-size: 13px; padding: 8px 14px; border-radius: 4px; box-shadow: 0 4px 14px rgba(180,150,88,.35); }
.banner-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.banner-chip { font-size: 11.5px; font-weight: 700; color: var(--gold-text); background: rgba(180,150,88,.14); border: 1px solid rgba(212,184,118,.45); padding: 4px 10px; border-radius: 4px; }
.banner-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: 1; opacity: .5;
  background: linear-gradient(transparent, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V26h20V14h14v26h10V20h18V8h8v-6h4v6h8v32h12V22h22v18h10V12h16V4h6v8h10v28h14V24h20v16h12V16h14v24h18V28h16V10h10V2h4v8h10v30h12V20h20v20h14V26h18V12h12v28h10V18h22v22h16V8h8v32h14V24h18v16h12V14h16v26h10V28h20V16h12v24h14V6h6v34h12V22h18v18h16V26h14V12h12v28h18V20h16v20h14V28h18V16h10v24h12V10h14v30h16V24h20v16H600V40z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V26h20V14h14v26h10V20h18V8h8v-6h4v6h8v32h12V22h22v18h10V12h16V4h6v8h10v28h14V24h20v16h12V16h14v24h18V28h16V10h10V2h4v8h10v30h12V20h20v20h14V26h18V12h12v28h10V18h22v22h16V8h8v32h14V24h18v16h12V14h16v26h10V28h20V16h12v24h14V6h6v34h12V22h18v18h16V26h14V12h12v28h18V20h16v20h14V28h18V16h10v24h12V10h14v30h16V24h20v16H600V40z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  background-color: var(--gold); }
.page-wrap { padding-top: 22px; }

/* sub-page surfaces */
.card { background: #FFFFFF; border: 1.5px solid var(--card-line); box-shadow: 0 2px 6px rgba(44,17,50,.05), 0 10px 26px rgba(44,17,50,.07); }
.auth-card, .form-card { border-top: 3px solid var(--gold); }
.auth-card h2 { padding-bottom: 8px; border-bottom: 1px solid #EADFC9; margin-bottom: 10px; }
.auth-gate-card { background: #FFFFFF; border: 1.5px solid var(--card-line); border-top: 4px solid var(--gold); }
.demo-login-strip { background: linear-gradient(135deg, #2C1132, #3E1A48); border: 1px solid rgba(180,150,88,.5); box-shadow: inset 4px 0 0 var(--gold); margin-top: 0; }
.demo-login-strip span { color: var(--ivory-txt); }
.auth-note-box, .upload-box, .upload-mini, .checkbox-card, .dealmaker-row, .notes-box { background: #FBF7EF; border-color: #E6D8BC; }
.form-section-title { color: var(--plum); }
.step-num { background: var(--plum); color: var(--gold-text); box-shadow: 0 0 0 2px var(--gold); }
.req-badge { background: var(--gold); color: var(--plum); }
.form-submit-bar { background: linear-gradient(135deg, #2C1132, #3E1A48); margin: 14px -16px -16px; padding: 16px; border-radius: 0 0 6px 6px; border-top: 3px solid var(--gold); }
.free-guarantee strong { color: var(--gold-text); }
.free-guarantee span { color: var(--ivory-txt); }
.form-submit-bar .btn-primary { background: var(--gold-metal); color: var(--plum); font-weight: 800; }
.preview-sticky-card { background: #FFFFFF; border: 1.5px solid var(--card-line); border-top: 4px solid var(--gold); }
.preview-header { background: var(--plum); margin: -14px -14px 12px; padding: 12px 14px; border-radius: 6px 6px 0 0; }
.preview-header h3 { color: #FFFFFF; }
.preview-header .gold-tag { background: rgba(180,150,88,.18); border-color: rgba(212,184,118,.5); color: var(--gold-text); }
.preview-header .btn-gold-outline { background: transparent; color: var(--gold-text); }
.submitter-banner { background: #FFFFFF; border-color: var(--card-line); }
.client-profile-header { background: linear-gradient(135deg, #2C1132, #3E1A48); border-color: rgba(180,150,88,.55); border-top: 4px solid var(--gold); }
.client-profile-header .profile-name { color: #FFFFFF; }
.client-profile-header .profile-meta { color: var(--gold-text); }
.client-profile-header .profile-contact { color: var(--ivory-txt); }
.client-profile-header .btn-ghost { background: transparent; color: var(--ivory-txt); border-color: rgba(212,184,118,.6); }
.client-profile-header .btn-primary { background: var(--gold-metal); color: var(--plum); font-weight: 800; }
.avatar-circle { box-shadow: 0 0 0 3px var(--plum), 0 0 0 5px var(--gold); color: var(--gold-text); }

/* admin */
.admin-tabs { background: var(--plum); border-radius: 6px; padding: 4px; border: 0; border-bottom: 3px solid var(--gold); gap: 2px; }
.admin-tab { color: #DCCFDD; border-bottom: 0; border-radius: 5px; margin-bottom: 0; }
.admin-tab.active { color: var(--plum); background: var(--gold-metal); }
.tab-count { background: rgba(255,255,255,.14); color: #FFFFFF; }
.admin-tab.active .tab-count { background: var(--plum); color: var(--gold-text); }
.admin-card { border-left: 4px solid var(--gold); }
.contact-box { background: #FBF7EF; border-color: var(--card-line); box-shadow: inset 3px 0 0 var(--plum); }

/* modal */
.modal-backdrop { background: rgba(26,8,30,.72); }
.modal-dialog { background: var(--warm-white); border-top: 4px solid var(--gold); }
.modal-close { background: var(--plum); color: var(--gold-text); border-color: var(--gold); }
.modal-head-bar { background: radial-gradient(500px 200px at 90% -30%, rgba(226,198,126,.2), transparent 60%), linear-gradient(150deg, #2C1132, #3E1A48); border-radius: 6px; padding: 16px 16px 14px; border-bottom: 3px solid var(--gold); display: flex; flex-direction: column; gap: 6px; }
.modal-head-bar .modal-title { color: #FFFFFF; }
.modal-head-bar .modal-amount { color: var(--gold-lux); }
.modal-head-bar .modal-amount::after { background: var(--gold-lux); }
.modal-head-bar .deal-card-market { color: var(--ivory-txt); }
.modal-head-bar .asset-chip { background: rgba(180,150,88,.2); color: var(--gold-text); }
.modal-head-bar .type-chip { box-shadow: 0 0 0 1px rgba(212,184,118,.6); }
.modal-tabs { background: var(--champagne); border: 1px solid #E6D8BC; border-radius: 6px; padding: 6px; margin: 4px 0 6px; }
.modal-tab { background: #FFFFFF; border-color: #E6D8BC; color: var(--plum); }
.modal-tab.active { background: var(--plum); color: var(--gold-text); border-color: var(--plum); box-shadow: inset 0 -3px 0 var(--gold); }
.breakdown { background: var(--champagne); border: 1px solid #E6D8BC; border-radius: 6px; padding: 12px 14px; }
.breakdown dt { color: #7D6435; }
.modal-media canvas { border: 1.5px solid var(--card-line); }

/* footer */
.site-footer { background: var(--plum); border-top: 3px solid var(--gold); color: #D9CDDB; padding: 30px 0 18px; }
.footer-logo { background: none; padding: 0; border-radius: 0; height: 44px; margin-bottom: 10px; }
.footer-brand p { color: var(--ivory-txt); opacity: .85; }
.footer-link-btn { color: var(--gold-text); }
.footer-link-btn:hover { color: #FFFFFF; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(180,150,88,.28); font-size: 12px; color: rgba(237,228,211,.55); }
.footer-admin-btn { background: none; border: 0; color: rgba(237,228,211,.5); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.footer-admin-btn:hover { color: var(--gold-text); }
.footer-admin-btn .pending-badge { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; background: rgba(180,150,88,.4); color: #FFFFFF; }

.toast { border-left-color: var(--gold); }

@media (max-width: 430px) {
  .container { padding: 0 14px; }
  .brand-logo-img { height: 30px; }
  .nav-btn { padding: 7px 8px; font-size: 13px; }
  .nav-btn.nav-submit { padding: 7px 12px 7px 10px; margin-left: 4px; }
  .nav-submit .free-pill { display: none; }
  .market-strip { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .hero-actions .btn { padding: 11px 16px; font-size: 13.5px; }
  .form-submit-bar { margin: 14px -16px -16px; }
}
@media (min-width: 640px) {
  .market-strip { margin: 0; padding-left: 2px; padding-right: 2px; }
  .filter-bar { grid-template-columns: auto 1fr; align-items: center; }
  .select-group { grid-template-columns: 1fr 1fr; }
  .page-banner-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .banner-badge, .banner-side { align-self: center; flex: 0 0 auto; }
  .form-submit-bar { margin: 14px -16px -16px; }
}
@media (min-width: 980px) {
  .brand-logo-img { height: 42px; }
  .nav-btn { font-size: 14px; padding: 9px 14px; }
  .hero-inner { display: flex; padding-top: 44px; padding-bottom: 76px; }
  .hero-skyline { height: 92px; }
  .filter-bar { grid-template-columns: auto minmax(0, 520px); justify-content: space-between; }
  .page-banner-inner { padding-top: 36px; padding-bottom: 46px; }
  .banner-skyline { height: 52px; }
}

.hide-sm { display: inline; }
.hero-skyline { height: 70px; }
@media (max-width: 430px) {
  .hide-sm { display: none; }
  #navClientBtn { max-width: 112px; display: inline-block; }
  .hero-inner { padding-top: 26px; padding-bottom: 44px; }
  .hero-kicker { font-size: 9.5px; letter-spacing: .16em; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { padding: 11px 18px; }
  .hero-skyline { height: 58px; }
}
@media (min-width: 980px) { .hero-skyline { height: 96px; } }

.hero-sub { max-width: 640px; }

@media (min-width: 980px) {
  .submit-preview-col { position: sticky; top: 84px; align-self: start; }
  .preview-sticky-card { position: static; }
}
.banner-skyline { opacity: .38; }

/* Clean REVOICE header refinements */
.site-header {
  background: linear-gradient(180deg, #FFFDF8 0%, #F7F0E2 100%) !important;
  border-top: 4px solid #B49658 !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #8F6F30 0%, #DFC37B 35%, #B49658 65%, #E6CC87 100%) 1 !important;
  box-shadow: 0 4px 20px rgba(44, 17, 50, 0.14) !important;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  height: 34px !important;
  width: auto;
  display: block;
}
.brand-divider {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, #D9BC74 0%, #B49658 100%);
  border-radius: 2px;
}
.brand-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #8F6F30;
  text-transform: uppercase;
}
.nav-client-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2C1132 0%, #441C4F 100%) !important;
  color: #F4E6C6 !important;
  border: 1.5px solid #B49658 !important;
  border-radius: 4px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  box-shadow: 0 2px 10px rgba(44, 17, 50, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nav-client-pill svg { color: #DFC37B; flex-shrink: 0; }
.nav-client-pill:hover, .nav-client-pill.active {
  background: linear-gradient(135deg, #D5B874 0%, #B49658 100%) !important;
  color: #2C1132 !important;
  border-color: #2C1132 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(180, 150, 88, 0.35);
}
.nav-client-pill:hover svg, .nav-client-pill.active svg { color: #2C1132; }
.hero-band {
  background:
    radial-gradient(ellipse 75% 65% at 50% 0%, rgba(212, 184, 118, 0.22) 0%, rgba(212, 184, 118, 0) 68%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(122, 46, 138, 0.32) 0%, rgba(44, 17, 50, 0) 70%),
    linear-gradient(165deg, #240C2A 0%, #371640 52%, #2C1132 100%) !important;
}
.hero-title .gold-word {
  background: linear-gradient(180deg, #F5E0A3 0%, #D4B56C 52%, #B49658 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
@media (max-width: 640px) {
  .brand-logo-img { height: 28px !important; }
  .brand-divider, .brand-tag { display: none; }
  .nav-client-pill { padding: 7px 14px !important; font-size: 13px !important; }
}

/* Header underline fix + Client Marketing Kit + Mobile My Submitted Deals */
.brand-lockup { text-decoration: none !important; }
.brand-lockup:hover { text-decoration: none !important; }
.social-btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.submission-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.submission-top {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
}
.submission-thumb canvas {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.submission-summary { min-width: 0; }
.submission-summary h3 { margin: 8px 0 6px; }
.submission-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.sub-market {
  color: #5F5364;
  font-size: 13.5px;
}
.client-marketing-box {
  background: #FAF5EA;
  border: 1.5px solid rgba(180, 150, 88, 0.55);
  border-radius: 6px;
  padding: 12px 14px;
}
.client-marketing-box summary {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #2C1132;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.client-marketing-box summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 700;
  color: #B49658;
}
.client-marketing-box[open] summary::after { content: '−'; }
.client-marketing-box[open] summary { margin-bottom: 12px; }
.marketing-lock-note {
  margin: 0;
  padding: 10px 12px;
  background: #F6F1E7;
  border-left: 3px solid #B49658;
  border-radius: 6px;
  font-size: 13px;
  color: #5F5364;
}
@media (max-width: 640px) {
  .submission-top {
    grid-template-columns: 104px 1fr;
    gap: 12px;
  }
  .inline-reply {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .inline-reply .input-field {
    flex: 1;
    min-width: 0;
  }
}

/* Password input with clean Show/Hide toggle */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .input-field { padding-right: 68px; width: 100%; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #5C4962; font-family: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; padding: 6px 8px; border-radius: 6px;
}
.pw-toggle:hover { color: #2C1132; background: rgba(44, 17, 50, 0.06); }
.auth-card h2 { margin-bottom: 18px; }

/* Deal modal login gate & logged-in identity chip */
.modal-auth-gate {
  background: #FAF5EA;
  border: 1px solid rgba(180, 150, 88, 0.35);
  border-radius: 6px;
  padding: 28px 22px;
  text-align: center;
  margin-top: 8px;
}
.modal-auth-gate h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: #2C1132;
}
.modal-auth-gate p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5C4962;
}
.posting-as-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #FAF5EA;
  border: 1px solid rgba(180, 150, 88, 0.32);
  border-radius: 6px;
  font-size: 12.5px;
  color: #5C4962;
  margin-bottom: 2px;
}
.posting-as-bar strong {
  color: #2C1132;
  font-weight: 700;
}
.posting-as-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B49658;
  flex-shrink: 0;
}

/* Centered single-card Sign In / Create Account toggle */
.auth-single-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.auth-switch-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 17, 50, 0.10);
  text-align: center;
  font-size: 13.5px;
  color: #5C4962;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.auth-switch-link {
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: #2C1132;
  text-decoration: underline;
  text-decoration-color: #B49658;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-switch-link:hover { color: #8A6B2F; }


/* ---------- v6: Submit form upgrades ---------- */
.opt { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.currency-wrap { position: relative; display: flex; align-items: stretch; }
.currency-prefix { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 38px; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 16px; color: var(--plum); background: #F5EFE2; border-right: 1px solid #E6D8BC; border-radius: 3px 0 0 3px; pointer-events: none; z-index: 1; }
.currency-wrap .input-field { padding-left: 50px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 600 !important; color: var(--muted) !important; cursor: pointer; user-select: none; line-height: 1.3; }
.check-inline input { width: 16px; height: 16px; margin: 0; accent-color: var(--plum); flex: 0 0 auto; }
.check-inline input:checked + span { color: var(--plum); }
.field .check-inline { margin-top: 2px; }
.field-check-end { justify-content: flex-end; padding-bottom: 12px; }
.subsection-title { font-family: var(--font-d); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7D6435; margin: 6px 0 10px; }
.lot-wrap { display: flex; align-items: stretch; }
.lot-wrap .input-field { border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1 1 auto; }
.lot-wrap .lot-unit { width: auto; flex: 0 0 92px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; background-color: #F5EFE2 !important; font-weight: 700; font-size: 13.5px; color: var(--plum); padding-left: 11px; padding-right: 26px; background-position: right 9px center; }
.dyn-list { display: flex; flex-direction: column; gap: 10px; }
.dyn-list:empty { display: none; }
.dyn-list + .add-row-btn, .dyn-list + .dyn-list { margin-top: 10px; }
.dyn-card { position: relative; background: #FBF7EF; border: 1px solid #E6D8BC; border-radius: 6px; padding: 12px 12px 2px; }
.dyn-card-title { font-family: var(--font-d); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin: 0 30px 10px 0; }
.dyn-card .field { margin-bottom: 10px; }
.dyn-card .field label { font-size: 12.5px; }
.dyn-row { display: flex; gap: 8px; align-items: center; }
.dyn-row .input-field { flex: 1 1 auto; }
.dyn-remove { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 20px; line-height: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.dyn-remove:hover { color: var(--bad); background: #FBF1F0; border-color: #F0D6D3; }
.dyn-card .dyn-remove { position: absolute; top: 6px; right: 6px; }
.add-row-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; background: none; border: 1.5px dashed var(--gold); color: var(--plum); font-family: var(--font-d); font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 4px; transition: background .15s, border-color .15s; }
.add-row-btn:hover { background: #F5EFE2; border-style: solid; }
.add-row-btn:disabled { opacity: .45; cursor: not-allowed; }
.party-block { padding: 4px 0 16px; margin-bottom: 14px; border-bottom: 1px dashed #E6D8BC; }
.party-block-last { border-bottom: 0; margin-bottom: 4px; padding-bottom: 6px; }
.party-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin-bottom: 8px; }
.party-head .subsection-title { margin: 0; }
.collapse-box { overflow: hidden; transition: max-height .28s ease, opacity .22s ease; max-height: 1600px; opacity: 1; }
.collapse-box.is-collapsed { max-height: 0; opacity: 0; pointer-events: none; }
.counter-field { margin-top: 14px; margin-bottom: 0; }
.partner-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.dyn-list + .partner-btns { margin-top: 10px; }
.private-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; background: #F3EDF4; border: 1px solid #DCCFE0; color: var(--plum); font-family: var(--font-d); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; vertical-align: 1px; white-space: nowrap; }
.admin-detail { display: grid; grid-template-columns: 128px 1fr; gap: 5px 12px; margin: 10px 0; font-size: 13.5px; background: #FBF7EF; border: 1px solid #E6D8BC; border-radius: 6px; padding: 10px 12px; }
.admin-detail dt { color: #7D6435; font-weight: 600; }
.admin-detail dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
@media (min-width: 720px) {
  .dyn-card .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .admin-detail { grid-template-columns: 1fr; gap: 1px; }
  .admin-detail dd { margin-bottom: 6px; }
  .field-check-end { padding-bottom: 6px; }
}
@media (min-width: 640px) { .field-span-2 { grid-column: 1 / -1; } }
@media (max-width: 480px) { .dyn-card .form-grid-3, .dyn-card .form-grid-2 { grid-template-columns: 1fr; } }


/* ===== v8: 5 deal types, institutional specs, parties & Voice & Social ===== */
.field-label { font-weight: 700; font-size: 12.5px; color: var(--plum); }
.field-hint-tight { margin: 0; font-size: 12px; line-height: 1.4; }
.section-row-wrap { margin-bottom: 4px; }
.section-row-wrap .form-section-title { margin-bottom: 4px; }
.deal-type-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-pill { flex: 1 1 auto; min-width: 0; background: #FFFFFF; border: 1.5px solid var(--card-line); color: var(--plum); border-radius: 4px; padding: 9px 14px; font-family: var(--font-d); font-weight: 700; font-size: 13px; line-height: 1.1; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.dt-pill:hover { border-color: var(--gold); background: #FBF7EF; }
.dt-pill.active { background: var(--plum); border-color: var(--plum); color: var(--gold-text); box-shadow: 0 0 0 2px rgba(180,150,88,.35); }
.basics-grid { margin-top: 12px; }
.other-input { margin-top: 6px; }
.currency-suffix { position: absolute; right: 1.5px; top: 1.5px; bottom: 1.5px; display: flex; align-items: center; padding: 0 12px; font-family: var(--font-d); font-weight: 700; font-size: 12.5px; color: var(--gold-dark); background: #F5EFE2; border-left: 1px solid var(--card-line); border-radius: 0 3px 3px 0; pointer-events: none; }
.currency-wrap .currency-suffix + .input-field, .currency-wrap .input-field:has(+ .currency-suffix) { padding-right: 64px; }
.pct-wrap { position: relative; }
.pct-wrap .input-field { padding-right: 34px; }
.pct-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--font-d); font-weight: 800; font-size: 14px; color: var(--gold-dark); pointer-events: none; }
.specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 0 12px; }
.specs-grid .spec-lot { grid-column: 1 / -1; }
.specs-grid .spec-keys label::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--gold); vertical-align: 2px; }
@media (min-width: 720px) {
  .specs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs-grid .spec-lot { grid-column: auto; }
}
#addressField.is-collapsed { max-height: 0; margin: 0; }
/* party rows: name + side + @handle */
.party-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.party-row .pr-name { flex: 1 1 auto; min-width: 0; }
.party-row .side-select { flex: 0 0 132px; width: 132px; font-size: 13px; font-weight: 600; color: var(--plum); }
.party-row .ig-wrap { flex: 0 0 150px; width: 150px; }
.party-row-2 .ig-wrap { flex-basis: 170px; width: 170px; }
.ig-wrap { position: relative; min-width: 0; }
.ig-at { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-d); font-weight: 800; font-size: 13px; color: var(--gold-dark); pointer-events: none; }
.ig-wrap .ig-input { padding-left: 25px; font-size: 13px; }
#brokerFields > .field { margin-bottom: 10px; }
.dyn-list-tight > * + * { margin-top: 8px; }
.dyn-list-tight:not(:empty) + .add-row-btn { margin-top: 8px; }
@media (max-width: 640px) {
  .party-row { flex-wrap: wrap; }
  .party-row .pr-name { flex: 1 1 100%; }
  .party-row .side-select { flex: 1 1 0; width: auto; }
  .party-row .ig-wrap { flex: 1 1 0; width: auto; }
  .party-row-2 .pr-name { flex: 1 1 calc(100% - 40px); }
  .party-row-2 .ig-wrap { flex: 1 1 calc(100% - 40px); }
  .dyn-row.party-row { position: relative; padding-right: 0; }
  .dyn-row.party-row .dyn-remove { order: 5; }
}
/* Voice & Social */
.form-section-voice { background: linear-gradient(180deg, rgba(243,236,224,.55), rgba(243,236,224,0)); margin: 0 -2px; padding-left: 2px; padding-right: 2px; }
.voice-grid { display: grid; grid-template-columns: 1fr; gap: 12px 14px; }
.voice-grid > .field { margin-bottom: 0; }
@media (min-width: 720px) {
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .voice-grid .voice-card-audio { grid-column: 1 / -1; }
}
.voice-card { background: #FFFDF8; border: 1px solid var(--card-line); border-left: 3px solid var(--gold); border-radius: 6px; padding: 12px 14px; display: grid; gap: 10px; }
.voice-card-head { display: flex; gap: 10px; align-items: flex-start; }
.voice-mark { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--plum); color: var(--gold-text); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(180,150,88,.45); }
.voice-title { display: block; font-weight: 800; font-size: 13.5px; color: var(--plum); font-family: var(--font-d); }
.voice-help { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.voice-preview { display: flex; align-items: center; gap: 10px; min-width: 0; }
.voice-preview audio { flex: 1 1 auto; min-width: 0; width: 100%; height: 38px; }
.logo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-thumbs:not(:empty) { margin-top: 8px; }
.logo-thumb { position: relative; width: 74px; height: 50px; border: 1px solid var(--card-line); border-radius: 5px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 5px; }
.logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-thumb-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--card-line); background: #FFFFFF; color: var(--plum); font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.logo-thumb-x:hover { color: var(--bad); border-color: #F0D6D3; }
.file-btn.is-disabled { opacity: .45; pointer-events: none; }
/* Deal Breakdown voiceover */
.voice-box { background: linear-gradient(135deg, #2C1132 0%, #3E1A48 100%); border: 1px solid rgba(212,184,118,.55); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.voice-box .mini-label { color: var(--gold-text); margin: 0; }
.voice-box-head { display: flex; gap: 10px; align-items: center; }
.voice-box-sub { margin: 2px 0 0; color: #EDE4D3; font-size: 12.5px; }
.voice-box audio { width: 100%; height: 38px; }
.admin-audio { display: block; width: 100%; max-width: 360px; height: 36px; margin-bottom: 4px; }
.voice-meta { font-size: 12px; color: var(--muted); }
.admin-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-logos img { height: 34px; max-width: 96px; object-fit: contain; background: #FFFFFF; border: 1px solid #E6D8BC; border-radius: 6px; padding: 3px; }
.type-chip.type-under-contract { background: #FFFFFF; color: var(--plum); box-shadow: 0 0 0 1.5px var(--gold); }
.type-chip.type-equity { background: var(--plum-3); color: var(--gold-text); }
#fRentPsf { padding-right: 64px; }
@media (min-width: 720px) { .voice-grid .voice-span { grid-column: 1 / -1; } }
@media (max-width: 639px) { .basics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .basics-grid > .field { grid-column: 1 / -1; } .basics-grid > .field.half-sm { grid-column: auto; } }
@media (max-width: 640px) { .party-row.party-row-2 { flex-wrap: nowrap; } .party-row.party-row-2 .pr-name { flex: 1 1 auto; } .party-row.party-row-2 .ig-wrap { flex: 0 0 128px; width: 128px; } }

/* ---------- v9: inline party photo upload ---------- */
.pr-photo { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pr-photo-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border: 1px dashed var(--gold, #B49658); border-radius: 4px; background: #FFFDF8; color: var(--plum, #2C1132); font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.pr-photo-btn:hover { background: #F6EEDD; border-style: solid; }
.pr-photo-btn:focus-within { outline: 2px solid var(--gold, #B49658); outline-offset: 2px; }
.pr-photo.has-photo { position: relative; padding-right: 2px; }
.pr-thumb { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--plum, #2C1132); box-shadow: 0 0 0 2px #FFFDF8, 0 2px 6px rgba(44,17,50,.18); flex: 0 0 40px; background: #F3EEE5; }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-photo-change { font-size: 11px; font-weight: 700; color: var(--gold-dark, #8C7140); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.pr-thumb-x { position: absolute; top: -5px; left: 28px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #E6D8BC; background: #FFFFFF; color: var(--plum, #2C1132); font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pr-thumb-x:hover { color: var(--bad, #B3261E); }
.collapse-box.is-collapsed .pr-photo-btn { opacity: .5; pointer-events: none; }
.prop-photo-preview { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.prop-photo-preview img { width: 132px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid #E6D8BC; box-shadow: 0 2px 8px rgba(44,17,50,.12); }
.admin-faces { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.admin-face { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.admin-face img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--plum, #2C1132); }
.admin-face em { font-style: normal; color: var(--muted); max-width: 90px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .party-row .side-select { flex: 1 1 0; min-width: 0; }
  .party-row.party-row-2 { flex-wrap: nowrap; }
  .party-row.party-row-2 .pr-name { flex: 1 1 auto; min-width: 0; }
  .pr-photo-btn { padding: 0 10px; font-size: 11.5px; }
}
#dealForm label.pr-photo-btn { font-size: 12px; font-weight: 700; margin: 0; line-height: 1; color: var(--plum, #2C1132); text-transform: none; letter-spacing: .02em; }
#dealForm label.pr-photo-change { font-size: 11px; font-weight: 700; margin: 0; line-height: 1; color: var(--gold-dark, #8C7140); text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { #dealForm label.pr-photo-btn { font-size: 11.5px; } }

/* ---------- v14: inline Photo + Logo pills on every party row ---------- */
.pr-media { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pr-media .pr-photo-btn { height: 40px; padding: 0 13px; min-width: 0; }
.pr-logo-btn { border-color: var(--plum, #2C1132); border-style: dashed; background: #FFFFFF; }
.pr-logo-btn:hover { background: #F5EEF6; }
label.pr-thumb { display: inline-block; cursor: pointer; }
.pr-logo.has-photo { position: relative; padding-right: 2px; }
.pr-logo-thumb { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 40px; border-radius: 5px; border: 1.5px solid var(--gold, #B49658); background: #FFFFFF; padding: 4px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 6px rgba(44,17,50,.12); flex: 0 0 58px; }
.pr-logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pr-logo .pr-thumb-x { left: auto; right: -6px; top: -6px; }
.pr-photo.has-photo:not(.pr-logo) .pr-thumb-x { left: 28px; }
.collapse-box.is-collapsed .pr-media { opacity: .5; pointer-events: none; }
.admin-logo-face img { width: 64px; height: 40px; border-radius: 6px; object-fit: contain; background: #FFFFFF; border: 1px solid #E6D8BC; padding: 3px; }
#dealForm label.pr-logo-btn { font-size: 12px; font-weight: 700; margin: 0; line-height: 1; color: var(--plum, #2C1132); text-transform: none; letter-spacing: .02em; }
@media (max-width: 640px) {
  .pr-media { gap: 5px; }
  .pr-media .pr-photo-btn { padding: 0 10px; height: 38px; }
  .pr-logo-thumb { width: 50px; flex-basis: 50px; height: 38px; }
  .pr-thumb { width: 38px; height: 38px; flex-basis: 38px; }
  #dealForm label.pr-logo-btn { font-size: 11.5px; }
}


/* ===== v15: Closed Deals | For Sale & Lease, Track Record profiles ===== */
.feed-switch { display: flex; gap: 0; margin: 22px auto 0; max-width: 460px; background: #FFFFFF; border: 1.5px solid var(--card-line); border-radius: 4px; padding: 4px; box-shadow: 0 4px 14px rgba(44,17,50,.06); scroll-margin-top: 76px; }
.feed-switch-btn { flex: 1 1 50%; min-width: 0; border: 0; background: transparent; border-radius: 4px; padding: 11px 12px; font-family: var(--font-d); font-weight: 800; font-size: 14px; letter-spacing: .01em; color: var(--plum); white-space: nowrap; transition: background .15s, color .15s; }
.feed-switch-btn:hover { background: var(--champagne); }
.feed-switch-btn.active { background: var(--plum); color: var(--gold-text); box-shadow: inset 0 -3px 0 var(--gold); }
.feed-switch + .market-strip { padding-top: 14px; }

.type-chip.type-for-sale { background: var(--gold); color: var(--plum); }
.type-chip.type-for-lease { background: #FFFFFF; color: var(--plum); box-shadow: 0 0 0 1.5px var(--plum); }
.offmarket-chip { font-family: var(--font-d); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--plum-soft, #F3EDF4); color: var(--plum); border: 1px dashed rgba(44,17,50,.35); }
.modal-head-bar .offmarket-chip { background: rgba(255,255,255,.08); color: var(--ivory-txt); border-color: rgba(237,228,211,.45); }
.modal-head-bar .type-chip.type-for-lease { background: rgba(255,255,255,.06); color: var(--gold-text); box-shadow: 0 0 0 1px rgba(212,184,118,.6); }

/* clickable people & firms */
.party-link { display: inline; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--plum); font-weight: 700; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(180,150,88,.55); text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: 3px; }
.party-link:hover, .party-link:focus-visible { color: var(--gold-dark, #8E7440); text-decoration-color: var(--gold); outline: none; }
.party-extra { color: var(--muted); font-weight: 600; }
.title-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.title-link:hover { color: var(--gold-dark, #8E7440); }
.deal-card-firms { line-height: 1.5; }
.deal-card-parties { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.cp-label { font-family: var(--font-d); font-weight: 800; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #7D6435; margin-right: 2px; }
.deal-card-parties .party-link { font-weight: 700; font-size: 12.5px; }
.cp-sep { color: var(--muted); }
.breakdown dd .party-link { font-weight: 800; }

/* submit: Closed Deal vs For Sale / For Lease */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 16px; }
.mode-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #FFFFFF; border: 1.5px solid var(--card-line); border-radius: 6px; padding: 11px 13px; color: var(--plum); min-width: 0; transition: background .15s, border-color .15s; }
.mode-btn strong { font-family: var(--font-d); font-weight: 800; font-size: 14px; }
.mode-btn span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.mode-btn:hover { border-color: var(--gold); }
.mode-btn.active { background: var(--plum); border-color: var(--plum); box-shadow: inset 0 -3px 0 var(--gold); }
.mode-btn.active strong { color: var(--gold-text); }
.mode-btn.active span { color: var(--ivory-txt); }
.rent-wrap { display: flex; }
.rent-wrap .currency-wrap { flex: 1 1 auto; min-width: 0; }
.rent-wrap .currency-wrap .input-field { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rent-wrap .rent-unit { width: auto; flex: 0 0 124px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; background-color: #F5EFE2 !important; font-weight: 700; font-size: 13.5px; color: var(--plum); padding-left: 11px; padding-right: 26px; background-position: right 9px center; }
#fRent:disabled { background: #F4F0E8; color: var(--muted); }

/* listing modal extras */
.om-btn { text-decoration: none; display: inline-flex; align-items: center; }
.modal-kit { margin-top: 14px; }

/* PROFILE / TRACK RECORD */
.profile-banner { padding: 18px 0 30px; }
.profile-back { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(212,184,118,.55); color: var(--gold-text); border-radius: 4px; padding: 8px 16px; font-family: var(--font-d); font-weight: 800; font-size: 13px; position: relative; z-index: 2; }
.profile-back:hover { background: rgba(255,255,255,.16); }
.profile-head { position: relative; z-index: 2; margin-top: 18px; }
.profile-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.profile-id-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.profile-avatar { flex: 0 0 92px; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: #FFFFFF; border: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar.profile-logo { border-radius: 6px; padding: 10px; }
.profile-avatar.profile-logo img { object-fit: contain; }
.profile-mono { background: linear-gradient(150deg, #3E1A48, #2C1132); color: var(--gold-text); font-family: var(--font-d); font-weight: 900; font-size: 32px; letter-spacing: .02em; }
.profile-name-lg { color: #FFFFFF; font-weight: 900; font-size: clamp(24px, 5.6vw, 38px); letter-spacing: -.01em; overflow-wrap: anywhere; }
.role-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.role-badge { font-family: var(--font-d); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: rgba(180,150,88,.22); color: var(--gold-text); border: 1px solid rgba(212,184,118,.5); }
.profile-markets { color: var(--ivory-txt); font-size: 13.5px; font-weight: 600; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.profile-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pstat { background: #FFFFFF; border: 1px solid var(--card-line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pstat-val { font-family: var(--font-d); font-weight: 900; font-size: 26px; color: var(--plum); line-height: 1.1; }
.pstat-label { font-family: var(--font-d); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7D6435; }
.profile-tabs { display: flex; gap: 6px; margin: 0 0 16px; background: #FFFFFF; border: 1px solid var(--card-line); border-radius: 4px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.profile-tab { flex: 0 0 auto; border: 0; background: transparent; border-radius: 4px; padding: 9px 16px; font-family: var(--font-d); font-weight: 800; font-size: 13.5px; color: var(--plum); white-space: nowrap; }
.profile-tab.active { background: var(--plum); color: var(--gold-text); box-shadow: inset 0 -3px 0 var(--gold); }
@media (max-width: 640px) {
  .feed-switch { margin-top: 16px; }
  .feed-switch-btn { font-size: 13.5px; padding: 10px 8px; }
  .mode-btn { padding: 10px 11px; }
  .mode-btn strong { font-size: 13px; }
  .mode-btn span { font-size: 10.5px; }
  .profile-avatar { flex-basis: 72px; width: 72px; height: 72px; }
  .profile-mono { font-size: 26px; }
  .profile-id { gap: 14px; align-items: flex-start; }
  .profile-stats { gap: 8px; }
  .pstat { padding: 11px 10px; }
  .pstat-val { font-size: 20px; }
  .pstat-label { font-size: 9.5px; letter-spacing: .05em; }
  .profile-tabs { width: 100%; }
  .profile-tab { flex: 1 1 50%; padding: 9px 10px; font-size: 12.5px; }
}

.profile-banner { padding: 18px 0 64px; }
@media (max-width: 640px) { .profile-banner { padding-bottom: 54px; } }
.profile-avatar.profile-logo { flex-basis: 136px; width: 136px; height: 92px; padding: 10px 12px; }
#view-profile .page-wrap { padding-top: 26px; }
@media (max-width: 640px) { .profile-avatar.profile-logo { flex-basis: 104px; width: 104px; height: 72px; padding: 8px; } #view-profile .page-wrap { padding-top: 20px; } }


/* =====================================================================
   v16 — INSTITUTIONAL CORPORATE CRE
   Sharp 4–6px geometry · 1px hairlines · flat surfaces · one toolbar
   ===================================================================== */
:root { --hair: rgba(44,17,50,.12); --hair-2: rgba(44,17,50,.2); --pearl: #FAF7F2; }
body { background: var(--pearl); }

/* header */
.site-header {
  background: #FFFFFF !important;
  border-top: 2px solid #B49658 !important;
  border-bottom: 1px solid var(--hair) !important;
  border-image: none !important;
  box-shadow: none !important;
}
.site-header .header-inner { padding-top: 8px; padding-bottom: 8px; }
.brand-divider { width: 1px; height: 20px; background: rgba(44,17,50,.22); border-radius: 0; }
.brand-tag { font-size: 10.5px; letter-spacing: .2em; color: #8F6F30; }
.nav-client-pill {
  background: #2C1132 !important; color: #F4E6C6 !important;
  border: 1px solid #2C1132 !important; border-radius: 4px !important;
  padding: 7px 13px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .01em;
  box-shadow: none !important; transform: none !important;
}
.nav-client-pill svg { color: #CDB273; }
.nav-client-pill:hover, .nav-client-pill.active { background: #3E1C46 !important; color: #FFFFFF !important; border-color: #3E1C46 !important; box-shadow: none !important; transform: none !important; }
.nav-client-pill:hover svg, .nav-client-pill.active svg { color: #CDB273; }

/* buttons — architectural */
.btn { border-radius: 4px; border-width: 1px; letter-spacing: .01em; }
.btn:active { transform: none; }
.btn-primary:hover { box-shadow: none; }
.btn-gold-metal, .btn-gold { background: #B49658; color: #2C1132; border: 1px solid #B49658; box-shadow: none; font-weight: 800; }
.btn-gold-metal:hover, .btn-gold:hover { background: #C5A664; filter: none; }

/* compact executive hero */
.hero-band {
  background: linear-gradient(180deg, #2C1132 0%, #33153B 100%) !important;
  border-bottom: 1px solid #B49658 !important;
}
.hero-band::after { display: none; }
.hero-band .hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  max-width: 900px; padding-top: 18px !important; padding-bottom: 22px !important;
}
.hero-band .hero-kicker { color: #E2C67E; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.hero-band .hero-title {
  color: #FFFFFF; text-transform: uppercase; font-weight: 900; letter-spacing: -.015em;
  font-size: clamp(30px, 8.6vw, 52px); line-height: .98; margin: 8px 0 0;
}
.hero-band .hero-title .gold-word {
  display: block;
  background: linear-gradient(180deg, #F0DCA2 0%, #E2C67E 45%, #C5A664 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.hero-band .hero-actions { justify-content: center; margin: 12px 0 0; gap: 0; }
.hero-band .hero-actions .btn { padding: 9px 20px; font-size: 13px; }
.hero-band .hero-skyline { height: 32px !important; opacity: .22; }

/* editorial underline tabs */
.feed-tabs-bar { background: #FFFFFF; border-bottom: 1px solid var(--hair); }
.feed-tabs-bar .feed-switch {
  display: flex; gap: 28px; margin: 0; max-width: none; background: none; border: 0; border-radius: 0;
  padding: 0; box-shadow: none; scroll-margin-top: 64px;
}
.feed-tabs-bar .feed-switch-btn {
  flex: 0 0 auto; background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 14px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-family: var(--font-d); font-weight: 700; font-size: 13.5px; letter-spacing: .01em; color: #7A6E7E;
}
.feed-tabs-bar .feed-switch-btn:hover { background: none; color: #2C1132; }
.feed-tabs-bar .feed-switch-btn.active { background: none; color: #2C1132; border-bottom-color: #B49658; box-shadow: none; }

/* single utility toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.tb-search { position: relative; flex: 1 1 200px; min-width: 0; }
.tb-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8F6F30; pointer-events: none; }
.tb-input {
  width: 100%; height: 40px; background: #FFFFFF; border: 1px solid var(--hair-2); border-radius: 4px;
  padding: 0 10px 0 33px; font-size: 14px; color: #2C1132; outline: none; min-width: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s;
}
.tb-input::placeholder { color: #8A7F8C; }
.tb-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tb-input:focus, .tb-select:focus { border-color: #2C1132; box-shadow: 0 0 0 2px rgba(180,150,88,.25); }
.tb-filters-btn {
  flex: 0 0 auto; height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px;
  background: #FFFFFF; border: 1px solid var(--hair-2); border-radius: 4px;
  font-family: var(--font-d); font-weight: 700; font-size: 13px; color: #2C1132; white-space: nowrap;
}
.tb-filters-btn svg { color: #8F6F30; }
.tb-filters-btn.has-active, .toolbar.is-open .tb-filters-btn { border-color: #2C1132; }
.tb-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: #2C1132; color: #FFFFFF; border-radius: 3px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.tb-select {
  width: 100%; height: 40px; background-color: #FFFFFF; border: 1px solid var(--hair-2); border-radius: 4px;
  padding: 0 30px 0 11px; font-size: 14px; color: #2C1132; outline: none; min-width: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; text-overflow: clip;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238F6F30' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 10px 6px;
}
.filter-panel { display: none; }
.toolbar.is-open .filter-panel {
  display: grid; flex: 1 1 100%; grid-template-columns: 1fr 1fr; gap: 12px 10px;
  background: #FFFFFF; border: 1px solid var(--hair); border-radius: 4px; padding: 14px 14px 12px;
  animation: fpIn .16s ease-out;
}
@keyframes fpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fp-field { display: block; min-width: 0; margin: 0; }
.fp-type, .fp-asset { grid-column: 1 / -1; }
.toolbar.is-open .fp-type { order: 1; } .toolbar.is-open .fp-asset { order: 2; } .toolbar.is-open .fp-market { order: 3; } .toolbar.is-open .fp-sort { order: 4; } .toolbar.is-open .fp-actions { order: 5; }
.fp-label { display: block; font-family: var(--font-d); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7A6E7E; margin-bottom: 5px; }
.fp-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 2px; }
.fp-actions .fp-reset { margin-right: auto; font-size: 13px; }
.fp-actions .fp-done { padding: 9px 22px; font-size: 13px; }

@media (min-width: 900px) {
  .toolbar { flex-wrap: nowrap; margin: 18px 0 6px; }
  .tb-search { flex: 1 1 auto; }
  .tb-filters-btn { display: none; }
  .filter-panel, .toolbar.is-open .filter-panel {
    display: flex !important; flex: 0 0 auto; gap: 8px; background: none; border: 0; padding: 0; animation: none;
  }
  .fp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fp-actions { display: none; }
  .tb-input, .tb-select { height: 38px; font-size: 13.5px; }
  .fp-type { width: 168px; } .fp-market { width: 158px; } .fp-asset { width: 184px; } .fp-sort { width: 140px; }
}

/* feed meta */
.feed-meta-row { margin: 6px 0 10px; min-height: 26px; }
.feed-count { font-family: var(--font-d); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #7A6E7E; }
.feed-meta-row .link-btn { font-size: 12.5px; text-decoration-thickness: 1px; }

/* cards — flat, hairline */
.deals-grid { gap: 16px; }
.deal-card { border: 1px solid var(--hair) !important; border-radius: 6px; box-shadow: none !important; }
.deal-card:hover { transform: none; border-color: rgba(180,150,88,.7) !important; box-shadow: 0 1px 0 rgba(44,17,50,.04) !important; }
.type-chip, .asset-chip, .offmarket-chip, .status-pill, .role-badge, .private-tag, .banner-chip, .banner-badge, .tab-count, .free-pill, .preview-mode-chip, .sample-chip, .pending-badge { border-radius: 3px !important; }
.card, .preview-sticky-card, .pstat, .auth-gate-card, .empty-state, .submitter-banner, .filter-bar { box-shadow: none !important; }
.card, .preview-sticky-card, .auth-gate-card { border-color: var(--hair) !important; }

/* profile — underline tabs to match feed */
.profile-tabs { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 0; gap: 26px; width: auto; box-shadow: none; }
.profile-tab { background: none !important; border-radius: 0; padding: 12px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: #7A6E7E; box-shadow: none !important; }
.profile-tab.active { color: #2C1132 !important; border-bottom-color: #B49658; }
.pstat { border: 1px solid var(--hair); border-top: 2px solid #B49658; }
.profile-back { border-radius: 4px; }

/* modals */
.modal-dialog { box-shadow: 0 18px 50px rgba(20,6,24,.28); }

@media (min-width: 900px) {
  .hero-band .hero-inner { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 26px !important; padding-bottom: 30px !important; }
  .hero-band .hero-title { font-size: 52px; }
  .hero-band .hero-title .gold-word { display: block; }
  .hero-band .hero-actions .btn { padding: 10px 24px; font-size: 14px; }
  .hero-band .hero-skyline { height: 44px !important; opacity: .2; }
  .feed-tabs-bar .feed-switch-btn { font-size: 14px; padding: 16px 0 13px; }
  .deals-grid { gap: 20px; }
}

/* v16 — banners & modal tabs, flat and editorial */
.page-banner { background: linear-gradient(180deg, #2C1132 0%, #33153B 100%) !important; border-bottom: 1px solid #B49658 !important; }
.banner-skyline { opacity: .14 !important; }
.profile-banner { padding-bottom: 40px; }
@media (max-width: 640px) { .profile-banner { padding-bottom: 34px; } }
.profile-avatar { box-shadow: none !important; }
.modal-tabs {
  display: flex; flex-wrap: nowrap; gap: 22px; overflow-x: auto; scrollbar-width: none;
  background: none !important; border: 0 !important; border-bottom: 1px solid var(--hair) !important; border-radius: 0 !important;
  padding: 0 !important; margin: 8px 0 12px !important;
}
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tab, .modal-tab:hover {
  flex: 0 0 auto; background: none !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  padding: 10px 0 9px !important; margin-bottom: -1px; box-shadow: none !important; color: #7A6E7E !important; font-size: 13px;
}
.modal-tab:hover { color: #2C1132 !important; }
.modal-tab.active { color: #2C1132 !important; border-bottom-color: #B49658 !important; background: none !important; box-shadow: none !important; }
.breakdown { border-color: var(--hair) !important; background: #FBF8F3 !important; }

@media (max-width: 640px) {
  .modal-tabs { gap: 18px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px !important; }
  .profile-tabs { gap: 22px; }
  .profile-tab { flex: 0 0 auto !important; font-size: 13.5px; }
  .pstat { padding: 12px; }
  .pstat-label { font-size: 9.5px; letter-spacing: .08em; }
}

/* v18 — uniformly labeled party lines on feed cards */
.deal-card-parties { gap: 4px; margin-top: 2px; }
.deal-card-parties .cp-group { display: block; line-height: 1.45; }
.deal-card-parties .cp-plain { color: var(--ink); font-weight: 600; }
.party-link { text-decoration-color: rgba(180,150,88,.35); text-decoration-thickness: 1px; }

/* v19 — Executive Submission Confirmation View */
.confirm-shell { max-width: 1060px; margin: 4px auto 32px; }
.confirm-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .confirm-grid { grid-template-columns: minmax(0, 1.35fr) 360px; } }
.confirm-main { padding: 26px 22px; border: 1px solid var(--hair, rgba(44,17,50,.12)); border-top: 3px solid var(--gold); border-radius: 6px; background: #FFFFFF; }
@media (min-width: 900px) { .confirm-main { padding: 34px 36px; } }
.confirm-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.confirm-check { width: 38px; height: 38px; border-radius: 4px; background: var(--plum); color: #E2C67E; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--gold); }
.confirm-eyebrow { font-family: var(--font-d); font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7D6435; }
.confirm-title { font-family: var(--font-d); font-weight: 900; font-size: clamp(22px, 5vw, 30px); line-height: 1.15; letter-spacing: -.018em; color: var(--plum); margin: 0 0 10px; }
.confirm-copy { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 22px; max-width: 58ch; }
.confirm-summary { background: #FAF7F2; border: 1px solid rgba(44,17,50,.1); border-radius: 5px; padding: 16px 18px; margin-bottom: 20px; }
.confirm-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(44,17,50,.09); }
.confirm-summary-lbl { font-family: var(--font-d); font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #7D6435; }
.confirm-dl { margin: 0; display: grid; gap: 8px; }
.confirm-dl-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13.5px; }
.confirm-dl-row dt { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.confirm-dl-row dd { margin: 0; color: var(--plum); font-weight: 700; word-break: break-word; }
.confirm-steps { margin-bottom: 24px; }
.confirm-next-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 7px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.confirm-next-list strong { color: var(--plum); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.confirm-actions .btn { min-height: 40px; }
.confirm-poster-card { position: static !important; }
.confirm-poster-card canvas { width: 100%; height: auto; display: block; border-radius: 4px; }

/* v20 — 4-Tab Architecture (Acquisitions + Equity) */
.feed-tabs-bar .feed-switch-4 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: visible;
}
.feed-tabs-bar .feed-switch-4 .feed-switch-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.015em;
  padding: 13px 0 10px;
}
@media (max-width: 390px) {
  .feed-tabs-bar .container { padding: 0 12px; }
  .feed-tabs-bar .feed-switch-4 { gap: 4px; }
  .feed-tabs-bar .feed-switch-4 .feed-switch-btn { font-size: 11.2px; letter-spacing: 0.01em; }
}
@media (min-width: 520px) {
  .feed-tabs-bar .feed-switch-4 { justify-content: flex-start; gap: 24px; }
  .feed-tabs-bar .feed-switch-4 .feed-switch-btn { font-size: 13px; letter-spacing: 0.015em; }
}
@media (min-width: 900px) {
  .feed-tabs-bar .feed-switch-4 { gap: 32px; }
  .feed-tabs-bar .feed-switch-4 .feed-switch-btn { font-size: 14px; padding: 16px 0 13px; }
}

/* Type & status chips for Acquisitions & Equity */
.type-chip.type-acquisition-mandate { background: var(--plum); color: #E2C67E; box-shadow: inset 0 0 0 1px rgba(180,150,88,.55); }
.type-chip.type-seeking-equity,
.type-chip.type-jv-equity,
.type-chip.type-preferred-equity,
.type-chip.type-co-gp,
.type-chip.type-lp-equity,
.type-chip.type-recapitalization { background: #3E1C46; color: #F0DCA2; box-shadow: inset 0 0 0 1px rgba(180,150,88,.5); }
.stage-chip {
  font-family: var(--font-d); font-weight: 700; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px; background: #F7F2E7; color: #7D6435; border: 1px solid rgba(180,150,88,.45);
}
.modal-head-bar .stage-chip { background: rgba(255,255,255,.08); color: #E2C67E; border-color: rgba(212,184,118,.45); }

/* Equity institutional compliance bar */
.compliance-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 10px 0 6px; padding: 11px 14px;
  background: #FAF7F2; border: 1px solid rgba(44,17,50,.11); border-left: 3px solid var(--gold); border-radius: 4px;
  font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
.compliance-bar strong { color: var(--plum); font-family: var(--font-d); font-weight: 800; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.compliance-bar-text { flex: 1 1 280px; min-width: 0; }
.compliance-login-btn { flex: 0 0 auto; white-space: nowrap; }
.compliance-bar.is-unlocked { border-left-color: var(--plum); background: #F8F5FA; }

/* Locked sponsor row on logged-out Equity cards */
.cp-locked {
  display: inline-flex; align-items: center; gap: 5px;
  color: #7D6435; font-weight: 700; font-size: 12px;
}
.cp-locked svg { flex-shrink: 0; color: var(--gold-dark); }

/* Accredited / Institutional gate inside Equity modal */
.equity-gate-box {
  margin-top: 14px; padding: 20px 18px;
  background: #FAF7F2; border: 1px solid rgba(44,17,50,.14); border-top: 3px solid var(--plum); border-radius: 4px;
}
.equity-gate-kicker {
  display: block; font-family: var(--font-d); font-weight: 800; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: #7D6435; margin-bottom: 6px;
}
.equity-gate-box h3 { font-size: 17px; color: var(--plum); margin: 0 0 8px; }
.equity-gate-box p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.equity-gate-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(44,17,50,.09);
  font-size: 11.5px; color: #7A6E7E; line-height: 1.4;
}

/* 4-Track Submit Mode Selector */
.mode-toggle.mode-toggle-4 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px;
}
.mode-toggle.mode-toggle-4 .mode-btn { padding: 10px 11px; border-radius: 4px; }
.mode-toggle.mode-toggle-4 .mode-btn strong { font-size: 13px; }
.mode-toggle.mode-toggle-4 .mode-btn span { font-size: 11px; line-height: 1.3; }
@media (min-width: 720px) {
  .mode-toggle.mode-toggle-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mode-toggle.mode-toggle-4 .mode-btn { padding: 11px 12px; }
  .mode-toggle.mode-toggle-4 .mode-btn strong { font-size: 13px; }
}

/* Target asset class multi-select chips */
.asset-check-grid {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.asset-check-btn {
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 4px;
  padding: 7px 11px; font-family: var(--font-d); font-weight: 700; font-size: 12px; color: var(--plum);
  transition: background .12s, border-color .12s, color .12s;
}
.asset-check-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.asset-check-btn.active { background: var(--plum); border-color: var(--plum); color: #F0DCA2; box-shadow: inset 0 -2px 0 var(--gold); }

/* Equity compliance checkbox box */
.compliance-check-box {
  margin-top: 14px; padding: 13px 14px;
  background: #FAF7F2; border: 1px solid rgba(180,150,88,.45); border-left: 3px solid var(--gold); border-radius: 4px;
}
.compliance-check-label { align-items: flex-start !important; gap: 10px !important; line-height: 1.45; font-size: 13px; color: var(--ink); }
.compliance-check-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

/* Profile 4-tab layout */
@media (max-width: 640px) {
  .profile-tabs { gap: 16px; }
  .profile-tab { font-size: 12.5px; white-space: nowrap; }
}


/* ==========================================================================
   v22 UPGRADES: HEADER ABOUT · EXPANDED FILTERS · TERMS MODAL · FOOTER · ABOUT VIEW
   ========================================================================== */

/* Header left lockup + desktop About link (hidden on mobile <640px to keep 360px clean) */
.header-left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.header-about-sep,
.header-about-link {
  display: none;
}
@media (min-width: 640px) {
  .header-about-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(44, 17, 50, 0.18);
    margin: 0 14px;
    flex-shrink: 0;
  }
  .header-about-link {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 4px 2px 2px;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5E5063;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
  }
  .header-about-link:hover,
  .header-about-link.active {
    color: #2C1132;
    border-bottom-color: #B49658;
  }
}

/* Expanded filter panel: mobile drawer grid + desktop tidy 1-2 rows */
.toolbar.is-open .fp-type { order: 1; grid-column: 1 / -1; }
.toolbar.is-open .fp-stage { order: 2; grid-column: 1 / -1; }
.toolbar.is-open .fp-size { order: 3; grid-column: auto; }
.toolbar.is-open .fp-market { order: 4; grid-column: auto; }
.toolbar.is-open .fp-asset { order: 5; grid-column: 1 / -1; }
.toolbar.is-open .fp-sort { order: 6; grid-column: 1 / -1; }
.toolbar.is-open .fp-actions { order: 7; grid-column: 1 / -1; }
.fp-field[hidden] { display: none !important; }

@media (min-width: 900px) {
  .toolbar {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
    margin: 18px 0 6px;
  }
  .tb-search {
    flex: 1 1 220px;
    min-width: 200px;
  }
  .filter-panel,
  .toolbar.is-open .filter-panel {
    display: flex !important;
    flex-wrap: wrap;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 0;
    animation: none;
  }
  .fp-type { width: 152px; }
  .fp-stage { width: 146px; }
  .fp-size { width: 138px; }
  .fp-market { width: 154px; }
  .fp-asset { width: 176px; }
  .fp-sort { width: 158px; }
  .tb-select {
    font-size: 13px;
    padding: 0 26px 0 10px;
  }
}

/* Admin banner actions */
.admin-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Terms inline link & checkbox spacing */
.terms-check-box {
  margin-top: 14px;
  margin-bottom: 14px;
}
.inline-terms-link {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #2C1132;
  text-decoration: underline;
  text-decoration-color: #B49658;
  text-underline-offset: 2px;
  cursor: pointer;
}
.inline-terms-link:hover {
  color: #7D6435;
}

/* Footer persistent platform disclaimer & Terms button */
.footer-disclaimer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(243, 236, 224, 0.12);
}
.footer-disclaimer p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(237, 228, 211, 0.68);
  max-width: 980px;
}
.footer-bottom {
  margin-top: 14px !important;
  padding-top: 14px !important;
}
.footer-terms-btn {
  background: none;
  border: 0;
  padding: 2px 0;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-text);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(180, 150, 88, 0.45);
  text-underline-offset: 3px;
}
.footer-terms-btn:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

/* Institutional Terms & Disclosures Modal */
.modal-dialog-md {
  max-width: 740px;
}
.terms-modal-content {
  padding: 6px 2px 4px;
}
.terms-modal-content h2 {
  font-size: 23px;
  color: var(--plum);
  margin: 8px 0 4px;
  line-height: 1.2;
}
.terms-updated {
  font-size: 12px;
  color: #7A6E7E;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.terms-sections {
  display: grid;
  gap: 14px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 4px;
}
.terms-sec {
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--hair);
  border-left: 3px solid #B49658;
  border-radius: 4px;
}
.terms-sec h3 {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--plum);
  margin: 0 0 6px;
}
.terms-sec p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #3E3442;
}
.terms-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

/* About REVOICE View */
.about-banner .about-hero-copy {
  max-width: 780px;
}
.about-banner .banner-title {
  line-height: 1.12;
  max-width: 720px;
}
.about-wrap {
  display: grid;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 44px;
}
.about-mission {
  padding: 26px 24px;
  border-top: 3px solid #B49658 !important;
  background: #FFFFFF;
}
.about-heading {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--plum);
  margin: 6px 0 12px;
  line-height: 1.22;
}
.about-lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: #2C1132;
  font-weight: 600;
  margin: 0 0 12px;
  max-width: 820px;
}
.about-body {
  font-size: 14px;
  line-height: 1.65;
  color: #4D4252;
  margin: 0;
  max-width: 820px;
}
.about-section-head {
  margin-bottom: 14px;
}
.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .about-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
.about-pillar {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: #FFFFFF;
  border: 1px solid var(--hair) !important;
  border-top: 2px solid #B49658 !important;
  border-radius: 4px;
}
.about-pillar-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.about-pillar-num {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8F6F30;
}
.about-pillar h3 {
  font-size: 17px;
  color: var(--plum);
  margin: 0;
}
.about-pillar p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4D4252;
  margin: 0 0 14px;
  flex: 1 1 auto;
}
.about-pillar-link {
  align-self: flex-start;
  background: none;
  border: 0;
  border-bottom: 1px solid #B49658;
  padding: 0 0 2px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2C1132;
  cursor: pointer;
}
.about-pillar-link:hover {
  color: #8F6F30;
}
.about-credibility {
  padding: 26px 24px;
  background: #FAF7F2;
  border: 1px solid var(--hair) !important;
}
.about-cred-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .about-cred-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: start;
  }
}
.about-cred-points {
  display: grid;
  gap: 12px;
}
.about-cred-item {
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--hair);
  border-left: 2px solid #2C1132;
  border-radius: 4px;
}
.about-cred-label {
  display: block;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #8F6F30;
  margin-bottom: 4px;
}
.about-cred-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4D4252;
}
.about-disclosure-box {
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(180, 150, 88, 0.45);
  border-left: 3px solid #2C1132;
  border-radius: 4px;
}
.about-disclosure-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.about-disclosure-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5E5063;
}
.about-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
@media (max-width: 480px) {
  .about-mission,
  .about-credibility {
    padding: 20px 16px;
  }
  .about-cta-bar .btn {
    flex: 1 1 140px;
    text-align: center;
  }
}

/* v22 mobile header fix: prevent legacy 112px cap from clipping Client Login */
#navClientBtn { max-width: none !important; }

/* === FULL-PAGE TERMS & CONDITIONS (v23 — EDITORIAL LEGAL LAYOUT) === */
.legal-banner {
  background: var(--plum);
  color: #fff;
  padding: 28px 0 32px;
  border-bottom: 2px solid var(--gold);
}
.legal-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.btn-back-light {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 6px;
}
.btn-back-light:hover { background: rgba(255,255,255,0.16); }
.legal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light, #d8be82);
  text-transform: uppercase;
}
.legal-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.legal-updated {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.74);
}
.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  padding-top: 38px;
  padding-bottom: 68px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 86px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--border, #e5dfd5);
  border-radius: 4px;
}
.legal-toc-head {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-dark, #93763b);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #e5dfd5);
}
.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #463e49;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.legal-toc-list button:hover,
.legal-toc-list button.active {
  background: #f6f1e8;
  color: var(--plum);
  font-weight: 600;
}
.legal-doc {
  background: #fff;
  border: 1px solid var(--border, #e5dfd5);
  border-radius: 4px;
  padding: 40px 46px;
  max-width: 820px;
}
.legal-notice-lead {
  padding: 16px 20px;
  background: #faf7f1;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  line-height: 1.65;
  color: #2f2633;
  margin-bottom: 30px;
}
.legal-sec {
  padding: 24px 0;
  border-top: 1px solid #ece6dc;
  scroll-margin-top: 90px;
}
.legal-sec:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-sec h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plum);
}
.legal-sec p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #342d37;
}
.legal-sec p:last-child { margin-bottom: 0; }
.legal-sec ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}
.legal-sec li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #342d37;
}
.legal-caps {
  font-size: 13px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.01em;
  color: #3d3440 !important;
}
@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 48px;
  }
  .legal-toc {
    position: static;
    padding: 16px;
  }
  .legal-doc {
    padding: 24px 20px;
  }
}


/* ============================================================
   v25: REDIRECTORY (CRE SERVICE PROVIDER DIRECTORY) + MOBILE SUBNAV
   ============================================================ */

/* Sleek mobile-only section nav bar (< 640px) */
.mobile-subnav {
  display: block;
  background: #FAF7F2;
  border-top: 1px solid rgba(44, 17, 50, 0.08);
}
.mobile-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 30px;
}
.mobile-subnav-btn {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 5px 12px 4px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5E5063;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.mobile-subnav-btn:hover,
.mobile-subnav-btn.active {
  color: #2C1132;
  border-bottom-color: #B49658;
}
.mobile-subnav-sep {
  width: 1px;
  height: 11px;
  background: rgba(44, 17, 50, 0.16);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .mobile-subnav { display: none; }
}
/* Keep mobile header + hero compact so first deal card stays visibly above fold on 360x800 */
@media (max-width: 639px) {
  .header-inner { padding-top: 7px !important; padding-bottom: 6px !important; }
  .hero-band .hero-inner { padding-top: 16px !important; padding-bottom: 16px !important; }
  .hero-band .hero-actions { margin-top: 10px !important; }
}

/* Directory Banner */
.directory-banner .banner-title {
  letter-spacing: 0.06em;
}
.directory-banner .banner-side {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Directory Toolbar & Filter Panel */
.dir-wrap {
  padding-top: 22px;
  padding-bottom: 56px;
}
.dir-toolbar {
  margin-top: 0;
  margin-bottom: 14px;
}
.dir-filter-panel {
  gap: 10px;
}
@media (min-width: 900px) {
  .dir-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
  }
  .dir-toolbar .dir-search {
    flex: 1 1 250px;
    min-width: 200px;
  }
  .dir-toolbar .dir-filter-panel {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    flex: 0 1 auto;
  }
  .dir-toolbar .dir-fp-cat { width: 195px; }
  .dir-toolbar .dir-fp-spec { width: 195px; }
  .dir-toolbar .dir-fp-region { width: 155px; }
  .dir-toolbar .dir-fp-status { width: 140px; }
  .dir-toolbar .tb-select { width: 100%; }
}
@media (max-width: 899px) {
  .dir-toolbar.is-open .dir-filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .dir-toolbar.is-open .dir-fp-cat,
  .dir-toolbar.is-open .dir-fp-spec {
    grid-column: 1 / -1;
  }
}

/* Directory Results Meta Bar */
.dir-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(44, 17, 50, 0.09);
}
.dir-result-count {
  font-size: 13px;
  font-weight: 600;
  color: #5E5063;
  letter-spacing: 0.01em;
}
.dir-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Institutional Provider Grid */
.dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1060px) {
  .dir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Individual Provider Card */
.dir-card {
  background: #FFFFFF;
  border: 1px solid rgba(44, 17, 50, 0.12);
  border-radius: 4px;
  padding: 16px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.dir-card:hover {
  border-color: rgba(180, 150, 88, 0.65);
  box-shadow: 0 4px 16px rgba(44, 17, 50, 0.05);
}
.dir-card.is-claimed {
  border-top: 2px solid #B49658;
}

/* Top Chips Row */
.dir-card-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dir-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 3px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir-chip-cat {
  background: #2C1132;
  color: #FFFFFF;
}
.dir-chip-spec {
  background: #F3ECE0;
  color: #5C4720;
  border: 1px solid rgba(180, 150, 88, 0.35);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.dir-chip-claimed {
  background: rgba(180, 150, 88, 0.14);
  color: #82662B;
  border: 1px solid #B49658;
  margin-left: auto;
}

/* Title, Contact Person, Region */
.dir-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dir-card-title {
  margin: 0;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  color: #2C1132;
  word-break: break-word;
}
.dir-card-person {
  font-size: 13px;
  font-weight: 600;
  color: #4B3E50;
  word-break: break-word;
}
.dir-card-region {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #746679;
}
.dir-card-region svg {
  color: #B49658;
  flex-shrink: 0;
}
.dir-card-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #5E5063;
  border-left: 2px solid rgba(180, 150, 88, 0.45);
  padding-left: 9px;
  word-break: break-word;
}

/* Contact Row (Login-Gated & Unlocked) */
.dir-contact-box {
  margin-top: auto;
  padding-top: 2px;
}
.dir-contact-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: #FAF7F2;
  border: 1px solid rgba(44, 17, 50, 0.1);
  border-radius: 4px;
}
.dir-lock-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #5E5063;
  line-height: 1.3;
  min-width: 0;
}
.dir-lock-copy svg {
  color: #B49658;
  flex-shrink: 0;
}
.dir-signin-btn {
  flex-shrink: 0;
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  white-space: nowrap;
}
.dir-contact-unlocked {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  background: #FBF9F4;
  border: 1px solid rgba(180, 150, 88, 0.35);
  border-radius: 4px;
}
.dir-contact-line {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #2C1132;
  min-width: 0;
}
.dir-contact-line svg {
  color: #B49658;
  flex-shrink: 0;
  margin-top: 2px;
}
.dir-contact-link {
  color: #2C1132;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.dir-contact-link:hover {
  color: #82662B;
  text-decoration: underline;
}
.dir-contact-sep {
  color: #B8AEBE;
}

/* Card Footer (Self-Service Controls) */
.dir-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(44, 17, 50, 0.08);
  flex-wrap: wrap;
}
.dir-action-btn {
  background: none;
  border: 0;
  padding: 2px 0;
  font-family: var(--font-d);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.15s;
}
.dir-action-claim {
  color: #82662B;
}
.dir-action-claim:hover {
  color: #2C1132;
  text-decoration: underline;
}
.dir-action-remove {
  color: #746679;
  margin-left: auto;
}
.dir-action-remove:hover {
  color: #2C1132;
  text-decoration: underline;
}

/* Load More */
.dir-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.dir-load-more-btn {
  min-width: 240px;
}

/* Modals for Claim, Removal, Add Provider */
.dir-modal-content h2 {
  margin-bottom: 8px;
}
.dir-modal-lead {
  font-size: 13px;
  color: #5E5063;
  margin: 0 0 14px;
  line-height: 1.45;
}
.dir-modal-summary {
  background: #FAF7F2;
  border: 1px solid rgba(180, 150, 88, 0.35);
  border-left: 3px solid #B49658;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #2C1132;
}
.dir-modal-summary strong {
  display: block;
  font-family: var(--font-d);
  font-size: 14.5px;
  margin-bottom: 2px;
}
.dir-modal-summary span {
  font-size: 12px;
  color: #5E5063;
}
.dir-radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 520px) {
  .dir-radio-row { grid-template-columns: 1fr; }
}
.dir-radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(44, 17, 50, 0.16);
  border-radius: 4px;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: #2C1132;
  cursor: pointer;
}
.dir-radio-opt input {
  accent-color: #2C1132;
}

/* Admin Directory Request Cards */
.admin-dir-card {
  background: #FFFFFF;
  border: 1px solid rgba(44, 17, 50, 0.14);
  border-left: 4px solid #B49658;
  border-radius: 4px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-dir-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-dir-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-dir-type.type-claim {
  background: #F3ECE0;
  color: #785B20;
  border: 1px solid #B49658;
}
.admin-dir-type.type-removal {
  background: #FDF2F2;
  color: #991B1B;
  border: 1px solid rgba(153, 27, 27, 0.25);
}
.admin-dir-type.type-correction {
  background: #F5EFF7;
  color: #2C1132;
  border: 1px solid rgba(44, 17, 50, 0.2);
}
.admin-dir-type.type-new_provider {
  background: #2C1132;
  color: #F3ECE0;
}
.admin-dir-title {
  margin: 4px 0 0;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: #2C1132;
}
.admin-dir-meta {
  font-size: 12px;
  color: #746679;
}
.admin-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 14px;
  background: #FAF7F2;
  border: 1px solid rgba(44, 17, 50, 0.08);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #2C1132;
}
.admin-dir-grid div strong {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #746679;
  margin-bottom: 2px;
}
.admin-dir-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* Mobile 360px safety for directory cards */
@media (max-width: 420px) {
  .dir-card { padding: 14px 13px 12px; }
  .dir-contact-locked { flex-direction: column; align-items: stretch; }
  .dir-signin-btn { width: 100%; justify-content: center; }
  .admin-tabs { flex-wrap: wrap; }
}
