/* ============================================================
   BizLinx.AI — Global Design System
   "Financial technology meets luxury consumer brand."
   Apple + Stripe + Notion + Glossier
   ============================================================ */

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

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --white:     var(--brand-white);
  --teal:      var(--brand-accent);
  --teal-dark: var(--brand-accent);
  --purple:    var(--brand-primary);
  --purple-dark: var(--brand-primary);
  --pink:      var(--brand-accent);
  --charcoal:  var(--brand-text);
  --muted:     #64748b;
  --light-bg:  #F8F9FE;
  --border:    rgba(123,45,139,0.12);

  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.08), 0 2px 8px rgba(15,23,42,0.04);
  --shadow-lg:  0 12px 40px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
  --shadow-teal: 0 8px 32px rgba(0, 188, 212, 0.25);
  --shadow-purple: 0 8px 32px rgba(123, 45, 139, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }

p { color: var(--muted); line-height: 1.7; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--white { background: var(--white); }
.section--light { background: var(--light-bg); }
.section--gradient {
  background: linear-gradient(135deg, rgba(123,45,139,0.04) 0%, rgba(0,188,212,0.04) 100%);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123,45,139,0.08);
  border: 1px solid var(--border);
  color: var(--purple);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,188,212,0.35);
  color: var(--white);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
  box-shadow: var(--shadow-purple);
}
.btn-purple:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(123,45,139,0.35);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  background: rgba(123,45,139,0.06);
  border-color: var(--purple);
  color: var(--purple);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(123,45,139,0.2);
}

.card-sm {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

/* ── Score Circle ─────────────────────────────────────────── */
.score-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal) 0deg,
    var(--teal) calc(var(--score, 0) * 3.6deg),
    rgba(123,45,139,0.1) calc(var(--score, 0) * 3.6deg),
    rgba(123,45,139,0.1) 360deg
  );
}

.score-circle::after {
  content: '';
  position: absolute;
  inset: 12%;
  background: var(--white);
  border-radius: 50%;
}

.score-circle .score-value {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--charcoal);
  letter-spacing: -0.04em;
}

.score-circle-sm {
  width: 120px;
  height: 120px;
}
.score-circle-sm .score-value {
  font-size: 1.6rem;
}

.score-circle-lg {
  width: 200px;
  height: 200px;
}
.score-circle-lg .score-value {
  font-size: 3.2rem;
}

.score-circle-xl {
  width: 280px;
  height: 280px;
}
.score-circle-xl .score-value {
  font-size: 4.5rem;
}

/* ── Badge / Pill ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-teal {
  background: rgba(0,188,212,0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(0,188,212,0.2);
}

.badge-purple {
  background: rgba(123,45,139,0.1);
  color: var(--purple);
  border: 1px solid rgba(123,45,139,0.18);
}

.badge-pink {
  background: rgba(255,95,162,0.1);
  color: var(--pink);
  border: 1px solid rgba(255,95,162,0.2);
}

/* ── Risk Rating ─────────────────────────────────────────── */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.rating-bar span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.rating-dots {
  display: flex;
  gap: 4px;
}

.rating-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(123,45,139,0.15);
}

.rating-dot.filled { background: var(--teal); }
.rating-dot.filled-purple { background: var(--purple); }
.rating-dot.filled-pink { background: var(--pink); }

/* ── Grid layouts ────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── Step / Process ───────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  justify-content: center;
}

.step {
  text-align: center;
  max-width: 240px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.step h4 { margin-bottom: 0.5rem; color: var(--charcoal); }
.step p { font-size: 0.9rem; }

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 1px;
  margin-top: 28px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .steps { flex-direction: column; align-items: center; }
  .step-connector { width: 2px; height: 40px; margin: 0; background: linear-gradient(180deg, var(--purple), var(--teal)); }
}

/* ── Hero overlay ─────────────────────────────────────────── */
.hero-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.72) 0%,
    rgba(123,45,139,0.5) 50%,
    rgba(0,188,212,0.35) 100%
  );
}

.hero-overlay .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-overlay .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,188,212,0.2);
  border: 1px solid rgba(0,188,212,0.35);
  color: var(--teal);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-overlay h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 800px;
  margin: 0 auto 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-overlay .sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-overlay .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (not full image) ─────────────────────────── */
.page-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.page-hero .score-circle-wrap {
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer .footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.site-footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.site-footer a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s, transform 0.15s;
  margin-bottom: 0;
}

.footer-social-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── Form elements ───────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(123,45,139,0.15);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,45,139,0.1);
}

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

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Misc utilities ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-purple { color: var(--purple); }
.text-pink { color: var(--pink); }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ── Animated gradient blob ─────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse { animation: pulse-glow 3s ease-in-out infinite; }

/* ── Responsive helpers ──────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero-overlay { min-height: 80vh; }
  .hide-mobile { display: none !important; }
  .btn-lg { padding: 0.9rem 1.8rem; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ── Cookie Banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-primary);
  z-index: 9997;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -4px 24px rgba(123,45,139,0.25);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-icon { font-size: 1.4rem; flex-shrink: 0; }
.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}
.cookie-text a { color: var(--teal); }
.cookie-text a:hover { color: var(--teal-dark); }
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.6);
}
.cookie-modal-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.cookie-modal-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.cookie-modal-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-info { flex: 1; }
.cookie-toggle-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.cookie-toggle-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--teal); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.6; cursor: not-allowed; }

.cookie-modal-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .cookie-banner { padding: 0.85rem 1rem; }
  .cookie-content { gap: 0.75rem; }
  .cookie-text { font-size: 0.82rem; }
  .cookie-modal-card { padding: 1.5rem; }
}

/* ── Buyer Dashboard — Track Picker ─────────────────────── */
.track-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.track-picker-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.5rem;
}
.track-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.track-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.track-btn.active {
  border-color: var(--purple);
  background: rgba(123,45,139,0.06);
  color: var(--purple);
}
.track-btn .track-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.track-btn.active .track-dot { opacity: 1; }

/* ── Buyer Dashboard — InvestScore Widget ────────────────── */
.insight-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.insight-chip .chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Buyer Dashboard — Deal Tracker ──────────────────────── */
.deal-tracker-panel { }
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(123,45,139,0.12), rgba(0,188,212,0.08));
  color: var(--purple);
  border: 1px solid rgba(123,45,139,0.2);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
}
.premium-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
}
.deal-stage-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.deal-stage-stat {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.deal-stage-stat .stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  line-height: 1;
}
.deal-stage-stat .stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 3px;
}
.deal-list { display: flex; flex-direction: column; }
.deal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.deal-row:last-child { border-bottom: none; padding-bottom: 0; }
.deal-row:first-child { padding-top: 0; }
.deal-info { flex: 1; min-width: 0; }
.deal-seller {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-listing {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.deal-updated { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stage-badge.listed { background: rgba(0,188,212,0.1); color: var(--teal-dark); border: 1px solid rgba(0,188,212,0.18); }
.stage-badge.matched { background: rgba(123,45,139,0.1); color: var(--purple); border: 1px solid rgba(123,45,139,0.15); }
.stage-badge.diligence { background: rgba(249,115,22,0.1); color: #c2410c; border: 1px solid rgba(249,115,22,0.18); }
.stage-badge.close { background: rgba(22,163,74,0.1); color: #15803d; border: 1px solid rgba(22,163,74,0.15); }
.stage-badge.unknown { background: var(--light-bg); color: var(--muted); border: 1px solid var(--border); }

/* ── Scrollbar styling ───────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(123,45,139,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(123,45,139,0.35); }