/* ============================================================
   INVESTDOOR — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --brand-primary:   #2563EB;
  --brand-dark:      #1E40AF;
  --brand-light:     #EFF6FF;
  --brand-mid:       #BFDBFE;

  --navy:            #0F172A;
  --slate:           #475569;
  --muted:           #94A3B8;
  --surface:         #F8FAFC;
  --white:           #FFFFFF;
  --border:          #E2E8F0;
  --border-dark:     #CBD5E1;

  --success:         #059669;
  --success-light:   #ECFDF5;
  --invest-green:    #1A5433;
  --invest-green-mid: #2F8A55;
  --invest-green-light: #EAF3EE;
  --warning:         #D97706;
  --warning-light:   #FFFBEB;
  --danger:          #DC2626;
  --danger-light:    #FEF2F2;
  --info:            #0891B2;
  --info-light:      #ECFEFF;

  --shadow-sm:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:       0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:       0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:       0 20px 50px rgba(0,0,0,0.12);

  --radius-sm:       3px;
  --radius:          6px;
  --radius-md:       8px;
  --radius-lg:       10px;
  --radius-xl:       14px;
  --radius-full:     9999px;

  --sidebar-width:   260px;
  --max-width:       1280px;

  --transition:      150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-md:   250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--slate);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: 3rem; font-weight: 600; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 500; }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 2rem; }
.text-4xl  { font-size: 2.5rem; }
.text-5xl  { font-size: 3rem; }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.text-navy   { color: var(--navy); }
.text-slate  { color: var(--slate); }
.text-muted  { color: var(--muted); }
.text-brand  { color: var(--brand-primary); }
.text-white  { color: var(--white); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-md {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Grid ─────────────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* ── Spacing ──────────────────────────────────────────────── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-sm { padding: 7px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-xl { padding: 18px 36px; font-size: 1.0625rem; border-radius: var(--radius-md); }

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border-dark);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--navy);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  color: var(--white);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-full { width: 100%; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-blue    { background: var(--brand-light); color: var(--brand-primary); }
.badge-green   { background: var(--success-light); color: var(--success); }
.badge-amber   { background: var(--warning-light); color: var(--warning); }
.badge-red     { background: var(--danger-light); color: var(--danger); }
.badge-slate   { background: #F1F5F9; color: var(--slate); }
.badge-navy    { background: var(--navy); color: var(--white); }

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-hover {
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body { padding: 24px; }
.card-body-sm { padding: 16px; }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder { color: var(--muted); }

.form-input:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

textarea.form-input { resize: vertical; min-height: 100px; line-height: 1.6; }

select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.form-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
}

.input-group {
  display: flex;
  gap: 0;
}
.input-group .form-input {
  border-radius: 0;
  flex: 1;
}
.input-group .form-input:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .form-input:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ── Upload Zone ──────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-md);
  background: var(--surface);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--brand-primary);
  background: var(--brand-light);
}
.upload-zone .upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--brand-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg { color: white; }

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover { background: var(--surface); color: var(--navy); }
.nav-link.active { background: var(--brand-light); color: var(--brand-primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Sidebar Dashboard Layout ─────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.sidebar-logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.sidebar-section {
  padding: 8px 12px;
}

.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 8px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--surface); color: var(--navy); }
.sidebar-link.active { background: var(--brand-light); color: var(--brand-primary); font-weight: 600; }
.sidebar-link svg { flex-shrink: 0; }

.sidebar-link .badge {
  margin-left: auto;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.sidebar-user:hover { background: var(--surface); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.6875rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.25rem; }

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--muted);
}

.dashboard-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-content { padding: 32px; }

/* ── Stats Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-change {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 8px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Property Deal Card ───────────────────────────────────── */
.deal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  cursor: pointer;
}
.deal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.deal-card-image {
  height: 180px;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  position: relative;
  overflow: hidden;
}
.deal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2.5rem;
}
.deal-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.deal-card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.deal-card-save:hover { background: white; transform: scale(1.1); }
.deal-card-save.saved { color: var(--danger); }

.deal-card-body { padding: 18px 20px; }

