/* ============================================================
   CASEDROP NU — STYLES.CSS (Boardroom direction)
   Drop-in replacement. Keeps every class name from the previous
   stylesheet; refreshes typography, color, composition, and chrome.
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  /* Type */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Northwestern purple (official) + roles */
  --purple:        #4E2A84;
  --purple-light:  #6B4AA6;
  --purple-dark:   #341C5C;
  --purple-deeper: #22113E;
  --purple-faint:  #F1ECF6;

  /* Ivory / cream accent (replaces gold) */
  --cream:         #EFE6D4;
  --cream-2:       #F5EFE6;
  --cream-soft:    #FAF6EC;

  /* Surfaces */
  --white:         #FFFFFF;
  --paper:         #FCFAF5;   /* warm off-white app bg */
  --surface:       #F8F6F1;   /* inset/section panel */

  /* Ink + neutrals */
  --gray-50:       #F8F6F1;
  --gray-100:      #EFEBE2;
  --gray-200:      #E5DFD0;     /* primary hairline */
  --gray-300:      #D6CFBE;
  --gray-400:      #94909B;
  --gray-500:      #6A6478;
  --gray-700:      #3F3953;
  --gray-900:      #0E0B1A;     /* primary ink */

  /* Semantic */
  --green:         #1F8A5B;
  --red:           #C5394A;
  --amber:         #B68A1E;

  /* Radii — tight, structural */
  --radius-xs:     4px;
  --radius-sm:     6px;
  --radius:        8px;
  --radius-lg:     12px;

  /* Shadows — restrained */
  --shadow-xs:     0 1px 2px rgba(15,11,40,0.04);
  --shadow-sm:     0 2px 6px rgba(15,11,40,0.06);
  --shadow:        0 6px 18px rgba(15,11,40,0.08);
  --shadow-lg:     0 14px 40px rgba(15,11,40,0.12);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3,
.header-title, .page-heading, .onboarding-step-title, .swipe-name,
.match-overlay-title, .empty-title, .match-stage-title, .match-name,
.profile-name-lg, .modal-match-title, .modal-profile-name,
.modal-detail-name, .avail-setup-title, .review-modal-title,
.swipe-sidebar-section-title, .profile-section-title, .section-title,
.swipe-page-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== APP SHELL ===== */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  background-image: none;
  color: var(--gray-900);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: none;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
/* If you can edit the header in app.js, the second word "NU" looks great
   in purple — this rule colors it when wrapped in a span.purple. */
.header-logo-text .nu,
.header-logo-text span:last-child { color: var(--purple); }

/* ===== HEADER NAV ===== */
.header-nav { display: flex; gap: 0; align-items: stretch; height: 60px; }
.header-nav-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  padding: 0 16px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  border-bottom: 2px solid transparent;
  letter-spacing: -0.01em;
}
.header-nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.header-nav-btn:hover { color: var(--gray-900); background: transparent; }
.header-nav-btn.active {
  color: var(--gray-900);
  background: transparent;
  font-weight: 700;
  border-bottom-color: var(--purple);
}
.header-nav-badge {
  background: var(--red); color: var(--white);
  border-radius: 99px; padding: 1px 6px;
  font-size: 10px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.header-reset-btn {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s;
  line-height: 1;
  font-family: inherit;
  font-weight: 600;
}
.header-reset-btn:hover { color: var(--gray-900); background: var(--cream-2); border-color: var(--gray-300); }

/* ===== SCREEN ===== */
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--paper); }
.screen::-webkit-scrollbar { width: 8px; }
.screen::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.screen::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ===== PAGE CONTAINER ===== */
.page-container { max-width: 1180px; margin: 0 auto; padding: 36px 36px 64px; }
.page-container--swipe { padding: 20px 32px 0; max-width: 1180px; }

/* ===== PAGE HEADINGS ===== */
.page-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}
.page-subheading {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* ===== ONBOARDING PAGE ===== */
.onboarding-page {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 64px;
  background: var(--paper);
}
@keyframes ob-step-in { from { opacity: 0; } to { opacity: 1; } }
.onboarding {
  max-width: 520px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: ob-step-in 0.12s ease;
}
.ob-exit { opacity: 0; transition: opacity 0.1s ease; }
.onboarding-header {
  background: var(--white);
  padding: 36px 32px 24px;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}
.onboarding-step-indicator { display: flex; gap: 4px; margin-bottom: 24px; }
.step-dot {
  height: 3px;
  border-radius: 99px;
  background: var(--gray-200);
  transition: all 0.3s;
  flex: 1;
}
.step-dot.active { background: var(--purple); }
.step-dot.done { background: var(--gray-900); }

.onboarding-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--purple);
}
.onboarding-icon svg { filter: none; color: var(--purple); }
.onboarding-step-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  font-family: var(--font-heading);
  color: var(--gray-900);
  letter-spacing: -0.025em;
}
.onboarding-step-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
  line-height: 1.55;
  font-weight: 500;
}

.onboarding-body {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
}
.field-group { display: flex; flex-direction: column; }

.text-input {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}
.text-input:focus { border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 3px rgba(78,42,132,0.10); }
.text-input::placeholder { color: var(--gray-400); }

.select-input {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  width: 100%;
  appearance: none;
  cursor: pointer;
  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='%236A6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  transition: border-color 0.15s;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}
.select-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(78,42,132,0.10); }

/* ===== MAJOR SEARCH ===== */
.major-search-wrap { position: relative; }
.major-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--white);
  border: 1px solid var(--purple);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.major-dropdown:empty { display: none; }
.major-option {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-900);
  cursor: pointer;
  transition: background 0.1s;
  font-weight: 500;
}
.major-option:hover { background: var(--purple-faint); color: var(--purple); font-weight: 600; }
.major-search-wrap:has(.major-dropdown:not(:empty)) .text-input {
  border-radius: var(--radius) var(--radius) 0 0;
  border-color: var(--purple);
}

.option-cards { display: flex; flex-direction: column; gap: 8px; }
.option-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s;
  background: var(--white);
}
.option-card:hover { border-color: var(--purple); background: var(--purple-faint); }
.option-card.selected { border-color: var(--purple); background: var(--purple-faint); }
.option-card-icon { font-size: 20px; flex-shrink: 0; color: var(--purple); }
.option-card-text { flex: 1; }
.option-card-label { font-size: 14px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; }
.option-card-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; font-weight: 500; }
.option-card-check {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-300);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.option-card.selected .option-card-check { background: var(--purple); border-color: var(--purple); }
.option-card.selected .option-card-check::after {
  content: '✓'; color: var(--white); font-size: 11px; font-weight: 800;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== MAJOR MULTI-SELECT PILLS ===== */
.major-selected-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.major-selected-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-xs);
  padding: 4px 7px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.major-pill-remove {
  background: none; border: none;
  color: rgba(255,255,255,0.75); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px;
  display: flex; align-items: center;
}
.major-pill-remove:hover { color: var(--white); }

/* ===== MULTI-SELECT PILLS ===== */
.pill-select { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  user-select: none;
  line-height: 1;
}
.pill-option:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-faint); }
.pill-option.selected {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.btn-google-signin {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); color: var(--gray-900);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn-google-signin:hover { border-color: var(--gray-400); box-shadow: var(--shadow-xs); }
.btn-google-signin:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-text-link {
  background: none; border: none; color: var(--gray-500);
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: underline; padding: 4px;
  transition: color 0.15s;
  font-family: inherit;
}
.btn-text-link:hover { color: var(--purple); }

/* Welcome screen */
.ob-value-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ob-value-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--gray-700); line-height: 1.5;
  font-weight: 500;
}
.ob-value-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; color: var(--purple); }
.ob-signin-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--gray-400); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ob-signin-divider::before, .ob-signin-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.ob-signed-in-badge {
  background: var(--cream-2); color: var(--gray-900);
  border: 1px solid var(--cream);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 13px; font-weight: 600; text-align: center;
}
.ob-privacy-note {
  font-size: 12px; color: var(--gray-400); text-align: center; line-height: 1.5; margin: 0;
}

.onboarding-footer {
  padding: 4px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.btn-primary:hover { background: var(--purple); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; }

.btn-secondary {
  background: none;
  color: var(--gray-500);
  border: none;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
  font-weight: 600;
}
.btn-secondary:hover { color: var(--purple); }

textarea.text-input { resize: none; min-height: 110px; line-height: 1.55; }

/* ===== DISCOVER LAYOUT ===== */
.swipe-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 32px;
  align-items: start;
}
.swipe-sidebar { margin-top: 180px; }
.swipe-main { min-width: 0; }
.swipe-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.swipe-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.swipe-sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.swipe-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.swipe-sidebar-stat {
  text-align: left;
  padding: 12px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.swipe-sidebar-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.swipe-sidebar-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.swipe-sidebar-matches-btn {
  width: 100%;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.swipe-sidebar-matches-btn:hover { background: var(--purple); }
.swipe-sidebar-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 8px;
}
.swipe-sidebar-profile-row:last-child { border-bottom: none; }
.swipe-sidebar-profile-label { font-size: 12px; color: var(--gray-500); flex-shrink: 0; font-weight: 500; }
.swipe-sidebar-profile-value { font-size: 12px; font-weight: 700; color: var(--gray-900); text-align: right; }
.swipe-sidebar-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.swipe-sidebar-tip-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.swipe-sidebar-tip-text { font-size: 12px; color: var(--gray-500); line-height: 1.55; font-weight: 500; }

/* ===== SWIPE CARD ===== */
.swipe-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.swipe-page-header {
  text-align: left;
  margin-bottom: 16px;
  width: 100%;
}
.swipe-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}
.swipe-page-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* Deck area */
.swipe-deck-area {
  position: relative;
  width: 100%;
  max-width: 704px;
  margin: 0 auto;
  height: clamp(340px, calc(100vh - 360px), 420px);
}

/* Behind card */
.swipe-card-behind {
  position: absolute;
  inset: 10px 14px 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  z-index: 0;
  transform: scale(0.96) translateY(6px);
}

/* Main card */
.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  border: 1px solid var(--gray-200);
}
.swipe-card.is-dragging { cursor: grabbing; }

/* LIKE / NOPE stamps */
.swipe-like-stamp,
.swipe-pass-stamp {
  position: absolute;
  top: 24px;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 3px solid;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.08s;
  font-family: var(--font-heading);
}
.swipe-like-stamp {
  right: 22px;
  color: var(--purple);
  border-color: var(--purple);
  transform: rotate(15deg);
}
.swipe-pass-stamp {
  left: 22px;
  color: var(--red);
  border-color: var(--red);
  transform: rotate(-15deg);
}

/* Scrollable */
.swipe-card-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: var(--white);
}
.swipe-card-scrollable::-webkit-scrollbar { width: 4px; }
.swipe-card-scrollable::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