.deal-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-card-location {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.deal-metric { text-align: center; }
.deal-metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.deal-metric-label {
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deal-card-supplier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* ── Search & Filters ─────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--navy);
  background: transparent;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar-icon {
  padding: 0 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.search-bar .btn { border-radius: 0 10px 10px 0; }

.filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.filter-chip.active { border-color: var(--brand-primary); background: var(--brand-light); color: var(--brand-primary); font-weight: 600; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
thead tr {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface); }

/* ── Messages / Chat ──────────────────────────────────────── */
.message-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.message-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--white);
}
.message-list-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.message-list-item:hover { background: var(--surface); }
.message-list-item.active { background: var(--brand-light); border-left: 3px solid var(--brand-primary); }
.message-preview {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.message-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-area {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.chat-header {
  background: var(--white);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-message {
  max-width: 68%;
}
.chat-message.own { align-self: flex-end; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.chat-message.other .chat-bubble {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
}
.chat-message.own .chat-bubble {
  background: var(--brand-primary);
  color: white;
  border-radius: 12px 4px 12px 12px;
}
.chat-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 4px;
}
.chat-message.own .chat-meta { text-align: right; }

.chat-input-area {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.chat-input-area textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.9375rem;
  resize: none;
  outline: none;
  max-height: 120px;
  transition: border-color var(--transition);
}
.chat-input-area textarea:focus { border-color: var(--brand-primary); }

/* ── Empty States ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--muted);
}
.empty-state h4 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 320px; margin-bottom: 24px; font-size: 0.9375rem; }

/* ── Progress Steps ───────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}
.step {
  display: flex;
  align-items: center;
  flex: 1;
}
.step:last-child { flex: none; }
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--transition-md);
}
.step.active .step-circle {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: white;
}
.step.done .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: white;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
}
.step.done + .step .step-line,
.step.done .step-line { background: var(--success); }
.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}
.step.active .step-label { color: var(--brand-primary); }
.step.done .step-label { color: var(--success); }
.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Alerts & Notices ─────────────────────────────────────── */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert-blue   { background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--brand-mid); }
.alert-green  { background: var(--success-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-amber  { background: var(--warning-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-red    { background: var(--danger-light); color: #991B1B; border: 1px solid #FECACA; }

/* ── Modals ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-md);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition-md);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
  flex-shrink: 0;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface); color: var(--navy); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); font-weight: 600; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 24px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Tooltips ─────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 10;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded-full { border-radius: var(--radius-full); }
.cursor-pointer { cursor: pointer; }
.no-select { user-select: none; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .dashboard-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════
   TIER 1 ADDITIONS
   ══════════════════════════════════════════════════════════════ */

/* Source type gold badge */
.badge-gold { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-gold-dark { background: #92400E; color: #FEF3C7; }

/* Supplier tier badges */
.badge-tier-compliant { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-tier-verified  { background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--brand-mid); }
.badge-tier-unverified { background: #F1F5F9; color: var(--muted); border: 1px solid var(--border); }

/* Source type tag pill */
.source-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* Blurred content — gated for unverified */
.blur-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.blur-image {
  filter: blur(8px);
  transform: scale(1.05);
}
.blur-overlay-wrap {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}
.blur-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  gap: 8px;
  padding: 16px;
  text-align: center;
  z-index: 2;
  border-radius: inherit;
}
.blur-gate-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.blur-gate p {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* FOMO social proof strip */
.fomo-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}
.fomo-strip-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fomo-hot { color: var(--danger); font-weight: 600; }

/* Deal progress stepper */
.deal-progress {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow-x: auto;
}
.deal-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 80px;
  position: relative;
}
.deal-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--border);
}
.deal-progress-step.done:not(:last-child)::after { background: var(--success); }
.deal-progress-step.active:not(:last-child)::after { background: var(--brand-primary); }
.deal-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  z-index: 1;
  flex-shrink: 0;
}
.deal-progress-step.done .deal-progress-dot  { background: var(--success); border-color: var(--success); color: white; }
.deal-progress-step.active .deal-progress-dot { background: var(--brand-primary); border-color: var(--brand-primary); color: white; }
.deal-progress-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.deal-progress-step.done .deal-progress-label  { color: var(--success); }
.deal-progress-step.active .deal-progress-label { color: var(--brand-primary); font-weight: 600; }

/* Airbnb-style thread list */
.msg-thread-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.msg-thread-item:hover { background: var(--surface); }
.msg-thread-item.active { background: var(--brand-light); border-left: 3px solid var(--brand-primary); }
.msg-thread-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  overflow: hidden;
}
.msg-thread-content { flex: 1; min-width: 0; }
.msg-thread-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 1px; }
.msg-thread-name { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.msg-thread-time { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.msg-thread-deal { font-size: 0.8125rem; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread-preview { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-thread-preview.unread { color: var(--navy); font-weight: 600; }
.msg-unread-dot { width: 8px; height: 8px; background: var(--brand-primary); border-radius: 50%; flex-shrink: 0; margin-top: 4px; }

/* Chat UI enhancements */
.chat-sender-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 3px;
  padding: 0 4px;
}
.chat-message.own .chat-sender-label { text-align: right; }

.chat-system-msg { text-align: center; padding: 8px 16px; margin: 8px 0; }
.chat-system-msg span {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

/* Off-platform warning */
.off-platform-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  font-size: 0.8125rem;
  color: #92400E;
  flex-shrink: 0;
}
.off-platform-warning svg { flex-shrink: 0; margin-top: 1px; color: #D97706; }

/* Map view */
.map-container {
  height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-view-toggle {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
}
.map-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--muted);
  background: transparent;
  border: none;
}
.map-view-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

/* Gated document list */
.gated-doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
}
.gated-doc-item.unlocked { cursor: pointer; }
.gated-doc-item.unlocked:hover { border-color: var(--brand-primary); background: var(--brand-light); }
.gated-doc-item.locked { opacity: 0.6; }
.gated-doc-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gated-doc-icon.pdf { background: #FEF2F2; color: var(--danger); }
.gated-doc-icon.doc { background: #EFF6FF; color: var(--brand-primary); }
.gated-doc-name { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.gated-doc-size { font-size: 0.75rem; color: var(--muted); }
.gated-doc-lock { margin-left: auto; color: var(--muted); }
.gated-doc-lock.unlocked-icon { color: var(--success); }

/* Star rating */
.star-rating { display: flex; align-items: center; gap: 2px; color: #F59E0B; font-size: 0.875rem; }
.star-rating .rating-value { color: var(--navy); font-weight: 700; font-size: 0.875rem; margin-left: 4px; }

/* Profile completeness bar */
.profile-completeness {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.completeness-bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.completeness-bar-fill { height: 100%; border-radius: 3px; background: var(--brand-primary); transition: width 0.5s ease; }

/* NDA modal text box */
.nda-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Deal status badge on supplier dashboard */
.deal-status-pending { background: #FEF3C7; color: #92400E; }
.deal-status-live { background: var(--success-light); color: var(--success); }
.deal-status-rejected { background: #FEF2F2; color: var(--danger); }

/* Pricing page */
.pricing-hero { background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%); }
.pricing-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.pricing-amount { font-size: 3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: 1; }
.pricing-amount span { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
.pricing-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--slate); padding: 8px 0; border-bottom: 1px solid var(--border); }
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pricing-feature.inactive { color: var(--muted); }
.pricing-feature.inactive svg { color: var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--navy); gap: 16px; }
.faq-a { padding: 0 0 18px; color: var(--slate); font-size: 0.9375rem; line-height: 1.7; display: none; }
.faq-a.open { display: block; }
.faq-chevron { transition: transform var(--transition); flex-shrink: 0; color: var(--muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── Invest-green theme additions ──────────────────────────── */
.text-invest { color: var(--invest-green); }
.btn-invest {
  background: var(--invest-green);
  color: white;
  border-color: var(--invest-green);
}
.btn-invest:hover {
  background: #065F46;
  border-color: #065F46;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}
.btn-invest-outline {
  background: transparent;
  color: var(--invest-green);
  border-color: var(--invest-green);
}
.btn-invest-outline:hover {
  background: var(--invest-green-light);
}
.badge-invest { background: var(--invest-green-light); color: var(--invest-green); border: 1px solid var(--invest-green-mid); }
.stat-green { color: var(--invest-green); font-weight: 700; }

/* ── Browse 50/50 split view ───────────────────────────────── */
.browse-split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.browse-deal-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  height: calc(100vh - 64px);
}
.browse-map-pane {
  position: relative;
  background: var(--surface);
}
.browse-map-pane #leaflet-map {
  width: 100%;
  height: 100%;
}
.browse-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
  gap: 10px;
  flex-wrap: wrap;
}
.browse-pane-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.browse-pane-count span { color: var(--muted); font-weight: 400; }
.browse-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.browse-ctrl-btn:hover { border-color: var(--navy); color: var(--navy); }
.browse-ctrl-btn.active { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-light); }
.browse-ctrl-group { display: flex; gap: 6px; align-items: center; }
/* Dropdown wrapper */
.browse-dropdown-wrap { position: relative; }
.browse-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
}
.browse-dropdown-panel.right { left: auto; right: 0; }
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--slate);
  cursor: pointer;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--surface); color: var(--navy); }
.dropdown-item.active { color: var(--brand-primary); font-weight: 600; }
.dropdown-item.active::after { content: '✓'; font-size: 0.75rem; }
.dropdown-section-label { padding: 8px 16px 4px; font-size: 0.6875rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; border-top: 1px solid var(--border); }
.dropdown-section-label:first-child { border-top: none; }
.browse-deal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: calc((100vh - 216px) / 3);
  gap: 8px;
  padding: 8px;
  overflow-y: auto;
  align-content: start;
  flex: 1;
  min-height: 0;
}
/* Card-style deal item for 2-col grid */
.deal-list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
  display: flex;
  flex-direction: column;
}
.deal-list-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.deal-list-item.reserved { opacity: 0.82; }
.deal-list-thumb {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.25);
}
.deal-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.deal-list-thumb-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2); color: white;
  font-size: 0.6875rem; font-weight: 600; padding: 2px 9px;
  border-radius: var(--radius-full);
}
.deal-list-thumb-save {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
  color: white;
}
.deal-list-thumb-save:hover { background: rgba(255,255,255,0.3); }
.deal-list-thumb-save.saved { background: var(--danger); border-color: var(--danger); }
.deal-list-info { padding: 12px 12px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.deal-list-location { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.deal-list-title { font-size: 0.875rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.deal-list-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin-top: 2px;
}
.deal-list-metric {
  background: var(--surface); border-radius: var(--radius);
  padding: 6px 4px; text-align: center;
}
.deal-list-metric strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.deal-list-metric.yield strong { color: var(--invest-green); }
.deal-list-metric span { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.deal-list-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.deal-list-reserved-tag { font-size: 0.625rem; font-weight: 700; color: var(--danger); letter-spacing: 0.06em; text-transform: uppercase; }
/* Filter panel in browse pane */
.browse-filter-pane {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

/* ── Landing page nav (public) ─────────────────────────────── */
.public-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 0;
}
.public-nav-logo { font-size: 1.125rem; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; text-decoration: none; flex-shrink: 0; }
.public-nav-logo span { color: var(--brand-primary); }
.public-nav-links { display: flex; align-items: center; gap: 4px; margin-left: 32px; }
.public-nav-link { padding: 7px 14px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; color: var(--slate); text-decoration: none; transition: all var(--transition); }
.public-nav-link:hover { background: var(--surface); color: var(--navy); }
.public-nav-link.active { color: var(--navy); font-weight: 600; }
.public-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Hero fullscreen (investor homepage) ───────────────────── */
.hero-fullscreen {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0F172A 0%, #1A2E4A 45%, #1E3A5F 100%);
}
.hero-fullscreen-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb-1 { width: 600px; height: 600px; background: #2563EB; top: -100px; right: -100px; animation: orbFloat 8s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: #047857; bottom: -50px; left: 10%; animation: orbFloat 11s ease-in-out infinite reverse; }
.hero-orb-3 { width: 300px; height: 300px; background: #7C3AED; top: 30%; left: -100px; animation: orbFloat 9s ease-in-out infinite 2s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.05); } }
/* grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-fullscreen-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  width: 100%;
}
.hero-fullscreen-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-eyebrow-dot-green { width: 7px; height: 7px; border-radius: 50%; background: var(--invest-green); flex-shrink: 0; }
.hero-fullscreen h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-fullscreen h1 .accent-green { color: #6EE7B7; }
.hero-fullscreen h1 .accent-blue { color: #93C5FD; }
.hero-fullscreen-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-browse-bar {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  max-width: 580px;
  margin: 0 auto 32px;
  gap: 8px;
}
.hero-browse-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--navy);
  background: transparent;
  padding: 8px 0;
}
.hero-browse-bar input::placeholder { color: var(--muted); }
.hero-browse-bar-icon { color: var(--muted); display: flex; align-items: center; flex-shrink: 0; }
.hero-actions-row { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.4); font-size: 0.75rem; animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown { 0%,100%{transform:translateY(0);opacity:0.4;} 50%{transform:translateY(6px);opacity:0.7;} }

/* ── Trust/stats band ──────────────────────────────────────── */
.stats-band {
  background: var(--navy);
  padding: 28px 0;
}
.stats-band-inner { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stats-band-item { display: flex; flex-direction: column; align-items: center; padding: 12px 40px; border-right: 1px solid rgba(255,255,255,0.08); }
.stats-band-item:last-child { border-right: none; }
.stats-band-value { font-size: 1.75rem; font-weight: 800; color: white; letter-spacing: -0.03em; line-height: 1; }
.stats-band-value.green { color: #6EE7B7; }
.stats-band-label { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 4px; font-weight: 400; }

/* ── Supplier landing (dark premium) ──────────────────────── */
.supplier-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #020617 0%, #0C1830 50%, #0F2D1E 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.supplier-hero-orb-1 { background: #047857; }
.supplier-hero-orb-2 { background: #1E40AF; }
.supplier-exclusive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4,120,87,0.15);
  border: 1px solid rgba(110,231,183,0.25);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6EE7B7;
  margin-bottom: 20px;
}
.supplier-stats-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.supplier-stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.06); padding: 8px 16px; }
.supplier-stat-item:last-child { border-right: none; }
.supplier-stat-value { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.supplier-stat-value.green { color: #6EE7B7; }
.supplier-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ── Deal teaser card (homepage/browse) ────────────────────── */
.deal-teaser-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.deal-teaser-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.deal-teaser-img {
  height: 160px;
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  filter: blur(3px);
  overflow: hidden;
  position: relative;
}
.deal-teaser-body { padding: 16px; }
.deal-teaser-blur { filter: blur(5px); user-select: none; }
.deal-teaser-lock {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
}


/* ══════════════════════════════════════════════════════════════
   PHASE B ADDITIONS — Hamburger Nav, Drawer, 3-Col Messages,
   Profile Tabs, Saved Searches, Reserved Badge, Chat Prompts
   ══════════════════════════════════════════════════════════════ */

/* ── Investor top nav (replaces sidebar) ──────────────────── */
.investor-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topnav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-logo span { color: var(--brand-primary); }
.topnav-center { flex: 1; display: flex; justify-content: center; }
.topnav-search-bar {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.topnav-search-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--white);
}
.topnav-search-bar .topnav-search-icon {
  padding: 0 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.topnav-search-bar input {
  flex: 1;
  padding: 9px 12px 9px 0;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--navy);
  background: transparent;
}
.topnav-search-bar input::placeholder { color: var(--muted); }
.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topnav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  position: relative;
  transition: background var(--transition);
}
.topnav-icon-btn:hover { background: var(--surface); }
.topnav-icon-btn .topnav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--brand-primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.btn-supplier, .btn-supplier:hover { color: white !important; border-color: rgba(220,38,38,0.75) !important; background: rgba(220,38,38,0.75) !important; display: inline-flex !important; align-items: center; gap: 6px; }
.hamburger-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--white);
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.hamburger-pill:hover { box-shadow: var(--shadow-md); }
.hamburger-pill .ham-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.hamburger-pill .ham-lines span {
  display: block;
  height: 1.5px;
  background: var(--slate);
  border-radius: 2px;
  width: 100%;
}
.hamburger-pill .ham-lines span:last-child { width: 70%; }

/* ── Investor layout (full-width, no sidebar) ─────────────── */
.investor-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--surface);
  padding-top: 64px;
}
.investor-main {
  flex: 1;
  min-width: 0;
}
.tab-content-padded {
  padding: 28px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.tab-content-full {
  width: 100%;
}

/* ── Browse hero search section ───────────────────────────── */
.browse-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
}
.browse-hero-inner { max-width: 1200px; margin: 0 auto; }
.browse-hero-greeting { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.browse-hero-sub { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }
.browse-search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.browse-search-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.browse-search-bar .bs-icon {
  padding: 0 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.browse-search-bar input {
  flex: 1;
  padding: 13px 16px 13px 0;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--navy);
  background: transparent;
}
.browse-search-bar input::placeholder { color: var(--muted); }

/* ── Drawer (slide-in from right) ─────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.investor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.investor-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-user-info { display: flex; align-items: center; gap: 12px; }
.drawer-user-name { font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.drawer-user-meta { font-size: 0.8125rem; color: var(--muted); }
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all var(--transition);
}
.drawer-close:hover { background: var(--surface); color: var(--navy); }
.drawer-nav { padding: 8px 0; flex: 1; }
.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.drawer-nav-item:hover { background: var(--surface); color: var(--navy); }
.drawer-nav-item.active { color: var(--brand-primary); font-weight: 600; }
.drawer-nav-item-left { display: flex; align-items: center; gap: 12px; }
.drawer-nav-item svg { color: var(--muted); flex-shrink: 0; }
.drawer-nav-item.active svg { color: var(--brand-primary); }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }
.drawer-footer {
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
}

/* ── Reserved deal badge overlay ──────────────────────────── */
.deal-reserved-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.80);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 3;
}