/* Hero — Boardroom: real photo, no gradient */
.swipe-card-hero {
  background: var(--purple);
  background-image: var(--swipe-hero-photo, none);
  background-size: cover;
  background-position: center 28%;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  height: 248px;
}
.swipe-card-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,11,26,0.15) 0%, rgba(14,11,26,0.05) 40%, rgba(14,11,26,0.75) 100%);
  pointer-events: none;
}
.swipe-card-hero > * { position: relative; z-index: 1; }

/* Avatar — kept as fallback when no hero photo is set */
.swipe-avatar-xl {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.swipe-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  line-height: 1.05;
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

.swipe-stage-badge {
  font-size: 11px;
  background: rgba(255,255,255,0.92);
  color: var(--gray-900);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  border: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.swipe-hero-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.swipe-tag {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  color: var(--white);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
  letter-spacing: -0.005em;
}

/* Scroll hint */
.swipe-scroll-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
}
.swipe-scroll-hint-text {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Details */
.swipe-card-details {
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swipe-detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.swipe-detail-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 500;
}
.swipe-case-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.swipe-case-tag {
  background: var(--cream-2);
  color: var(--gray-900);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Action buttons */
.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px 0 28px;
  width: 100%;
  flex-shrink: 0;
}
.btn-swipe-pass {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.18s;
  flex-shrink: 0;
  font-size: 18px;
}
.btn-swipe-pass:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(197,57,74,0.2);
  transform: scale(1.05);
}
.btn-swipe-pass:active { transform: scale(0.95); }
.btn-swipe-pass:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-swipe-like {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(78,42,132,0.40);
  transition: all 0.18s;
  flex-shrink: 0;
  font-size: 24px;
}
.btn-swipe-like:hover {
  background: var(--purple-dark);
  box-shadow: 0 12px 26px rgba(78,42,132,0.5);
  transform: scale(1.05);
}
.btn-swipe-like:active { transform: scale(0.95); }
.btn-swipe-like:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== MATCH OVERLAY ===== */
.match-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  animation: fadeIn 0.25s ease;
}
.match-overlay-content { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; }
.match-overlay-sparkles { font-size: 36px; animation: popIn 0.5s cubic-bezier(0.16,1,0.3,1); margin-bottom: 8px; }
.match-overlay-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  line-height: 1.02;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  animation: slideUp 0.4s 0.08s both cubic-bezier(0.16,1,0.3,1);
}
.match-overlay-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 500;
  animation: slideUp 0.4s 0.14s both cubic-bezier(0.16,1,0.3,1);
}
.match-overlay-avatars {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0 22px;
  animation: slideUp 0.4s 0.2s both cubic-bezier(0.16,1,0.3,1);
}
.match-overlay-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.match-overlay-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.match-overlay-avatar-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); }
.match-overlay-heart-mid { font-size: 28px; color: var(--purple-light); animation: pulse 1.4s 0.5s infinite; }
.match-overlay-btn-connect {
  width: 100%;
  max-width: 320px;
  background: var(--white);
  color: var(--gray-900);
  border: none;
  border-radius: var(--radius);
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  animation: slideUp 0.4s 0.28s both cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
  letter-spacing: -0.015em;
}
.match-overlay-btn-connect:hover { background: var(--purple); color: var(--white); transform: translateY(-1px); }
.match-overlay-btn-connect:active { transform: scale(0.99); }
.match-overlay-btn-keep {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px;
  margin-top: 4px;
  transition: color 0.15s;
  animation: slideUp 0.4s 0.34s both cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
}
.match-overlay-btn-keep:hover { color: var(--white); }
.match-overlay-btn-suppress {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 14px 10px;
  margin-top: 2px;
  transition: color 0.15s;
  animation: slideUp 0.4s 0.4s both cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.match-overlay-btn-suppress:hover { color: rgba(255,255,255,0.65); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 72px 32px; display: flex; flex-direction: column; align-items: center; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-title { font-size: 24px; font-weight: 800; font-family: var(--font-heading); color: var(--gray-900); letter-spacing: -0.025em; }
.empty-desc { font-size: 14px; color: var(--gray-500); margin-top: 8px; line-height: 1.55; max-width: 400px; font-weight: 500; }
.empty-action { margin-top: 22px; }

/* ===== TAGS ===== */
.tag {
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.tag-exp { background: var(--purple-faint); color: var(--purple); }
.tag-target { background: var(--cream-2); color: var(--gray-900); }
.tag-major { background: var(--surface); color: var(--gray-700); }

/* ===== MATCHES SCREEN ===== */
.matches-kanban { width: 100%; max-width: 1280px; margin: 0 auto; }
.matches-kanban-header { margin-bottom: 18px; }

.match-stages-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

/* ===== MESSAGES ===== */
.page-container--messages {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.messages-page {
  display: grid;
  grid-template-columns: 36fr 64fr;
  height: 100%;
  overflow: hidden;
}
.messages-col-list {
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}
.messages-list-header {
  padding: 18px 20px 14px;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  letter-spacing: -0.025em;
}

/* Chat list */
.chat-list-body { flex: 1; overflow-y: auto; }
.chat-list-body::-webkit-scrollbar { width: 4px; }
.chat-list-body::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

.chat-list-empty {
  padding: 48px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  font-weight: 500;
}
.chat-list-go-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}
.chat-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
  user-select: none;
}
.chat-list-row:hover { background: var(--surface); }
.chat-list-row-selected { background: var(--purple-faint) !important; }
.chat-list-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.chat-list-content { flex: 1; min-width: 0; }
.chat-list-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.chat-list-name--unread { font-weight: 800; }
.chat-list-preview {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.chat-list-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-list-time { font-size: 11px; color: var(--gray-400); white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.chat-list-badge {
  background: var(--purple);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* Right column: chat */
.messages-col-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}
.messages-col-chat .matches-chat-panel {
  flex: 1;
  height: 100%;
  max-height: none;
  min-height: 0;
  position: static;
  border: none;
  border-radius: 0;
}

/* Avatar button */
.header-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.header-avatar-btn:hover { opacity: 0.85; }
.header-avatar-btn--active .header-avatar-circle {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--purple);
}
.header-avatar-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
  background: var(--purple);
  transition: box-shadow 0.15s;
  letter-spacing: -0.01em;
}

/* Chat panel */
.matches-chat-panel { background: var(--white); display: flex; flex-direction: column; overflow: hidden; }
.chat-empty-state {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 40px;
}
.chat-empty-icon { font-size: 32px; opacity: 0.5; }
.chat-empty-text { font-size: 14px; color: var(--gray-400); text-align: center; font-weight: 500; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--white);
}
.chat-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.chat-header-name {
  font-size: 15px; font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.chat-header-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 1px;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

.chat-msg-row { display: flex; flex-direction: column; max-width: 72%; }
.chat-msg-mine   { align-self: flex-end; align-items: flex-end; }
.chat-msg-theirs { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  font-weight: 500;
}
.chat-bubble-mine {
  background: var(--purple);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-bubble-theirs {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
}
.chat-msg-time { font-size: 10px; color: var(--gray-400); margin-top: 3px; padding: 0 3px; font-variant-numeric: tabular-nums; font-weight: 500; }

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-weight: 500;
}
.chat-input:focus { border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 3px rgba(78,42,132,0.08); }
.chat-input::placeholder { color: var(--gray-400); }
.chat-send-btn {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.chat-send-btn:hover { background: var(--purple); }

/* Unread badge */
.match-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  padding: 0 5px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.match-card-chat-open {
  border-color: var(--purple) !important;
  background: var(--purple-faint) !important;
}

.match-view-profile-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
  margin: 6px 0;
}
.match-view-profile-btn:hover { border-color: var(--purple); color: var(--purple); }

.match-message-btn {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin: 6px 0;
  letter-spacing: -0.005em;
}
.match-message-btn:hover { background: var(--purple); }

.btn-outline-purple {
  display: block;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--purple);
  color: var(--purple);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  margin-top: 8px;
}
.btn-outline-purple:hover { background: var(--purple); color: var(--white); }

/* Liked banner */
.match-liked-banner { padding: 8px 14px 0; }
.match-liked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--purple);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-like-back-btn {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin: 6px 0;
  letter-spacing: -0.005em;
}
.match-like-back-btn:hover { background: var(--purple-dark); }

.match-card-incoming {
  border-left: 3px solid var(--purple) !important;
  cursor: pointer;
}

/* Kanban */
.match-stage-section {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.match-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--surface);
}
.match-stage-header-left { display: flex; align-items: center; gap: 10px; }
.match-stage-icon { font-size: 18px; color: var(--purple); }
.match-stage-title {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--gray-900);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.match-stage-desc { font-size: 11px; color: var(--gray-500); margin-top: 2px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.match-stage-count {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.match-stage-empty {
  font-size: 12px;
  color: var(--gray-400);
  padding: 28px 16px;
  font-style: normal;
  text-align: center;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin: 10px;
  font-weight: 500;
}

.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 10px;
}

.match-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s, transform 0.15s;
  user-select: none;
}
.match-card:hover { border-color: var(--purple); box-shadow: var(--shadow-xs); }
.match-card-draggable { cursor: grab; }
.match-card-draggable:active { cursor: grabbing; }
.match-card-locked { cursor: default; }
.match-card.is-dragging { opacity: 0.5; box-shadow: none; outline: 2px dashed var(--purple); }

.match-card-drag-handle {
  flex-shrink: 0;
  width: 14px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-300);
  cursor: grab;
  letter-spacing: -2px;
  transition: color 0.12s;
  margin-right: 2px;
}
.match-card-draggable:hover .match-card-drag-handle { color: var(--purple); }
.match-card-locked .match-card-drag-handle { cursor: not-allowed; font-size: 11px; color: var(--gray-300); }

.match-stage-section.drag-over {
  background: var(--purple-faint);
  outline: 2px dashed var(--purple);
  outline-offset: -2px;
}
.match-stage-section.drag-over .match-stage-empty {
  color: var(--purple);
  font-weight: 700;
  border-color: var(--purple);
}

.match-card-main {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-card-arrow {
  color: var(--purple);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 2px;
}

.match-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid var(--gray-100);
  background: var(--surface);
  min-height: 38px;
}
.match-status-back {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  padding: 10px 6px;
  font-family: inherit;
  transition: color 0.15s;
}
.match-status-back:hover { color: var(--gray-900); }
.match-status-next {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin: 6px 0;
  letter-spacing: -0.005em;
}
.match-status-next:hover { background: var(--purple); }