/* ── 3-column message layout ──────────────────────────────── */
.message-layout-3col {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--white);
}
.msg-deal-context-panel {
  border-left: 1px solid var(--border);
  background: var(--white);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.msg-deal-context-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.msg-deal-context-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.msg-deal-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1E3A5F, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.msg-deal-info { padding: 16px 20px; }
.msg-deal-title { font-size: 0.9375rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.msg-deal-location { font-size: 0.8125rem; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.msg-deal-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
}
.msg-deal-metric-label { font-size: 0.6875rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.msg-deal-metric-value { font-size: 0.9375rem; font-weight: 700; color: var(--navy); }

/* ── Airbnb-style contextual chat note ────────────────────── */
.chat-context-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
  flex-shrink: 0;
}
.chat-context-note svg { flex-shrink: 0; color: var(--muted); margin-top: 1px; }

/* ── Profile sub-tabs ─────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}
.profile-sidenav {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.profile-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.profile-sidenav-item:hover { background: var(--surface); color: var(--navy); }
.profile-sidenav-item.active { background: var(--brand-light); color: var(--brand-primary); font-weight: 600; }
.profile-sidenav-item svg { flex-shrink: 0; }
.profile-sidenav-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 12px 6px;
}
.profile-content { padding: 28px 32px; }

/* ── Saved search cards ───────────────────────────────────── */
.saved-search-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.saved-search-card:hover { box-shadow: var(--shadow-md); }
.saved-search-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.saved-search-info { flex: 1; min-width: 0; }
.saved-search-name { font-size: 0.9375rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.saved-search-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.saved-search-alert-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-track::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-track { background: var(--brand-primary); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(16px); }

/* ── Settings form ────────────────────────────────────────── */
.settings-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}
.settings-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-section-title { font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.settings-section-body { padding: 20px; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 0.875rem; color: var(--navy); font-weight: 500; }
.settings-row-value { font-size: 0.875rem; color: var(--muted); }
.settings-row-action { font-size: 0.875rem; color: var(--brand-primary); cursor: pointer; font-weight: 500; }
.settings-row-action:hover { color: var(--brand-dark); }

/* ── Suggested section ────────────────────────────────────── */
.suggested-section {
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.suggested-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.suggested-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

/* ── Refer modal content ──────────────────────────────────── */
.refer-link-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.refer-link-url {
  flex: 1;
  font-size: 0.875rem;
  color: var(--brand-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Shared footer ──────────────────────────────────────────── */
.hp-footer { background: var(--white); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.hp-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.hp-footer-brand p { font-size: 0.9375rem; color: var(--slate); line-height: 1.7; margin: 12px 0 20px; max-width: 280px; }
.hp-footer-heading { font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.hp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.hp-footer-link { font-size: 0.875rem; color: var(--slate); text-decoration: none; transition: color var(--transition); }
.hp-footer-link:hover { color: var(--brand-primary); }
.hp-footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.hp-footer-disclaimer { font-size: 0.75rem; color: var(--muted); max-width: 620px; line-height: 1.6; }
.hp-footer-copy { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.intro-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 4px 12px; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 768px) { .hp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hp-footer-grid { grid-template-columns: 1fr; } .hp-footer-bottom { flex-direction: column; } }