.section-title {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.match-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.match-info { flex: 1; min-width: 0; }
.match-name {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.match-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.match-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

/* ===== PROFILE ===== */
.profile-layout { max-width: 1020px; margin: 0 auto; }
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.profile-left-col { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.profile-right-col { display: flex; flex-direction: column; gap: 16px; }

.profile-left-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.profile-left-stat-row:last-child { border-bottom: none; }
.profile-left-stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.profile-left-stat-value { font-size: 13px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.profile-hero {
  background: var(--gray-900);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}
.profile-avatar-lg {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.profile-name-lg {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}
.profile-sub-lg { font-size: 13px; opacity: 0.75; margin-top: 4px; font-weight: 500; }

.profile-section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 20px;
}
.profile-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.profile-section-title {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.14em;
  color: var(--gray-500);
  text-transform: uppercase;
}
.profile-section-edit { font-size: 12px; font-weight: 700; color: var(--purple); cursor: pointer; }
.profile-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.profile-row:last-child { border-bottom: none; }
.profile-row-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.profile-row-value { font-size: 13px; font-weight: 700; color: var(--gray-900); text-align: right; letter-spacing: -0.01em; }
.profile-bio-text { font-size: 14px; color: var(--gray-700); line-height: 1.6; font-weight: 500; }

.profile-pill-list { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.profile-pill {
  background: var(--purple-faint);
  color: var(--purple);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.profile-edit-actions { display: flex; gap: 10px; margin-top: 4px; }

/* Danger zone */
.danger-zone-card {
  background: var(--white);
  border: 1px solid #F1C9CC;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 4px;
}
.danger-zone-header { display: flex; align-items: center; margin-bottom: 10px; }
.danger-zone-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.danger-zone-desc { font-size: 13px; color: var(--gray-500); line-height: 1.55; margin-bottom: 16px; font-weight: 500; }
.btn-danger {
  background: var(--white);
  color: var(--red);
  border: 1px solid #F1C9CC;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.btn-danger:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14,11,26,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 14vh;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-match {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 420px;
  padding: 36px 32px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.modal-match .btn-primary {
  background: var(--white);
  color: var(--gray-900);
  margin-top: 18px;
  width: 100%;
}
.modal-match .btn-primary:hover { background: var(--purple); color: var(--white); }
.modal-match-header {
  background: var(--gray-900);
  padding: 32px 24px 22px;
  text-align: center;
  color: var(--white);
}
.modal-match-emoji { font-size: 44px; animation: popIn 0.4s 0.1s both cubic-bezier(0.16, 1, 0.3, 1); margin-bottom: 4px; }
.modal-match-title {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white);
  letter-spacing: -0.03em;
}
.modal-match-sub { font-size: 14px; opacity: 0.8; margin-top: 8px; line-height: 1.5; max-width: 320px; font-weight: 500; }
.modal-match-avatars { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }
.modal-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  animation: popIn 0.4s 0.2s both;
  letter-spacing: -0.02em;
}
.modal-body { padding: 24px; background: var(--white); }
.modal-profile-name {
  font-size: 22px; font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}
.modal-profile-meta { font-size: 13px; color: var(--gray-500); text-align: center; margin-bottom: 18px; font-weight: 500; }
.modal-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.contact-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.contact-icon { font-size: 16px; flex-shrink: 0; color: var(--purple); }
.contact-text { flex: 1; font-size: 13px; color: var(--gray-900); font-weight: 600; word-break: break-all; letter-spacing: -0.005em; }
.contact-copy { font-size: 11px; font-weight: 800; color: var(--purple); cursor: pointer; padding: 4px 8px; border-radius: var(--radius-xs); border: none; background: none; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-copy:hover { background: var(--purple-faint); }
.modal-footer { display: flex; flex-direction: column; gap: 8px; }

/* Contact detail */
.modal-detail-header { padding: 22px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--gray-200); background: var(--white); }
.modal-detail-avatar { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--white); flex-shrink: 0; letter-spacing: -0.02em; }
.modal-detail-name { font-size: 21px; font-weight: 800; font-family: var(--font-heading); letter-spacing: -0.025em; }
.modal-detail-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; font-weight: 500; }
.modal-detail-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.modal-detail-bio {
  font-size: 14px; color: var(--gray-700);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  font-weight: 500;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.fw-bold { font-weight: 800; }

/* ===== COPIED TOAST ===== */
.copied-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  z-index: 999;
  animation: toastIn 0.2s ease;
  pointer-events: none;
  letter-spacing: -0.005em;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== QUICK MATCH ===== */
.qm-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.qm-avail-section, .qm-results {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.qm-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qm-section-title { font-size: 11px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.14em; }
.qm-section-hint { font-size: 12px; color: var(--purple); font-weight: 700; cursor: pointer; }

.avail-grid { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.avail-grid-header { display: grid; grid-template-columns: 82px repeat(7, 1fr); background: var(--surface); border-bottom: 1px solid var(--gray-200); }
.avail-col-label { padding: 10px 4px; text-align: center; font-size: 10px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.1em; }
.avail-row { display: grid; grid-template-columns: 82px repeat(7, 1fr); border-bottom: 1px solid var(--gray-100); }
.avail-row:last-child { border-bottom: none; }
.avail-day-label {
  padding: 12px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  background: var(--surface);
  border-right: 1px solid var(--gray-200);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.avail-cell {
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
  border-right: 1px solid var(--gray-100);
  user-select: none;
  min-height: 46px;
  background: var(--white);
}
.avail-cell:last-child { border-right: none; }
.avail-cell:hover { background: var(--purple-faint); }
.avail-cell.on { background: var(--purple); }
.avail-dot { display: none; }
.avail-cell.on::after { content: '✓'; color: var(--white); font-size: 14px; font-weight: 800; }
.avail-cell.on.new-slot { background: var(--green); }

.avail-setup-prompt { text-align: left; padding: 0 0 18px; }
.avail-setup-title { font-size: 22px; font-weight: 800; font-family: var(--font-heading); letter-spacing: -0.025em; }
.avail-setup-title-emoji { font-size: 18px; flex-shrink: 0; }
.avail-setup-sub { font-size: 14px; color: var(--gray-500); line-height: 1.55; margin-bottom: 20px; font-weight: 500; }

.qm-results { display: flex; flex-direction: column; gap: 0; }
.qm-results-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.qm-results-title { font-size: 11px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.14em; }
.qm-results-count { font-size: 12px; color: var(--purple); font-weight: 800; font-variant-numeric: tabular-nums; }
.qm-cards-list { display: flex; flex-direction: column; gap: 8px; }
.qm-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.qm-card:hover { border-color: var(--purple); background: var(--surface); }
.qm-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.qm-info { flex: 1; min-width: 0; }
.qm-name { font-size: 14px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; }
.qm-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; font-weight: 500; }
.qm-overlap-slots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.slot-tag {
  background: var(--cream-2);
  color: var(--gray-900);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.qm-overlap-score { font-size: 11px; color: var(--gray-400); margin-top: 4px; font-weight: 600; }
.qm-action { flex-shrink: 0; align-self: center; }
.btn-qm-connect {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-qm-connect:hover { background: var(--purple); }

.qm-no-avail { text-align: center; padding: 48px 24px; color: var(--gray-500); font-size: 14px; font-weight: 500; }

/* ===== CARD BG PATTERNS (used by avatars in app.js) ===== */
/* Tinted to fit Boardroom palette */
.card-bg-1 { background: linear-gradient(135deg, #4E2A84 0%, #341C5C 100%); }
.card-bg-2 { background: linear-gradient(135deg, #355F8C 0%, #1F3A5C 100%); }
.card-bg-3 { background: linear-gradient(135deg, #1F8A5B 0%, #145E3E 100%); }
.card-bg-4 { background: linear-gradient(135deg, #B68A1E 0%, #8A6712 100%); }
.card-bg-5 { background: linear-gradient(135deg, #6B4AA6 0%, #4E2A84 100%); }

/* ===== REFERENCES ===== */
.swipe-ref-corner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--gray-900);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 5;
  letter-spacing: 0.04em;
}
.swipe-ref-corner-badge:hover { background: var(--white); }

.swipe-refs-section { display: flex; flex-direction: column; gap: 8px; }
.swipe-ref-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 11px 13px;
}
.swipe-ref-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--white); flex-shrink: 0; letter-spacing: -0.01em; }
.swipe-ref-body { flex: 1; min-width: 0; }
.swipe-ref-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.swipe-ref-name { font-size: 12px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.01em; }
.swipe-ref-date { font-size: 11px; color: var(--gray-400); font-variant-numeric: tabular-nums; font-weight: 500; }
.swipe-ref-text { font-size: 13px; color: var(--gray-700); line-height: 1.5; font-weight: 500; }

.match-name-row { display: flex; align-items: center; gap: 8px; }
.match-ref-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--purple);
  background: var(--purple-faint);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.modal-header-ref-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple);
  background: var(--purple-faint);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.04em;
}
.modal-header-ref-badge:hover { opacity: 0.75; }

.modal-refs-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-refs-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-refs-count {
  background: var(--purple);
  color: var(--white);
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.modal-ref-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.modal-ref-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--white); flex-shrink: 0; letter-spacing: -0.01em; }
.modal-ref-content { flex: 1; min-width: 0; }
.modal-ref-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.modal-ref-name { font-size: 13px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.01em; }
.modal-ref-date { font-size: 11px; color: var(--gray-400); font-variant-numeric: tabular-nums; font-weight: 500; }
.modal-ref-text { font-size: 13px; color: var(--gray-700); line-height: 1.55; font-weight: 500; }

/* ===== REVIEW / FLAG MODAL ===== */
.review-modal { max-width: 420px; overflow: hidden; }
.review-modal-header {
  background: var(--gray-900);
  padding: 28px 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
}
.review-modal-emoji { font-size: 38px; line-height: 1; }
.review-modal-avatar-wrap { margin-bottom: 4px; }
.review-modal-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.review-modal-title { font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.025em; }
.review-modal-sub   { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; font-weight: 500; }
.review-modal-body { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.review-modal-note {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 4px;
  font-weight: 500;
}
.review-already-flagged { font-size: 13px; color: var(--red); font-weight: 700; text-align: center; }
.btn-flag {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background 0.15s;
  letter-spacing: -0.005em;
}
.btn-flag:hover { background: #A82E3D; }

.review-confirm-modal {
  max-width: 380px;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: var(--white);
}
.review-confirm-icon { font-size: 48px; line-height: 1; margin-bottom: 6px; }
.review-confirm-title { font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.025em; }
.review-confirm-sub { font-size: 13px; color: var(--gray-500); line-height: 1.55; max-width: 290px; font-weight: 500; }
.review-confirm-flag-bar { display: flex; gap: 8px; margin-top: 6px; }
.review-flag-pip { width: 32px; height: 6px; border-radius: 3px; background: var(--gray-200); transition: background 0.2s; }
.review-flag-pip.filled { background: var(--red); }

.match-reviewed-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  padding: 6px 10px;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.match-reported-badge { color: var(--red); }

/* ===== PRODUCT TOUR ===== */
.tour-frame {
  position: fixed;
  background: rgba(14,11,26,0.65);
  z-index: 990;
  pointer-events: all;
  transition: top 0.28s ease, left 0.28s ease, right 0.28s ease,
              bottom 0.28s ease, width 0.28s ease, height 0.28s ease;
}
.tour-ring {
  position: fixed;
  border-radius: var(--radius);
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,0.2);
  animation: tour-pulse 2s ease-in-out infinite;
  width: 0; height: 0;
  transition: top 0.28s ease, left 0.28s ease, width 0.28s ease, height 0.28s ease;
}
@keyframes tour-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,0.2); }
  50%      { box-shadow: 0 0 0 2px #fff, 0 0 0 10px rgba(255,255,255,0.06); }
}
.tour-tooltip {
  position: fixed;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 992;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, top 0.28s ease, left 0.28s ease;
  border: 1px solid var(--gray-200);
}
.tour-tooltip.tour-tooltip-visible { opacity: 1; pointer-events: auto; }
.tour-tt-progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tour-tt-step { font-size: 10px; font-weight: 800; color: var(--purple); text-transform: uppercase; letter-spacing: 0.14em; }
.tour-skip-link {
  background: none; border: none;
  font-size: 12px; color: var(--gray-400);
  cursor: pointer; padding: 0;
  text-decoration: underline;
  font-family: inherit;
  font-weight: 600;
}
.tour-skip-link:hover { color: var(--gray-700); }
.tour-tt-title { font-size: 17px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; letter-spacing: -0.02em; }
.tour-tt-body { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 16px; font-weight: 500; }

.tour-modal-overlay {
  position: fixed; inset: 0;
  z-index: 995;
  background: rgba(14,11,26,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.2s ease;
}
.tour-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--gray-200);
}
.tour-modal-emoji { font-size: 44px; margin-bottom: 12px; line-height: 1; }
.tour-modal-title { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; letter-spacing: -0.025em; }
.tour-modal-body { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; font-weight: 500; }
.tour-modal-footer { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tour-next-btn {
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.tour-next-btn:hover { background: var(--purple); }
.tour-skip-btn {
  background: none; border: none;
  font-size: 13px; color: var(--gray-400);
  cursor: pointer; padding: 4px;
  text-decoration: underline;
  font-family: inherit;
  font-weight: 600;
}
.tour-skip-btn:hover { color: var(--gray-700); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .swipe-layout { grid-template-columns: 1fr 250px; gap: 24px; }
  .profile-grid { grid-template-columns: 230px 1fr; }
  .messages-page { grid-template-columns: 32fr 68fr; }
}
@media (max-width: 900px) {
  .page-container--messages { height: auto; overflow: visible; }
  .messages-page { grid-template-columns: 1fr; height: auto; }
  .messages-col-list { border-right: none; border-bottom: 1px solid var(--gray-200); max-height: 45vh; }
  .messages-col-chat { min-height: 480px; }
  .match-stages-layout { grid-template-columns: 1fr; }
  .qm-layout { grid-template-columns: 1fr; }
  .qm-avail-section, .qm-results { padding: 18px 16px; }
  .header { padding: 0 20px; }
  .page-container { padding: 24px 20px 48px; }
  .page-container--swipe { padding: 16px 20px 0; }
  .swipe-layout { grid-template-columns: 1fr; }
  .swipe-sidebar { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-left-col { position: static; }
}
@media (max-width: 700px) {
  .header-nav-btn span { display: none; }
  .header-nav-btn { padding: 0 10px; }
  .page-heading { font-size: 22px; }
  .swipe-deck-area { height: clamp(300px, calc(100vh - 300px), 420px); }
}
@media (max-width: 480px) {
  .header { padding: 0 12px; gap: 0; }
  .header-title { font-size: 16px; }
  .header-logo { flex-shrink: 1; min-width: 0; overflow: hidden; }
  .header-logo-text { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .header-nav { flex-shrink: 0; gap: 0; }
  .header-nav-btn { padding: 0 7px; }
  .header-reset-btn { padding: 5px 7px; margin-left: 4px; }
  .page-container { padding: 18px 14px 40px; }
  .page-container--swipe { padding: 14px 14px 0; }
  .swipe-name { font-size: 22px; }
  .swipe-deck-area { height: clamp(280px, calc(100vh - 280px), 400px); }
}

/* ===== WELCOME SCREEN ===== */
.welcome-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 14vh;
  background: var(--paper);
}
.welcome-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 620px; width: 100%; }
.welcome-logo { margin-bottom: 22px; }
.welcome-title { font-family: var(--font-heading); font-size: 34px; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; letter-spacing: -0.03em; }
.welcome-sub { font-size: 15px; color: var(--gray-500); line-height: 1.6; margin-bottom: 32px; font-weight: 500; }
.welcome-cards { display: flex; gap: 16px; width: 100%; }
.role-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  position: relative;
}
.role-card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); }
.role-card-icon { font-size: 26px; margin-bottom: 12px; color: var(--purple); }
.role-card-label { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; font-family: var(--font-heading); letter-spacing: -0.02em; }
.role-card-desc { font-size: 13px; color: var(--gray-500); line-height: 1.55; margin-bottom: 14px; font-weight: 500; }
.role-card-arrow { font-size: 18px; color: var(--purple); font-weight: 700; }
@media (max-width: 520px) { .welcome-cards { flex-direction: column; } }

/* ===== MENTOR BADGES (cream accent in place of gold) ===== */
.mentor-badge-hero {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cream);
  color: var(--gray-900);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: var(--radius-xs);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mentor-stage-badge {
  background: var(--cream-2);
  color: var(--gray-900);
  border: 1px solid var(--cream);
}
.mentor-avail-tag { background: var(--cream-2); color: var(--gray-900); }
.mentor-case-tag { background: var(--cream-2) !important; color: var(--gray-900) !important; border-color: var(--cream) !important; }

/* ===== MENTOR DASHBOARD ===== */
.mentor-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; }
.mentor-dash-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; }
.mentor-dash-card--wide { grid-column: 1 / -1; }
.mentor-dash-card-title {
  font-size: 11px; font-weight: 800; color: var(--gray-500);
  font-family: var(--font-heading); margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.mentor-request-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.mentor-request-row:last-child { border-bottom: none; }
.mentor-request-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.mentor-request-card:last-child { margin-bottom: 0; }
.mentor-interested-banner {
  background: var(--cream-2);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px; font-weight: 700; color: var(--gray-900);
  text-align: center; margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.mentor-interested-badge {
  background: var(--gray-900);
  color: var(--white);
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: var(--radius-xs);
  margin-bottom: 8px;
  display: inline-block;
  text-transform: uppercase;
}
@media (max-width: 700px) { .mentor-dash-grid { grid-template-columns: 1fr; } .mentor-dash-card--wide { grid-column: 1; } }

/* ===== PROFILE QUESTIONNAIRE ===== */
.profile-quest-overlay {
  position: fixed; inset: 0;
  background: rgba(14,11,26,0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.profile-quest-modal {
  width: 100%; max-width: 520px; max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.profile-quest-modal .onboarding {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: none;
}
/* ============================================================
   BOARDROOM PHASE 2 — append to styles.css
   New layout features that go with the app.js patches.
   ============================================================ */

/* ===== ONBOARDING WITH LEFT RAIL ===== */
/* Wraps the existing .onboarding card + adds a sticky rail on its left.
   Below 900px the rail hides and the card returns to its original single-column look. */
.onboarding-with-rail {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: start;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.onboarding-rail {
  position: sticky;
  top: 80px;
  padding: 32px 24px 32px 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onboarding-rail-header {}
.onboarding-rail-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}
.onboarding-rail-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-top: 4px;
  line-height: 1.2;
}
.onboarding-rail-sub {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 2px;
}

.onboarding-rail-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.onboarding-rail-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  position: relative;
}
.onboarding-rail-step + .onboarding-rail-step::before {
  /* connecting vertical line */
  content: "";
  position: absolute;
  left: 10px;
  top: -9px;
  width: 1px;
  height: 9px;
  background: var(--gray-200);
}

.onboarding-rail-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.onboarding-rail-step.done {
  color: var(--gray-700);
}
.onboarding-rail-step.done .onboarding-rail-step-num {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
  font-size: 12px;
}

.onboarding-rail-step.active {
  color: var(--gray-900);
  font-weight: 700;
}
.onboarding-rail-step.active .onboarding-rail-step-num {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.onboarding-rail-step-label {
  letter-spacing: -0.01em;
}

/* ===== EYEBROW IN ONBOARDING HEADER ===== */
.onboarding-step-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
  margin-top: 4px;
}

/* When wrapped in the rail layout, the onboarding card sheds its own
   max-width constraint so it can fill the right column. */
.onboarding-with-rail .onboarding {
  max-width: none;
  width: 100%;
}

/* ===== DISCOVER STAT STRIP ===== */
.discover-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 4px;
}

.discover-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discover-stat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.discover-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* ===== THIRD ROUND BUTTON: SAVE FOR LATER ===== */
.btn-swipe-save {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.18s;
  flex-shrink: 0;
}
.btn-swipe-save:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 4px 14px rgba(78,42,132,0.18);
  transform: scale(1.05);
}
.btn-swipe-save:active { transform: scale(0.95); }
.btn-swipe-save:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== MATCHES KANBAN COUNT POLISH ===== */
/* The new structure wraps the count in a span with .match-stage-count-num.
   Stack a label "ENTRIES" so it reads less like a notification badge and more
   like a board count. */
.match-stage-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.match-stage-count-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ===== RESPONSIVE FALLBACK ===== */
@media (max-width: 900px) {
  /* Hide the rail and let the card flow to full width on tablet/mobile. */
  .onboarding-with-rail {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 0;
  }
  .onboarding-rail {
    display: none;
  }
  /* Two-up stat strip looks cleaner on narrow screens */
  .discover-stat-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .discover-stat {
    padding: 8px 10px;
  }
  .discover-stat-num {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .discover-stat-label {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .discover-stat-num {
    font-size: 16px;
  }
  /* On very narrow screens, give the save button a touch less prominence */
  .btn-swipe-save {
    width: 46px;
    height: 46px;
  }
}

/* ===== PHASE 3 FIXES ===== */

/* Whole-rail fade transition so the rail doesn't appear to flash */
.onboarding-with-rail.ob-exit {
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* When the onboarding is rendered inside a modal popup (post-tour
   questionnaire), let the modal grow wide enough for the rail + card.
   Below 900px the rail hides anyway, so the modal reverts to compact. */
.profile-quest-modal {
  max-width: 900px;
}
@media (max-width: 900px) {
  .profile-quest-modal { max-width: 520px; }
}

/* Lighter sidebar CTA card to replace the removed "Your Activity" panel */
.swipe-sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swipe-sidebar-cta-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
