@import url('./system-design.css');

/* ==========================================================================
   VENTURES.CSS — CONSOLIDATED APPLICATION STYLES
   Combined from: portal.css, ventures.css, interviews.css, survey.css, login.css
   Generated: 24 July 2026
   ========================================================================== */


/* ======================== PORTAL FOUNDATION ======================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Typography */
  --ff-base: "Outfit", "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-display: "Poppins", "Outfit", system-ui, sans-serif;
  --ff-serif: "Poppins", Georgia, serif;

  /* Core palette */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #475569;
  --muted: #64748b;

  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --white: #ffffff;

  --border: #e2e8f0;
  --border-2: #cbd5e1;

 
  --navy: #0f172a;
  --navy-lt: #eef2ff;
  --primary: #ff5722;
  --primary-2: #ff9800;
  --blue: #ff5722;
  --blue-lt: #eef2ff;

  --gold: #fc7c10;
  --gold-2: #d97706;
  --gold-lt: #fff7ed;

  --green: #059669;
  --green-lt: #d1fae5;

  --amber: #d97706;
  --amber-lt: #fef3c7;

  --red: #dc2626;
  --red-lt: #fee2e2;

  --purple-lt: #ede9fe;
  --purple: #7c3aed;

  --sky-lt: #e0f2fe;

  /* Layout */
  --sidebar-w: 250px;
  --topbar-h: 66px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --sh-md: 0 10px 30px rgba(15, 23, 42, .08);
  --sh-lg: 0 24px 64px rgba(15, 23, 42, .18);

  /* Motion */
  --dur: .18s;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--ff-base);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

::selection {
  background: rgba(252, 124, 16, .18);
}

/* Any open modal locks page scroll. Single rule instead of three
   near-duplicates scattered through the old file. */
body.vp-modal-open,
body.doc-modal-open,
body.vp-sidebar-open {
  overflow: hidden;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   2. Portal shell, sidebar and topbar
   -------------------------------------------------------------------------- */

.vp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #000000 0%, #0f172a 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
  transition: transform var(--dur) ease;
}

.vp-sidebar-brand {
  min-height: 76px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 12px;
}

.vp-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
}

.vp-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(252, 124, 16, .12);
  border: 1px solid rgba(252, 124, 16, .35);
  flex: 0 0 auto;
}

.vp-brand-copy {
  min-width: 0;
}

.vp-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.vp-brand-sub {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.vp-sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
}

.vp-sidebar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.vp-venture-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.vp-venture-avatar,
.vp-venture-initials {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: 0 0 auto;
}

.vp-venture-avatar {
  object-fit: cover;
  border: 1px solid rgba(252, 124, 16, .35);
}

.vp-venture-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #000000;
  font-size: 14px;
  font-weight: 900;
}

.vp-venture-copy {
  min-width: 0;
}

.vp-venture-name {
  max-width: 150px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-venture-stage {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
}

.vp-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.vp-nav::-webkit-scrollbar {
  width: 6px;
}

.vp-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 20px;
}

.vp-nav-section {
  padding-bottom: 10px;
}

.vp-nav-section + .vp-nav-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.vp-nav-label {
  padding: 14px 10px 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

.vp-nav a,
.vp-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: rgba(255, 255, 255, .66);
  position: relative;
  transition: background var(--dur), color var(--dur), transform var(--dur);
}

.vp-nav a i,
.vp-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition: color var(--dur);
}

.vp-nav-text {
  min-width: 0;
  flex: 1;
}

.vp-nav a:hover,
.vp-nav-link:hover {
  background: rgba(255, 255, 255, .075);
  color: var(--white);
  transform: translateX(2px);
}

.vp-nav a:hover i,
.vp-nav-link:hover .vp-nav-icon {
  color: var(--gold);
}

.vp-nav a.active,
.vp-nav-link.active {
  background: rgba(252, 124, 16, .14);
  color: var(--gold);
}

.vp-nav a.active i,
.vp-nav-link.active .vp-nav-icon {
  color: var(--gold);
}

.vp-nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.vp-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.vp-logout-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--dur), color var(--dur);
}

.vp-logout-btn:hover {
  background: rgba(220, 38, 38, .12);
  color: #fca5a5;
}

.vp-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vp-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}

.vp-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.vp-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vp-topbar-left,
.vp-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vp-topbar-title-wrap {
  min-width: 0;
}

.vp-page-title {
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -.01em;
}

.vp-page-subtitle {
  display: none;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
}

.vp-breadcrumb span {
  margin: 0 5px;
  color: var(--border-2);
}

.vp-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.vp-notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.vp-notif-btn:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--border-2);
}

.vp-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--red);
  border: 2px solid var(--white);
}

.vp-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.vp-user-chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
}

.vp-user-chip-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}

.vp-content {
  flex: 1;
  padding: 28px;
}

.vp-flash {
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   3. Reusable components — buttons, badges, forms, cards, flash, empty state
   -------------------------------------------------------------------------- */

.card,
.tab-panel,
.dashboard-tabs-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.card {
  overflow: hidden;
}

.card-header {
  min-height: 58px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 850;
  color: var(--ink);
}

.card-body {
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.badge-gold { background: var(--gold-lt); color: #9a3412; }
.badge-success { background: var(--green-lt); color: #065f46; }
.badge-warning { background: var(--amber-lt); color: #92400e; }
.badge-danger { background: var(--red-lt); color: #991b1b; }
.badge-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-ink { background: var(--ink); color: var(--white); }

/* Canonical button system. .tb-btn shares the same base so toolbar buttons
   never visually drift from the rest of the app (this used to happen when
   the mentor-calendar page redefined .btn with raw hex colors). */
.btn,
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur), box-shadow var(--dur), background var(--dur),
              color var(--dur), border-color var(--dur), opacity var(--dur);
}

.btn:hover,
.tb-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.tb-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover,
.tb-primary:hover {
  background: var(--gold);
  color: #000000;
}

.btn-gold {
  background: var(--gold);
  color: #000000;
}

.btn-gold:hover {
  background: #fb923c;
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-2);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: #152347;
}

.btn-danger {
  background: var(--red-lt);
  color: var(--red);
  border-color: #fecaca;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-success {
  background: #065f46;
  color: #fff;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  transition: all var(--dur);
}

.btn-icon:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
}

.tb-ghost {
  color: var(--red);
  border-color: #fecaca;
  background: var(--white);
}

.tb-ghost:hover {
  background: var(--red-lt);
  border-color: #fca5a5;
}

.form-group,
.tm-field {
  margin-bottom: 18px;
}

.form-label,
.tm-label,
label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-control,
.tm-input,
.type-sel,
.tb-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.form-control:focus,
.tm-input:focus,
.type-sel:focus,
.tb-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

textarea.form-control,
.tm-textarea {
  resize: vertical;
  min-height: 94px;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.form-grid-2,
.tm-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid-2 .full {
  grid-column: 1 / -1;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.req {
  color: var(--red);
}

.img-preview {
  max-width: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.vp-flash,
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 650;
  animation: slideDown .28s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vp-flash.success,
.flash-success {
  background: var(--green-lt);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.vp-flash.error,
.flash-error {
  background: var(--red-lt);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.vp-flash.info,
.flash-info {
  background: var(--blue-lt);
  color: var(--primary-2);
  border: 1px solid #c7d2fe;
}

.flash-warning {
  background: var(--amber-lt);
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Single canonical empty-state component. Previously this was defined three
   times with different padding/icon sizes depending on which page's markup
   was used (documents grid vs investor grid vs generic). All three markup
   variants below now resolve to the same visual result. */
.empty-state,
.empty-wrap,
.empty-state-block,
.mentor-empty-state,
.sessions-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.empty-wrap {
  grid-column: 1 / -1;
}

.empty-state i,
.empty-state-block i,
.mentor-empty-state i,
.sessions-empty i {
  display: block;
  margin-bottom: 14px;
  font-size: 42px;
  color: var(--border-2);
}

.empty-state a {
  color: var(--ink);
  font-weight: 850;
}

.empty-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 28px;
  box-shadow: var(--sh-sm);
}

.empty-wrap h3,
.empty-state-block h3,
.mentor-empty-state h3,
.sessions-empty h3 {
  margin-bottom: 7px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
}

.empty-wrap p,
.empty-state-block p,
.mentor-empty-state p,
.sessions-empty p {
  max-width: 340px;
  margin: 0 auto 16px;
  font-size: 13.5px;
}

/* Star rating — one canonical component. Previously re-implemented four
   times (.star-rating / .star-row / .rating-star / .star-picker) with
   slightly different sizes. Pick a size via a modifier class instead of a
   whole new component each time. */
.star-rating,
.star-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: 12px;
}

.star-rating i,
.rating-star {
  color: #d1d5db;
  font-size: 12px;
}

.star-rating i.filled,
.rating-star.filled {
  color: #f59e0b;
}

.star-rating span,
.star-row span {
  margin-left: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* Interactive star picker (rating modal) */
.star-picker,
.star-rater {
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
}

.star-rater {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rater input {
  display: none;
}

.star-picker i,
.star-rater label {
  font-size: 26px;
  color: var(--border-2);
  cursor: pointer;
  transition: color .12s ease;
}

.star-picker i.lit,
.star-rater label:hover,
.star-rater label:hover ~ label,
.star-rater input:checked ~ label {
  color: #f59e0b;
}

/* Pagination — one canonical component (.pg-btn / .page-btn both map here) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 48px;
}

.pg-btn,
.page-btn {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--ink-2);
  background: var(--white);
  transition: all var(--dur);
  text-decoration: none;
  cursor: pointer;
}

.pg-btn:hover,
.page-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pg-btn.current,
.page-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.page-btn.disabled {
  opacity: .4;
  pointer-events: none;
}

.text-muted { color: var(--muted) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: var(--amber) !important; }
.text-danger { color: var(--red) !important; }
.bg-soft { background: var(--surface-2) !important; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.py-8 { padding: 8px 0; }
.py-10 { padding: 10px 0; }
.is-clickable { cursor: pointer; }

/* --------------------------------------------------------------------------
   4. Dashboard
   -------------------------------------------------------------------------- */

.dash-welcome {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px 32px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(252, 124, 16, .18), transparent 28%),
    linear-gradient(135deg, #000000 0%, #222222 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--sh-md);
}

.dash-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.dash-welcome-text,
.dash-welcome-cohort {
  position: relative;
  z-index: 1;
}

.dash-welcome-text h2 {
  margin-bottom: 7px;
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.dash-welcome-text p {
  max-width: 620px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.dash-welcome-cohort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(252, 124, 16, .14);
  border: 1px solid rgba(252, 124, 16, .35);
  color: #fdba74;
  font-size: 12.5px;
  font-weight: 850;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-sm);
}

.stat-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.stat-tile-num {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.stat-tile-lbl {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dash-grid .wide {
  grid-column: 1 / -1;
}

.profile-bar-wrap {
  height: 9px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.profile-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  transition: width .6s ease;
}

.completeness-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}

.comp-item.done { color: var(--green); }
.comp-item.miss { color: var(--muted); }

.doc-row,
.ev-row,
.inv-row {
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.doc-row,
.ev-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-row:last-child,
.ev-row:last-child,
.inv-row:last-child {
  border-bottom: 0;
}

.doc-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.doc-row-name,
.ev-title,
.inv-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.doc-row-meta,
.ev-meta,
.inv-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.inv-name small {
  color: var(--muted);
  font-weight: 500;
}

.ev-date-box {
  width: 46px;
  height: 50px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ev-date-box .d {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.ev-date-box .m {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.qa-btn {
  min-height: 104px;
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur), color var(--dur);
}

.qa-btn:hover {
  color: var(--ink);
  border-color: var(--border-2);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.qa-btn i {
  font-size: 21px;
  color: var(--gold);
}

.dashboard-tabs-wrap {
  padding: 10px;
  margin-bottom: 20px;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-tab {
  min-height: 40px;
  border-radius: 11px;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--dur), color var(--dur);
}

.dashboard-tab:hover,
.dashboard-tab.active {
  background: var(--ink);
  color: var(--white);
}

.dashboard-tab.active i {
  color: var(--gold);
}

.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
}

.tab-panel {
  padding: 22px;
}

.tab-panel-header {
  margin-bottom: 18px;
}

.tab-panel-header h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.tab-panel-header p {
  font-size: 13px;
  color: var(--muted);
}

.panel-between,
.row-flex {
  display: flex;
  gap: 14px;
}

.panel-between {
  justify-content: space-between;
  align-items: flex-start;
}

.row-flex {
  flex: 1;
  min-width: 0;
}

.icon-doc { background: var(--amber-lt); color: var(--amber); }
.icon-team { background: var(--green-lt); color: var(--green); }
.icon-investor { background: var(--purple-lt); color: var(--purple); }
.icon-event { background: var(--sky-lt); color: #0284c7; }

/* --------------------------------------------------------------------------
   5. Events listing page / shared marketing hero
   --------------------------------------------------------------------------
   NOTE ON DUPLICATION FIXED HERE:
   The original file defined TWO different visual designs both under the
   class name `.hero` (one a dark gradient + grid-texture sans-serif hero,
   the other a flat navy background with an italic serif heading and a
   different stat layout). Because they shared a class name, whichever
   block appeared later in the file silently won and the earlier design's
   markup (if still used on any page) would have rendered wrong.

   Fix: `.hero` keeps the gradient/grid-texture version (it matches the
   dashboard/team hero visual language used elsewhere in this stylesheet).
   The flat-navy/serif version is preserved under `.hero-editorial` so nothing
   breaks if a page's HTML still expects it — just rename the wrapper class
   in that page's markup from `hero` to `hero-editorial` if you use that look.
   -------------------------------------------------------------------------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  padding: 50px 40px 46px;
  background:
    radial-gradient(ellipse 55% 90% at 92% 40%, rgba(79, 70, 229, .28), transparent 65%),
    radial-gradient(ellipse 30% 50% at 4% 90%, rgba(5, 150, 105, .16), transparent 55%),
    #0f172a;
  color: var(--white);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wordmark {
  position: absolute;
  right: -18px;
  bottom: -22px;
  font-family: var(--ff-display);
  font-size: clamp(90px, 10vw, 160px);
  font-weight: 900;
  color: rgba(255, 255, 255, .045);
  letter-spacing: -6px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .48);
}

.hero-eyebrow-bar {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

h1.hero-title {
  margin-bottom: 14px;
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.035em;
}

h1.hero-title em {
  font-style: normal;
  color: #a5b4fc;
}

.hero-sub {
  max-width: 500px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .66);
  font-size: 14.5px;
  line-height: 1.7;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero-kpi {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.hero-kpi:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.kpi-num {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.kpi-num.c-blue { color: #a5b4fc; }
.kpi-num.c-green { color: #6ee7b7; }
.kpi-num.c-amber { color: #fdba74; }

.kpi-lbl {
  margin-top: 5px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}

/* Editorial/serif hero variant — opt in via class="hero-editorial" instead
   of "hero" if a page wants this specific look. */
.hero-editorial {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 52px 48px 48px;
}

.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-editorial .hero-glow {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(201, 168, 76, .18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(99, 102, 241, .15) 0%, transparent 55%);
}

.hero-editorial .hero-wordmark {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(80px, 9vw, 148px);
  color: rgba(255, 255, 255, .04);
  letter-spacing: -.02em;
}

.hero-editorial .hero-inner {
  max-width: 780px;
}

.hero-editorial h1.hero-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  letter-spacing: -.02em;
}

.hero-editorial h1.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-editorial .hero-sub {
  max-width: 450px;
  font-size: 15px;
  color: rgba(255, 255, 255, .52);
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 26px;
}

.hero-stat {
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.stat-num {
  font-family: var(--ff-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.stat-num.gold { color: var(--gold); }
.stat-num.light { color: #fff; }
.stat-num.muted { color: rgba(255, 255, 255, .5); }

.stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .35);
  margin-top: 5px;
}

/* --- Toolbar (sticky filter/search bar under a hero) ---------------------- */

.toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-sm);
}

.flash-zone,
.results-hd,
.results-bar {
  padding-left: 28px;
  padding-right: 28px;
}

.flash-zone {
  padding-top: 16px;
}

.toolbar-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--sh-sm);
}

.tab-group,
.view-toggle {
  display: flex;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.tab-btn,
.vt-btn {
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 850;
  color: var(--ink-3);
  white-space: nowrap;
  transition: background var(--dur), color var(--dur);
}

.tab-btn:hover,
.vt-btn:hover {
  background: var(--white);
  color: var(--ink);
}

.tab-btn.active,
.vt-btn.active {
  background: var(--blue);
  color: var(--white);
}

.search-wrap {
  flex: 1;
  min-width: 220px;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}

.search-wrap:focus-within {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

.search-wrap i {
  color: var(--muted);
  font-size: 12px;
}

.search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 13.5px;
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.type-sel {
  width: auto;
  min-width: 150px;
  background: var(--surface-2);
  cursor: pointer;
}

.results-hd {
  padding-top: 22px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-bar {
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-count,
.results-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.results-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.events-grid,
.grid-wrap {
  padding: 0 28px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   6. Event cards
   -------------------------------------------------------------------------- */

.ecard {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.34, 1.2, .64, 1), box-shadow .22s, border-color .22s;
}

.ecard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--border-2);
}

.ecard-band,
.dm-band,
.im-band {
  height: 5px;
  flex-shrink: 0;
}

.ecard-cover {
  width: 100%;
  height: 158px;
  object-fit: cover;
  flex-shrink: 0;
}

.ecard-body {
  padding: 20px 22px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ecard-top {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.type-pill i {
  font-size: 10px;
}

.st-badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.st-upcoming { background: var(--blue-lt); color: var(--primary-2); }
.st-ongoing { background: var(--green-lt); color: #065f46; }
.st-completed { background: var(--surface-2); color: var(--muted); }

.st-ongoing::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 99px;
  background: var(--green);
  animation: livepulse 1.3s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.6); }
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--green-lt);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 800;
}

.ecard-title {
  margin-bottom: 8px;
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
  color: var(--ink);
}

.ecard-desc {
  flex: 1;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ecard-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.meta-row i {
  width: 14px;
  margin-top: 2px;
  color: var(--blue);
  font-size: 11px;
  text-align: center;
  flex-shrink: 0;
}

.meta-row a {
  color: var(--blue);
  font-weight: 750;
}

.meta-row a:hover {
  text-decoration: underline;
}

.meta-closed,
.meta-closed i {
  color: var(--red) !important;
}

.cap-wrap {
  margin-bottom: 14px;
}

.cap-top {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.cap-top strong {
  color: var(--ink);
}

.cap-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cap-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .5s ease;
}

.cap-fill.warn { background: var(--amber); }
.cap-fill.full { background: var(--red); }

.ecard-footer {
  padding: 13px 22px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reg,
.btn-cancel {
  flex: 1;
  min-height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 850;
  transition: opacity var(--dur), transform var(--dur), background var(--dur), border-color var(--dur);
}

.btn-reg {
  background: var(--blue);
  color: var(--white);
}

.btn-reg:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-reg:disabled {
  cursor: default;
}

.btn-reg.s-registered {
  background: var(--green-lt);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.btn-reg.s-full {
  background: var(--red-lt);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-reg.s-ended {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-reg.s-closed {
  background: var(--amber-lt);
  color: #92400e;
  border: 1px solid #fde68a;
}

.btn-cancel {
  color: var(--red);
  border: 1px solid #fecaca;
  background: var(--white);
}

.btn-cancel:hover {
  background: var(--red-lt);
  border-color: #fca5a5;
}

/* --------------------------------------------------------------------------
   7. Investor cards (icard) + investor detail modal (im-*)
   -------------------------------------------------------------------------- */

.icard {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34, 1.2, .64, 1), box-shadow .22s, border-color .22s;
  position: relative;
}

.icard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--border-2);
}

.icard-accent {
  height: 4px;
  flex-shrink: 0;
}

.icard-head {
  padding: 22px 22px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.icard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.icard-initials {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.01em;
}

.icard-info { flex: 1; min-width: 0; }

.icard-name {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -.01em;
}

.icard-firm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.icard-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--ink-2);
}

.icard-type-pill i { font-size: 9px; }

.match-banner {
  margin: 0 22px 14px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ms-pending { background: var(--amber-lt); color: #92400e; border: 1px solid #fde68a; }
.ms-interested { background: var(--sky-lt); color: #075985; border: 1px solid #bae6fd; }
.ms-meeting { background: var(--navy-lt); color: var(--navy); border: 1px solid #c7d2fe; }
.ms-passed { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.ms-invested { background: var(--green-lt); color: #166534; border: 1px solid #bbf7d0; }

.icard-bio {
  padding: 0 22px 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.icard-meta {
  padding: 0 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imeta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.imeta-row i {
  color: var(--navy);
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 22px 14px;
}

.stage-chip {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--ink-3);
}

.score-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--gold-lt);
  border: 1px solid #e8d9a0;
  color: #7a5a0e;
}

.icard-footer {
  border-top: 1px solid var(--border);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.icard-ticket {
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
}

.icard-ticket-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 1px;
}

.btn-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: none;
  transition: background var(--dur), transform var(--dur);
}

.btn-profile:hover { background: #152347; transform: scale(1.02); }

/* Investor detail modal body */
.inv-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
  animation: mpop .25s cubic-bezier(.34, 1.4, .64, 1);
}

.im-head {
  padding: 28px 32px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-shrink: 0;
}

.im-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.im-initials-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
}

.im-head-info { flex: 1; min-width: 0; padding-top: 4px; }

.im-name {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.im-firm { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }

.im-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.im-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: -4px;
  transition: all var(--dur);
}

.im-close:hover { border-color: var(--red); color: var(--red); background: var(--red-lt); }

.im-body { padding: 24px 32px 0; flex: 1; }

.im-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 12px;
  margin-top: 22px;
}

.im-section-label:first-child { margin-top: 0; }

.im-bio { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

.im-details { display: flex; flex-direction: column; gap: 10px; }

.im-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.im-detail i {
  color: var(--navy);
  font-size: 12.5px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.im-detail a { color: var(--navy); font-weight: 600; }
.im-detail a:hover { text-decoration: underline; }

.im-stages { display: flex; flex-wrap: wrap; gap: 7px; }

.im-stage-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--navy-lt);
  color: var(--navy);
  border: 1px solid #c7d2fe;
}

.im-sector-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.im-sector-tag {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--ink-2);
}

.im-match-box {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--surface);
}

.im-match-box h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.im-match-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}

.im-match-score { font-size: 13px; color: var(--ink-3); }

.im-match-score strong {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -.01em;
}

.im-footer {
  padding: 20px 32px 28px;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.btn-ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--dur);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. ONE canonical modal/overlay system
   --------------------------------------------------------------------------
   The original file had THREE separate `.modal-overlay` rules with
   different z-index (900 vs 200) and blur values, plus a separate
   `.vp-modal-overlay` / `.doc-modal-overlay` system, plus a THIRD ad-hoc
   "Documents Modal Fix" block using `!important` to force them to agree.

   Fixed: every overlay class below resolves to the same base behavior.
   Use whichever class name your markup already has — they're now aliases,
   not separate systems, so there's nothing left to fight over and no
   `!important` patch is required anywhere.
   -------------------------------------------------------------------------- */

.modal-overlay,
.vp-modal-overlay,
.doc-modal-overlay,
.team-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.open,
.vp-modal-overlay.open,
.doc-modal-overlay.open,
.team-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box,
.vp-modal,
.doc-modal,
.detail-modal,
.ci-modal,
.team-modal,
.inv-modal {
  width: 100%;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  margin: 0;
  animation: mpop .22s cubic-bezier(.34, 1.4, .64, 1);
}

.vp-modal,
.doc-modal,
.team-modal {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(18px) scale(.98);
  transition: transform .2s ease;
  animation: none;
}

.modal-overlay.open .vp-modal,
.vp-modal-overlay.open .vp-modal,
.doc-modal-overlay.open .doc-modal,
.team-modal-overlay.open .team-modal {
  transform: translateY(0) scale(1);
}

.detail-modal { max-width: 640px; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; }
.ci-modal { max-width: 380px; padding: 32px 28px; text-align: center; }

@keyframes mpop {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.vp-modal-header,
.doc-modal-header,
.modal-box-header,
.tm-header,
.dm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.vp-modal-title,
.doc-modal-title,
.modal-box-title,
.tm-header-title,
.dm-title {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.vp-modal-close,
.doc-modal-close,
.modal-box-close,
.tm-close,
.dm-close,
.im-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur);
}

.vp-modal-close:hover,
.doc-modal-close:hover,
.modal-box-close:hover,
.tm-close:hover,
.dm-close:hover {
  color: var(--red);
  border-color: #fecaca;
  background: var(--red-lt);
}

.vp-modal-body,
.doc-modal-body,
.modal-box-body,
.tm-body,
.dm-body {
  padding: 20px;
}

.vp-modal-footer,
.doc-modal-footer,
.modal-box-footer,
.tm-footer,
.dm-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.version-list {
  list-style: none;
}

.version-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.version-list li:last-child { border-bottom: 0; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  width: 100%;
  transition: border-color .14s, background .14s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--ink);
  background: #f0f0ff;
}

.upload-zone i {
  font-size: 32px;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.upload-zone strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.upload-zone span {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Single canonical logout confirmation modal
   --------------------------------------------------------------------------
   The original file shipped THREE overlapping implementations:
     1. `#logoutModal.vp-modal` (its OWN .vp-modal-card / .vp-modal-icon,
        clashing with the document-vault modal's unrelated `.vp-modal`)
     2. `.vp-logout-modal` (the most complete, responsive version)
     3. A block of `!important` overrides whose entire purpose was to stop
        #1 and the document modals from fighting over `.vp-modal`.

   Fixed: keep ONLY `.vp-logout-modal` (renamed internals so it no longer
   reuses `.vp-modal`, which is now the document/team modal class). Use
   `.vp-logout-modal` / `.vp-logout-modal-card` in markup; drop
   `#logoutModal` entirely. No `!important` needed anywhere now because
   there is nothing left to override.
   -------------------------------------------------------------------------- */

.vp-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  padding: 24px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.vp-logout-modal.show {
  display: flex;
}

.vp-logout-modal-card {
  width: min(100%, 420px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px;
  padding: 32px 28px 30px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  animation: vpLogoutPop .18s ease-out;
}

.vp-logout-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #ef4444;
  font-size: 28px;
}

.vp-logout-modal-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: #111827;
}

.vp-logout-modal-card p {
  max-width: 310px;
  margin: 0 auto 28px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.vp-logout-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vp-btn {
  min-width: 112px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.vp-btn-secondary { background: #f3f4f6; color: #374151; }
.vp-btn-secondary:hover { background: #e5e7eb; }
.vp-btn-danger { background: #ef4444; color: #ffffff; }
.vp-btn-danger:hover { background: #dc2626; }

@keyframes vpLogoutPop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Check-in success modal (events) */
.ci-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--green-lt);
  color: var(--green);
  font-size: 26px;
}

.ci-modal h3 { margin-bottom: 8px; font-family: var(--ff-display); font-size: 21px; font-weight: 900; }
.ci-modal p { margin-bottom: 20px; color: var(--ink-3); font-size: 13.5px; }

.ci-code-box {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 2px dashed var(--border-2);
}

.ci-code {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-display);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ci-code-lbl {
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.btn-ci-close {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  transition: opacity var(--dur);
}

.btn-ci-close:hover { opacity: .9; }

/* Event detail modal body content (dm-*) */
.dm-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.dm-desc { margin-bottom: 20px; color: var(--ink-3); font-size: 14px; line-height: 1.75; }

.dm-sec-lbl {
  margin: 20px 0 10px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.dm-sec-lbl:first-child { margin-top: 0; }

.dm-list { display: flex; flex-direction: column; gap: 9px; }

.dm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.55;
}

.dm-row i {
  width: 16px;
  margin-top: 3px;
  color: var(--blue);
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}

.dm-agenda {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.dm-speakers { display: flex; flex-wrap: wrap; gap: 7px; }

.spk-chip {
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--blue-lt);
  border: 1px solid #c7d2fe;
  color: var(--primary-2);
  font-size: 12.5px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   10. Team page
   -------------------------------------------------------------------------- */

.team-page { max-width: 900px; }

.team-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 32px 36px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 92% 0, rgba(252, 124, 16, .20), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #222222 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--white);
  box-shadow: var(--sh-md);
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.team-hero-text, .slot-counter { position: relative; z-index: 1; }

.team-hero h1 {
  margin-bottom: 6px;
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.team-hero h1 em { color: var(--gold); }
.team-hero p { max-width: 560px; color: rgba(255, 255, 255, .66); font-size: 13.5px; }

.slot-counter { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; }
.slot-pips { display: flex; gap: 7px; }

.slot-pip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .28);
  transition: all var(--dur);
}

.slot-pip.filled {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(252, 124, 16, .45);
}

.slot-label {
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.member-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}

.member-card:hover { border-color: var(--border-2); box-shadow: var(--sh-md); transform: translateY(-2px); }
.member-card::before { content: ""; display: block; height: 4px; flex-shrink: 0; background: var(--border); }
.member-card.is-founder::before { background: linear-gradient(90deg, var(--gold), #f59e0b); }

.member-card-body { padding: 20px 20px 16px; flex: 1; }
.member-photo-wrap { position: relative; width: 66px; height: 66px; margin-bottom: 14px; flex-shrink: 0; }

.member-photo, .member-initials {
  width: 66px; height: 66px; border-radius: 999px; border: 3px solid var(--border);
}

.member-photo { object-fit: cover; }

.member-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink), #334155);
  color: var(--white);
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 800;
}

.founder-crown {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--gold);
  color: #000000;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.member-name {
  margin-bottom: 3px;
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.member-role {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.member-bio {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-socials { display: flex; gap: 7px; margin-top: auto; }

.social-link {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted); font-size: 12px;
  transition: all var(--dur);
}

.social-link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.social-link.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-link.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-link.email:hover { background: var(--green); border-color: var(--green); }

.member-card-footer {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--gold-lt);
  color: #9a3412;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .045em;
}

.slot-card {
  min-height: 204px;
  padding: 28px 20px;
  border-radius: var(--r-lg);
  border: 2px dashed var(--border-2);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}

.slot-card:hover { border-color: var(--ink); background: var(--white); transform: translateY(-2px); }

.slot-card-icon {
  width: 50px; height: 50px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 18px;
  transition: all var(--dur);
}

.slot-card:hover .slot-card-icon { background: var(--ink); border-color: var(--ink); color: var(--white); }
.slot-card-label { color: var(--ink-3); font-size: 13px; font-weight: 800; }
.slot-card-sub { color: var(--muted); font-size: 11.5px; }

.capacity-notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--gold-lt);
  border: 1px solid #fed7aa;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.capacity-notice i { color: var(--amber); font-size: 18px; flex-shrink: 0; }

/* Team member edit modal (tm-*) internals not covered by the canonical
   modal system above */
.tm-header-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-size: 16px; flex: 0 0 auto;
}

.photo-upload-zone { margin-bottom: 22px; display: flex; align-items: center; gap: 18px; }
.photo-preview-wrap { position: relative; flex-shrink: 0; cursor: pointer; }

.photo-preview, .photo-preview-placeholder {
  width: 74px; height: 74px; border-radius: 999px; border: 3px solid var(--border);
}

.photo-preview { object-fit: cover; }

.photo-preview-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), #334155);
  color: var(--white);
  font-family: var(--ff-serif);
  font-size: 24px;
  border-style: dashed;
}

.photo-upload-overlay {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(15, 23, 42, .64);
  display: grid; place-items: center;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--dur);
}

.photo-preview-wrap:hover .photo-upload-overlay { opacity: 1; }

.photo-upload-info { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.photo-upload-info strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13.5px; }

.founder-toggle-wrap {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.founder-toggle-label { color: var(--ink); font-size: 13.5px; font-weight: 800; }
.founder-toggle-sub { margin-top: 1px; color: var(--muted); font-size: 11.5px; }

.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: #cbd5e1; cursor: pointer; transition: background var(--dur);
}

.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform var(--dur);
}

.toggle-switch input:checked + .toggle-track { background: var(--gold); }
.toggle-switch input:checked + .toggle-track + .toggle-knob { transform: translateX(20px); }

.tm-social-row { display: flex; align-items: center; }

.tm-social-prefix {
  min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--border-2); border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px; font-weight: 750;
  white-space: nowrap;
}

.tm-social-row .tm-input { border-radius: 0 10px 10px 0; }

.tm-section {
  margin: 22px 0 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 10.5px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
}

.tm-section::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.tm-footer-left, .tm-footer-right { display: flex; align-items: center; gap: 10px; }

.drag-handle { padding: 4px; color: var(--muted); cursor: grab; font-size: 12px; transition: color var(--dur); }
.drag-handle:hover { color: var(--ink); }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: .35; background: var(--surface-2) !important; }
.sortable-chosen { box-shadow: var(--sh-md) !important; }

/* --------------------------------------------------------------------------
   11. Documents page
   -------------------------------------------------------------------------- */

.doc-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.cat-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.cat-filter-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: all .14s;
}

.cat-filter-btn:hover, .cat-filter-btn.active { border-color: var(--ink); color: var(--ink); }
.cat-filter-btn.active { background: var(--ink); color: var(--white); }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.doc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
  display: flex;
  flex-direction: column;
}

.doc-card:hover { border-color: var(--ink-3); box-shadow: 0 3px 16px rgba(12, 12, 14, .07); }
.doc-card-top { padding: 16px; display: flex; align-items: flex-start; gap: 12px; }

.doc-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; flex-shrink: 0;
}

.doc-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.doc-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.doc-card-footer {
  margin-top: auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.version-badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px;
  border-radius: 8px; background: #ede9fe; color: #6d28d9;
}

.visibility-badge { font-size: 10.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.vis-public { color: var(--success, var(--green)); }
.vis-private { color: var(--muted); }

.doc-status {
  display: inline-flex; margin-top: 7px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}

.doc-status-pending { background: #fef3c7; color: #92400e; }
.doc-status-approved { background: #dcfce7; color: #166534; }
.doc-status-rejected { background: #fee2e2; color: #991b1b; }
.doc-status-requested { background: #e0f2fe; color: #075985; }

.lock-note { font-size: 11.5px; color: #92400e; margin-top: 6px; }

.source-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.source-mentor { background: #ede9fe; color: #6d28d9; }
.source-venture { background: #dcfce7; color: #15803d; }

.doc-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1.5px solid var(--border); }

.doc-tab {
  padding: 9px 18px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-display);
}

.doc-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

.doc-tab .tab-count {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: 11px; font-weight: 700;
  padding: 1px 7px; color: var(--muted);
}

.doc-tab.active .tab-count { background: var(--ink); color: #fff; border-color: var(--ink); }

.report-card-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.report-mentor-mini { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.report-mentor-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

.report-mentor-initials {
  width: 18px; height: 18px; border-radius: 50%;
  background: #6d28d9; color: #fff;
  font-size: 8.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.report-notes-block {
  margin: 0 14px 12px; padding: 8px 10px;
  background: var(--surface); border-radius: 8px;
  font-size: 12px; color: var(--muted); font-style: italic;
}

.session-status-pill {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: 7px; text-transform: uppercase; letter-spacing: .03em;
}

.status-completed { background: #dcfce7; color: #15803d; }
.status-other { background: var(--surface); color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Mentors page
   -------------------------------------------------------------------------- */

.mentor-page-head { margin-bottom: 20px; }
.mentor-page-head h2 { font-family: var(--ff-display); font-size: 19px; font-weight: 800; color: var(--ink); }
.mentor-page-head p { margin-top: 2px; font-size: 13px; color: var(--muted); }

.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.mentor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
  display: flex;
  flex-direction: column;
}

.mentor-card:hover { border-color: var(--ink-3); box-shadow: 0 4px 20px rgba(12, 12, 14, .08); }
.mentor-card-hero { height: 6px; background: linear-gradient(90deg, var(--gold), #e8c56e); }
.mentor-card-body { padding: 18px; flex: 1; }
.mentor-avatar-wrap { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.mentor-main-info { min-width: 0; }

.m-photo, .m-initials { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.m-photo { object-fit: cover; border: 2px solid var(--border); }

.m-initials {
  background: linear-gradient(135deg, #1a1a2e, #3b4a8a);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 800;
}

.m-name { font-family: var(--ff-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.m-featured-star { color: #f59e0b; font-size: 12px; margin-left: 4px; }
.m-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.m-bio { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }

.m-tag {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}

.mentor-links-row { display: flex; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mentor-links-row a { color: var(--ink); font-weight: 600; }

.m-stats { display: flex; gap: 14px; padding: 10px 18px; background: var(--surface); border-top: 1px solid var(--border); }
.m-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m-stat-num { font-family: var(--ff-display); font-size: 16px; font-weight: 800; color: var(--ink); }
.m-stat-lbl { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.m-card-footer { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.mentor-request-btn { flex: 1; }

.pending-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px;
  background: #fef3c7; color: #92400e;
}

.mentor-form-stack { display: flex; flex-direction: column; gap: 16px; }

/* --------------------------------------------------------------------------
   13. M&E (Monitoring, Evaluation & Learning) page
   -------------------------------------------------------------------------- */

.meal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }

.meal-tab {
  padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}

.meal-tab:hover { border-color: var(--primary); color: var(--primary); }
.meal-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.meal-tab .badge { background: rgba(255, 255, 255, .25); padding: 1px 7px; border-radius: 10px; font-size: 11px; }
.meal-tab:not(.active) .badge { background: var(--purple-lt); color: var(--primary); }

.meal-panel { display: none; }
.meal-panel.active { display: block; }

.meal-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.meal-stat { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: center; }
.meal-stat .val { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.meal-stat .lbl { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.meal-stat .sub { font-size: 10px; color: #9ca3af; margin-top: 2px; }

.target-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.target-pill { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.target-pill.met { background: #d1fae5; color: #065f46; }
.target-pill.unmet { background: #fef3c7; color: #92400e; }
.target-pill.warn { background: #fee2e2; color: #991b1b; }

.add-card { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; margin-bottom: 22px; overflow: hidden; }

.add-card-header {
  padding: 14px 20px; background: var(--purple-lt);
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; user-select: none;
}

.add-card-header h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin: 0; flex: 1; }
.add-card-header i.toggle { margin-left: auto; color: var(--primary); transition: transform .2s; }
.add-card-header.open i.toggle { transform: rotate(180deg); }
.add-card-body { display: none; padding: 20px; border-top: 1.5px solid var(--border); }
.add-card-body.open { display: block; }

.data-table-wrap { overflow-x: auto; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th {
  padding: 10px 12px; background: #f9fafb; font-weight: 700; color: var(--ink);
  text-align: left; white-space: nowrap; border-bottom: 1.5px solid var(--border);
}

.data-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

.badge-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-yes { background: #d1fae5; color: #065f46; }
.badge-no { background: #f3f4f6; color: #374151; }
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-ret { background: #ede9fe; color: #5b21b6; }
.badge-m { background: #e0f2fe; color: #0369a1; }
.badge-f { background: #fce7f3; color: #be185d; }
.no-data { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

.dl-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }

.dl-bar .btn-dl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid; text-decoration: none;
}

.btn-dl-csv { background: #fff; border-color: #10b981; color: #059669; }
.btn-dl-csv:hover { background: #f0fdf4; }
.btn-dl-upload { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-dl-upload:hover { background: var(--purple-lt); }
.btn-dl-pdf { background: #fff; border-color: #ef4444; color: #dc2626; }
.btn-dl-pdf:hover { background: #fef2f2; }
.btn-dl-export { background: #fff; border-color: #2563eb; color: #1d4ed8; }
.btn-dl-export:hover { background: #eff6ff; }

.upload-form {
  background: var(--purple-lt); border: 1.5px dashed var(--primary);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; display: none;
}
.upload-form.open { display: block; }

.action-buttons { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
}

.icon-btn-view { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.icon-btn-edit { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.icon-btn-delete { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

.meal-modal-card { width: min(960px, 100%); max-height: 92vh; overflow: auto; }

.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.view-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; background: #f9fafb; }
.view-item span { display: block; font-size: 11px; color: #6b7280; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.view-item strong { display: block; color: #000000; font-size: 13px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   14. Venture Profile tabs
   -------------------------------------------------------------------------- */

.vp-profile-form { display: flex; flex-direction: column; gap: 18px; }

.vp-profile-hero {
  background:
    radial-gradient(circle at top right, rgba(252, 124, 16, .14), transparent 34%),
    linear-gradient(135deg, #000000 0%, #222222 100%);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  overflow: hidden;
  position: relative;
}

.vp-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.vp-profile-hero-left, .vp-profile-hero-actions { position: relative; z-index: 1; }
.vp-profile-hero-left { display: flex; align-items: center; gap: 18px; min-width: 0; }

.vp-profile-hero h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -.025em;
}

.vp-profile-hero p { color: rgba(255, 255, 255, .68); font-size: 14px; max-width: 620px; }
.vp-profile-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.vp-profile-hero-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vp-profile-hero-actions .btn-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.vp-profile-hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }

.vp-profile-logo-box {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden; flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.vp-profile-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.vp-profile-logo-initials { font-family: var(--ff-display); font-size: 34px; font-weight: 900; color: #fdba74; }

.vp-profile-logo-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .72);
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800;
  opacity: 0; transition: opacity .18s ease;
}

.vp-profile-logo-overlay i { font-size: 18px; }
.vp-profile-logo-box:hover .vp-profile-logo-overlay { opacity: 1; }

.vp-profile-tabs-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--sh-sm);
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 30;
}

.vp-profile-tab {
  min-height: 42px; padding: 10px 15px; border-radius: 13px;
  background: var(--surface-2); color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.vp-profile-tab:hover { background: #e2e8f0; color: var(--ink); transform: translateY(-1px); }
.vp-profile-tab.active { background: var(--ink); color: #fff; }
.vp-profile-tab.active i { color: var(--gold); }

.vp-profile-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--sh-sm);
  animation: vpTabFade .22s ease;
}

.vp-profile-tab-panel.active { display: block; }

@keyframes vpTabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vp-profile-section-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.vp-profile-section-head h3 { font-family: var(--ff-display); font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.vp-profile-section-head p { font-size: 13px; color: var(--muted); }

.vp-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vp-media-upload { background: var(--surface); border: 1px dashed var(--border-2); border-radius: 16px; padding: 20px; }
.vp-media-upload h4 { font-size: 15px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.vp-media-upload p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.vp-profile-bottom-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 14px; box-shadow: var(--sh-sm);
}

/* --------------------------------------------------------------------------
   15. Sessions page
   -------------------------------------------------------------------------- */

.sessions-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sessions-title { margin: 0; font-family: var(--ff-display); font-size: 19px; font-weight: 800; color: var(--ink); }
.sessions-subtitle { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.sessions-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin-bottom: 22px; }
.sessions-stat-tile { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--sh-sm); }
.sessions-stat-num { font-family: var(--ff-display); font-size: 26px; font-weight: 900; line-height: 1; color: var(--ink); }
.sessions-stat-num span { font-size: 13px; color: var(--muted); }
.sessions-stat-label { margin-top: 5px; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sessions-stat-upcoming .sessions-stat-num { color: #3b82f6; }
.sessions-stat-completed .sessions-stat-num { color: #059669; }
.sessions-stat-cancelled .sessions-stat-num { color: #6b7280; }
.sessions-stat-rating .sessions-stat-num { color: #f59e0b; }

.sessions-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.sessions-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 750; text-decoration: none; color: var(--muted);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.sessions-tab:hover, .sessions-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-1px); }

.sessions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; align-items: stretch; }

.session-grid-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.session-grid-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--sh-md); }

.session-card-top { padding: 18px; display: flex; align-items: flex-start; gap: 14px; }

.session-date-box {
  width: 54px; height: 58px; border-radius: 14px;
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.session-date-box.pending { background: var(--gold); color: #111827; }
.session-date-box.done { background: var(--green); }
.session-date-box.dead { background: var(--muted); }

.session-date-day { font-family: var(--ff-display); font-size: 19px; font-weight: 900; line-height: 1; }
.session-date-month { margin-top: 2px; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.session-card-main { flex: 1; min-width: 0; }
.session-mentor-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; min-width: 0; }
.session-mentor-photo, .session-mentor-initials { width: 30px; height: 30px; border-radius: 999px; flex: 0 0 auto; }
.session-mentor-photo { object-fit: cover; border: 1px solid var(--border); }

.session-mentor-initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a1a2e, #3b4a8a);
  color: #fff; font-size: 10px; font-weight: 800;
}

.session-mentor-text { min-width: 0; display: flex; flex-direction: column; }
.session-mentor-name { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-mentor-org { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.session-card-title { margin: 0 0 8px; font-family: var(--ff-display); font-size: 15px; font-weight: 850; line-height: 1.35; color: var(--ink); }
.session-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 12px; }
.session-meta span { display: inline-flex; align-items: center; gap: 5px; }
.session-meta i { color: var(--gold); }

.session-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }

.session-note-block { padding: 13px 18px; border-top: 1px dashed var(--border); color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.session-note-block strong { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.session-note-block p { margin: 0; }

.session-card-footer { margin-top: auto; padding: 13px 18px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.session-date-full { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; font-weight: 650; }

.session-card-actions { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-cancel-form { display: inline-flex; }

.rate-session-title { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* --------------------------------------------------------------------------
   16. Mentor Calendar page — fully namespaced under .mentor-calendar-page
   --------------------------------------------------------------------------
   PREVIOUSLY: this page redefined .btn, .btn-primary, .modal-overlay,
   .form-control, .empty-state, .pagination etc. as bare global selectors
   with raw hex colors (#FF9800, #ff5722) instead of design tokens, which
   silently overrode (or got overridden by, depending on load order) the
   shared component system used by every other page. Every one of those is
   renamed below with an `mc-` prefix and scoped under `.mentor-calendar-page`
   so this page can have its own visual identity without leaking into, or
   being clobbered by, the rest of the app. Update this page's markup to use
   the `mc-` prefixed classes (e.g. class="btn" -> class="mc-btn").
   -------------------------------------------------------------------------- */

.mentor-calendar-page {
  --mc-primary: #ff5722;
  --mc-primary-d: #ff9800;
  --mc-surface: #ffffff;
  --mc-bg: #f8fafc;
  --mc-border: #e5e7eb;
  --mc-muted: #6b7280;
  --mc-ink: #111827;
  --mc-radius: 10px;
  --mc-radius-lg: 14px;
  --mc-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  font-family: 'DM Sans', sans-serif;
  color: var(--mc-ink);
  background: var(--mc-bg);
}

.mentor-calendar-page .mc-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.mentor-calendar-page .mc-page-title { font-size: 22px; font-weight: 800; }
.mentor-calendar-page .mc-page-sub { font-size: 13px; color: var(--mc-muted); margin-top: 3px; }
.mentor-calendar-page .mc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mentor-calendar-page .mc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--mc-radius);
  border: 1.5px solid var(--mc-border);
  background: var(--mc-surface); color: var(--mc-ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}

.mentor-calendar-page .mc-btn:hover { background: var(--mc-primary-d); color: #fff; border-color: var(--mc-primary-d); }
.mentor-calendar-page .mc-btn-primary { background: var(--mc-primary); color: #fff; border-color: var(--mc-primary); }
.mentor-calendar-page .mc-btn-primary:hover { background: var(--mc-primary-d); }
.mentor-calendar-page .mc-btn-success { background: #065f46; color: #fff; border-color: #065f46; }
.mentor-calendar-page .mc-btn-danger { background: #991b1b; color: #fff; border-color: #991b1b; }
.mentor-calendar-page .mc-btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 7px; }
.mentor-calendar-page .mc-btn-icon { padding: 6px 10px; }

.mentor-calendar-page .mc-stat-ribbon { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.mentor-calendar-page .mc-stat-card { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius); padding: 13px 16px; }
.mentor-calendar-page .mc-stat-num { font-size: 26px; font-weight: 800; }
.mentor-calendar-page .mc-stat-lbl { font-size: 10px; color: var(--mc-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.mentor-calendar-page .mc-stat-requested { color: #f59e0b; }
.mentor-calendar-page .mc-stat-upcoming { color: #534ab7; }
.mentor-calendar-page .mc-stat-completed { color: #1d9e75; }
.mentor-calendar-page .mc-stat-cancelled { color: #ef4444; }

.mentor-calendar-page .mc-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.mentor-calendar-page .mc-filter-bar select,
.mentor-calendar-page .mc-filter-bar input[type=month] {
  padding: 7px 11px; border-radius: 8px; border: 1.5px solid var(--mc-border);
  font-size: 13px; background: var(--mc-surface); font-family: inherit; color: var(--mc-ink);
}
.mentor-calendar-page .mc-filter-bar select:focus,
.mentor-calendar-page .mc-filter-bar input:focus { outline: 2px solid var(--mc-primary); outline-offset: 1px; }
.mentor-calendar-page .mc-view-toggle { display: flex; gap: 6px; margin-left: auto; }

.mentor-calendar-page .mc-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 8px; border: 1.5px solid var(--mc-border);
  background: var(--mc-surface); font-size: 12px; font-weight: 600;
  color: var(--mc-muted); text-decoration: none;
}
.mentor-calendar-page .mc-view-btn.active { background: var(--mc-primary); color: #fff; border-color: var(--mc-primary); }

.mentor-calendar-page .mc-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mentor-calendar-page .mc-leg { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--mc-muted); }
.mentor-calendar-page .mc-leg-sq { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.mentor-calendar-page .mc-leg-open { background: #e1f5ee; border: 1px solid #1d9e75; }
.mentor-calendar-page .mc-leg-confirmed { background: #eeedfe; border: 1px solid #7f77dd; }
.mentor-calendar-page .mc-leg-requested { background: #faeeda; border: 1px solid #ef9f27; }
.mentor-calendar-page .mc-leg-completed { background: #eaf3de; border: 1px solid #639922; }
.mentor-calendar-page .mc-leg-cancelled { background: #f1efe8; border: 1px solid #888780; }

.mentor-calendar-page .mc-cal-shell { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius-lg); overflow: hidden; }
.mentor-calendar-page .mc-cal-month-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-cal-month-title { font-size: 15px; font-weight: 700; }
.mentor-calendar-page .mc-cal-month-btns { display: flex; gap: 6px; }
.mentor-calendar-page .mc-cal-header { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-cal-hday { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mc-muted); padding: 8px 0; }
.mentor-calendar-page .mc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.mentor-calendar-page .mc-cal-cell {
  min-height: 92px; padding: 6px;
  border-right: 1px solid var(--mc-border); border-bottom: 1px solid var(--mc-border);
  cursor: pointer; transition: background .1s; position: relative;
}
.mentor-calendar-page .mc-cal-cell:nth-child(7n) { border-right: none; }
.mentor-calendar-page .mc-cal-cell:hover { background: #f5f3ff; }
.mentor-calendar-page .mc-cal-cell.other-month { opacity: .28; pointer-events: none; }
.mentor-calendar-page .mc-cal-cell.weekend { background: #fafafa; }
.mentor-calendar-page .mc-cal-cell.has-avail { border-top: 2.5px solid #1d9e75; }
.mentor-calendar-page .mc-cal-cell.sel-day { background: #f0eeff; outline: 2px solid var(--mc-primary); outline-offset: -2px; }
.mentor-calendar-page .mc-cal-cell.today .mc-day-num-wrap { background: var(--mc-primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }

.mentor-calendar-page .mc-day-num-wrap { font-size: 11px; font-weight: 700; color: var(--mc-muted); margin-bottom: 3px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.mentor-calendar-page .mc-cal-event { font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 1.45; cursor: pointer; }
.mentor-calendar-page .mc-cal-avail-badge { font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; background: #e1f5ee; color: #085041; display: inline-block; margin-bottom: 2px; }
.mentor-calendar-page .mc-cal-avail-dot { font-size: 6px; }

.mentor-calendar-page .mc-cal-layout { display: grid; grid-template-columns: 1fr 290px; gap: 16px; align-items: start; }
.mentor-calendar-page .mc-side-panel { display: flex; flex-direction: column; gap: 14px; }
.mentor-calendar-page .mc-side-card { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius); padding: 14px; }
.mentor-calendar-page .mc-side-card-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mc-muted); margin-bottom: 10px; }
.mentor-calendar-page .mc-side-card-rating { border-color: #f59e0b; }
.mentor-calendar-page .mc-side-card-title-rating { color: #92400e; }
.mentor-calendar-page .mc-btn-rate { background: #fef3c7; color: #92400e; border-color: #f59e0b; }

.mentor-calendar-page .mc-session-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-session-item:last-child { border-bottom: none; }
.mentor-calendar-page .mc-si-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff5722, #7c3aed);
  flex-shrink: 0; object-fit: cover;
}
.mentor-calendar-page .mc-si-avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.mentor-calendar-page .mc-si-body { flex: 1; min-width: 0; }
.mentor-calendar-page .mc-si-title { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mentor-calendar-page .mc-si-title-sm { font-size: 13px; }
.mentor-calendar-page .mc-si-meta { font-size: 11px; color: var(--mc-muted); margin-top: 1px; }
.mentor-calendar-page .mc-si-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

.mentor-calendar-page .mc-slot-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--mc-border); gap: 8px; }
.mentor-calendar-page .mc-slot-item:last-child { border-bottom: none; }
.mentor-calendar-page .mc-slot-time { font-size: 12px; font-weight: 600; color: #085041; }
.mentor-calendar-page .mc-slot-mentor { font-size: 11px; color: var(--mc-muted); }

.mentor-calendar-page .mc-mentor-chips { display: flex; flex-direction: column; gap: 8px; }
.mentor-calendar-page .mc-mentor-chip { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius); background: var(--mc-surface); cursor: pointer; transition: border-color .1s; }
.mentor-calendar-page .mc-mentor-chip:hover { border-color: var(--mc-primary); }
.mentor-calendar-page .mc-mc-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #8b5cf6); flex-shrink: 0; object-fit: cover; }
.mentor-calendar-page .mc-mc-body { flex: 1; min-width: 0; }
.mentor-calendar-page .mc-mc-name { font-size: 12px; font-weight: 600; }
.mentor-calendar-page .mc-mc-org { font-size: 10px; color: var(--mc-muted); }
.mentor-calendar-page .mc-mc-btn { padding: 3px 8px; font-size: 10px; }

.mentor-calendar-page .mc-table-wrap { overflow-x: auto; }
.mentor-calendar-page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mentor-calendar-page th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mc-muted); border-bottom: 1.5px solid var(--mc-border); background: #f9fafb; }
.mentor-calendar-page td { padding: 11px 12px; border-bottom: 1px solid var(--mc-border); vertical-align: top; }
.mentor-calendar-page tr:last-child td { border-bottom: none; }
.mentor-calendar-page tr:hover td { background: #fafafa; }
.mentor-calendar-page .mc-td-nowrap-sm { white-space: nowrap; font-size: 12px; }
.mentor-calendar-page .mc-mentor-cell { display: flex; align-items: center; gap: 7px; }
.mentor-calendar-page .mc-mentor-name-sm { font-size: 12px; font-weight: 600; }
.mentor-calendar-page .mc-platform-text { font-size: 12px; }
.mentor-calendar-page .mc-platform-icon { color: var(--mc-muted); margin-right: 3px; }

.mentor-calendar-page .mc-empty-state { text-align: center; padding: 40px 20px; }
.mentor-calendar-page .mc-empty-state i { font-size: 36px; color: var(--mc-border); margin-bottom: 10px; display: block; }
.mentor-calendar-page .mc-empty-state h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.mentor-calendar-page .mc-empty-state p { font-size: 13px; color: var(--mc-muted); }

.mentor-calendar-page .mc-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 9990; align-items: center; justify-content: center; padding: 16px; }
.mentor-calendar-page .mc-modal-overlay.open { display: flex; }
.mentor-calendar-page .mc-modal { background: var(--mc-surface); border-radius: var(--mc-radius-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.mentor-calendar-page .mc-modal-sm { max-width: 420px; }
.mentor-calendar-page .mc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-modal-title { font-size: 16px; font-weight: 700; }
.mentor-calendar-page .mc-modal-close { width: 28px; height: 28px; border-radius: 50%; border: none; background: #f3f4f6; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; color: var(--mc-muted); }
.mentor-calendar-page .mc-modal-close:hover { background: #e5e7eb; }
.mentor-calendar-page .mc-modal-body { padding: 18px 20px; }
.mentor-calendar-page .mc-modal-footer { padding: 12px 20px; border-top: 1px solid var(--mc-border); display: flex; gap: 8px; justify-content: flex-end; }

.mentor-calendar-page .mc-form-group { margin-bottom: 14px; }
.mentor-calendar-page .mc-form-group label { font-size: 12px; font-weight: 600; color: var(--mc-muted); display: block; margin-bottom: 5px; }
.mentor-calendar-page .mc-form-control { width: 100%; padding: 8px 11px; border: 1.5px solid var(--mc-border); border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--mc-ink); background: var(--mc-surface); }
.mentor-calendar-page .mc-form-control:focus { outline: 2px solid var(--mc-primary); outline-offset: 1px; border-color: var(--mc-primary); }
.mentor-calendar-page .mc-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mentor-calendar-page .mc-form-grid-2 .full { grid-column: 1 / -1; }
.mentor-calendar-page .mc-form-hint { font-size: 11px; color: var(--mc-muted); margin-top: 4px; }

.mentor-calendar-page .mc-detail-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mc-border); font-size: 13px; }
.mentor-calendar-page .mc-detail-row:last-child { border-bottom: none; }
.mentor-calendar-page .mc-detail-lbl { font-size: 12px; color: var(--mc-muted); width: 90px; flex-shrink: 0; }
.mentor-calendar-page .mc-detail-val { flex: 1; }
.mentor-calendar-page .mc-detail-sm { font-size: 12px; }
.mentor-calendar-page .mc-detail-note { font-size: 12px; background: #f9fafb; border-radius: 6px; padding: 8px; }
.mentor-calendar-page .mc-meeting-link-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #ede9fe; color: var(--mc-primary); border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; }
.mentor-calendar-page .mc-meeting-link-badge:hover { background: #ddd6fe; }
.mentor-calendar-page .mc-meeting-link-sm { margin-top: 4px; font-size: 10px; }

.mentor-calendar-page .mc-countdown { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #fef3c7; color: #92400e; }
.mentor-calendar-page .mc-countdown.soon { background: #fee2e2; color: #991b1b; }

.mentor-calendar-page .mc-section-divider { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mc-muted); margin: 16px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-list-shell { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius-lg); overflow: hidden; }

.mentor-calendar-page .mc-status-requested { background: #faeeda; color: #633806; }
.mentor-calendar-page .mc-status-scheduled { background: #e6f1fb; color: #185fa5; }
.mentor-calendar-page .mc-status-confirmed { background: #eeedfe; color: #3c3489; }
.mentor-calendar-page .mc-status-completed { background: #eaf3de; color: #27500a; }
.mentor-calendar-page .mc-status-cancelled { background: #f1efe8; color: #5f5e5a; }
.mentor-calendar-page .mc-status-no-show { background: #faece7; color: #993c1d; }
.mentor-calendar-page .mc-status-muted { background: #f1efe8; color: #5f5e5a; }

.mentor-calendar-page .mc-muted-sm { font-size: 12px; color: var(--mc-muted); }
.mentor-calendar-page .mc-muted-xs { font-size: 11px; color: var(--mc-muted); }
.mentor-calendar-page .mc-action-wrap { display: flex; gap: 5px; flex-wrap: wrap; }
.mentor-calendar-page .mc-inline-form { display: inline; }

.mentor-calendar-content { padding: 24px; max-width: 1200px; margin: 0 auto; }
.mentor-calendar-page .mc-btn-clear { color: #ef4444; }

@media (max-width: 880px) {
  .mentor-calendar-page .mc-cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mentor-calendar-page .mc-meal-stats,
  .mentor-calendar-page .mc-stat-ribbon { grid-template-columns: repeat(2, 1fr); }
  .mentor-calendar-page .mc-form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .mentor-calendar-page .mc-form-grid-2 { grid-template-columns: 1fr; }
  .mentor-calendar-page .mc-form-grid-2 .full { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   17. Responsive — consolidated. The original file had ~8 separate @media
   blocks for the same breakpoints scattered across different sections,
   several of them re-targeting the same selectors with different rules.
   They are merged here, ordered from largest to smallest breakpoint.
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --sidebar-w: 236px; }
  .vp-content { padding: 22px; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .vp-sidebar { width: min(86vw, 320px); transform: translateX(-105%); box-shadow: 24px 0 70px rgba(15, 23, 42, .34); }
  .vp-sidebar.open { transform: translateX(0); }
  .vp-sidebar-close { display: inline-grid; place-items: center; }
  .vp-main { margin-left: 0 !important; width: 100%; }
  .vp-topbar { height: auto; min-height: 62px; padding: 10px 16px; }
  .vp-menu-btn { display: inline-grid; }
  .vp-page-title { max-width: 52vw; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp-page-subtitle { display: block; max-width: 52vw; }
  .vp-content { padding: 18px 16px 28px; }
  .vp-flash { margin: 14px 16px 20px; }

  .dash-welcome, .team-hero, .panel-between, .row-flex, .inv-row,
  .card-header, .tm-footer, .dm-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-welcome { padding: 24px 22px; }
  .dash-welcome-cohort { width: fit-content; }

  .form-grid-2, .tm-field-grid, .dash-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tab { justify-content: center; text-align: center; }

  .events-grid, .grid-wrap {
    grid-template-columns: 1fr !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .toolbar, .results-hd, .flash-zone, .results-bar, .pagination {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .toolbar-inner { align-items: stretch; }
  .search-wrap, .type-sel, .tb-btn, .btn, .btn-reg, .btn-cancel { width: 100%; }
  .tab-group, .view-toggle { width: 100%; overflow-x: auto; }
}

@media (max-width: 860px) {
  .vp-profile-hero { flex-direction: column; align-items: flex-start; }
  .vp-profile-hero-actions { width: 100%; justify-content: flex-end; }
  .vp-profile-tabs-wrap { position: static; }
  .vp-media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 20px 28px; }
  .hero-kpis, .hero-stats { gap: 16px; }
  .hero-kpi, .hero-stat { padding-right: 16px; margin-right: 16px; }
  .hero-wordmark { font-size: 80px; }
  .toolbar { padding: 12px 20px; }
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .view-toggle, .type-sel { width: 100%; }
  .vt-btn { flex: 1; text-align: center; }
  .results-bar { padding: 14px 20px 0; }
  .grid-wrap { padding: 16px 20px 48px; grid-template-columns: 1fr; }
  .pagination { padding: 0 20px 48px; }
}

@media (max-width: 740px) {
  .vp-topbar-right { display: none; }
  .sessions-grid { grid-template-columns: 1fr; }
  .session-card-top { flex-wrap: wrap; }
  .session-badges { width: 100%; flex-direction: row; align-items: flex-start; }
  .session-card-footer, .session-card-actions { align-items: stretch; flex-direction: column; }
  .session-card-actions .btn, .session-cancel-form, .session-cancel-form .btn { width: 100%; }
}

@media (max-width: 640px) {
  .vp-sidebar { width: min(92vw, 310px); }
  .vp-sidebar-brand { min-height: 68px; padding: 16px; }
  .vp-venture-info { padding: 14px 16px; }
  .vp-nav { padding: 12px 10px; }
  .vp-nav-label { padding-top: 10px; }
  .vp-nav a, .vp-nav-link { min-height: 44px; padding: 10px 11px; }
  .vp-sidebar-footer { padding: 12px; }
  .vp-topbar { gap: 10px; }
  .vp-topbar-left { min-width: 0; flex: 1; }
  .vp-topbar-right { gap: 8px; flex-shrink: 0; }
  .vp-user-chip { padding: 4px; }
  .vp-user-chip-name { display: none; }
  .vp-notif-btn, .vp-menu-btn { width: 36px; height: 36px; }
  .vp-page-title { max-width: 44vw; font-size: 15px; }
  .vp-page-subtitle { max-width: 44vw; font-size: 11.5px; }
  .vp-content { padding: 14px 12px 24px; }
  .vp-flash { margin: 12px 12px 18px; }

  .card-body, .tab-panel, .tm-body { padding: 16px; }
  .card-header, .tm-header { padding: 15px 16px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-tile { padding: 16px; }
  .dashboard-tabs { grid-template-columns: 1fr; }

  .dash-welcome, .team-hero { padding: 22px 18px; border-radius: 14px; }
  .dash-welcome-text h2, .team-hero h1 { font-size: 22px; }

  .hero { padding: 30px 16px 26px; }
  .hero-kpis { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero-kpi { margin: 0; padding: 0; border-right: 0; }

  .modal-overlay, .team-modal-overlay, .vp-modal-overlay, .doc-modal-overlay { padding: 10px; }
  .detail-modal, .team-modal, .ci-modal { max-height: 94vh; border-radius: 16px; }
  .dm-head, .dm-body, .dm-footer { padding-left: 18px; padding-right: 18px; }

  .photo-upload-zone, .founder-toggle-wrap { flex-direction: column; align-items: flex-start; }

  .form-grid-2, .tm-field-grid, .team-grid { grid-template-columns: 1fr; }
  .dm-head, .dm-body, .dm-footer, .tm-header, .tm-body, .tm-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .tm-footer { flex-direction: column; align-items: stretch; }
  .tm-footer-right, .tm-footer-left { width: 100%; justify-content: stretch; }
  .tm-footer-right .btn, .tm-footer-left .btn { flex: 1; }

  .vp-profile-hero-left { flex-direction: column; align-items: flex-start; }
  .vp-profile-logo-box { width: 88px; height: 88px; border-radius: 20px; }
  .vp-profile-tab { width: 100%; justify-content: flex-start; }
  .vp-profile-tab-panel { padding: 18px; }
  .vp-profile-bottom-actions { flex-direction: column; }
  .vp-profile-bottom-actions .btn { width: 100%; }

  .vp-logout-modal { padding: 16px; }
  .vp-logout-modal-card { width: 100%; border-radius: 20px; padding: 28px 20px 24px; }
  .vp-logout-modal-actions { gap: 10px; }
  .vp-btn { flex: 1; min-width: 0; }

  #uploadModal, #changeRequestModal, #versionModal,
  .doc-modal-overlay {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }
  .vp-modal, .doc-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
  }
  .vp-modal-footer, .doc-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .vp-modal-footer .btn, .doc-modal-footer .btn {
    width: 100%;
  }

  .doc-card-footer { align-items: flex-start; gap: 10px; flex-direction: column; }
}

@media (max-width: 560px) {
  .vp-logout-modal { padding: 16px; }
}

@media (max-width: 500px) {
  .form-grid-2, .tm-field-grid { grid-template-columns: 1fr; }
  .form-grid-2 .full, .tm-field-grid .full { grid-column: 1; }
}

@media (max-width: 480px) {
  .vp-page-title { font-size: 16px; }
  .photo-upload-zone { align-items: flex-start; }
  .ecard-footer, .dm-footer { flex-direction: column; }
  .btn-icon, .btn-reg, .btn-cancel { width: 100%; }
}



/* --------------------------------------------------------------------------
   M&E / MEAL display fixes
   -------------------------------------------------------------------------- */
.portal-content,
.meal-page {
  width: 100%;
  max-width: 100%;
  padding: 28px;
}

.meal-page .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.meal-tabs {
  position: relative;
  z-index: 2;
}

.meal-tab {
  appearance: none;
  border: 1.5px solid var(--border);
  line-height: 1.2;
}

.meal-tab .badge {
  min-width: 24px;
  justify-content: center;
}

.meal-panel {
  width: 100%;
  min-width: 0;
}

.meal-panel.active {
  display: block !important;
}

.meal-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  min-width: 860px;
}

.data-table th,
.data-table td {
  white-space: nowrap;
}

.data-table td:nth-child(3),
.data-table td:nth-child(6),
.data-table td:last-child {
  white-space: normal;
}

.action-buttons {
  white-space: nowrap;
}

.add-card-body.open,
.upload-form.open {
  display: block !important;
}

.btn-dl-upload {
  font: inherit;
}

.meal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .58);
}

.meal-modal.open {
  display: flex !important;
}

.meal-modal-card {
  width: min(960px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh-lg);
}

.meal-modal-header,
.meal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.meal-modal-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  justify-content: flex-end;
}

.meal-modal-body {
  padding: 20px;
}

.meal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink);
}

@media (max-width: 768px) {
  .portal-content,
  .meal-page {
    padding: 18px 14px;
  }

  .meal-tabs,
  .dl-bar,
  .target-bar {
    gap: 8px;
  }

  .meal-tab,
  .dl-bar .btn-dl {
    width: 100%;
    justify-content: center;
  }

  .meal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-3,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .meal-modal {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }
}


.portal-content, .meal-page{max-width:100%; overflow-x:hidden;}
.meal-panel{display:none;}
.meal-panel.active{display:block;}
.table-wrap{width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:12px; background:#fff;}
.table-wrap table{min-width:980px; width:100%; border-collapse:collapse;}
.table-wrap th,.table-wrap td{white-space:normal; vertical-align:middle;}
.action-buttons{display:flex; gap:6px; align-items:center; justify-content:flex-end; white-space:nowrap;}
.add-card-body,.upload-form{display:none;}
.add-card-body.open,.upload-form.open{display:block !important;}
.meal-modal{position:fixed !important; inset:0 !important; z-index:999999 !important; display:none !important; align-items:center !important; justify-content:center !important; width:100vw !important; height:100vh !important; padding:20px !important; background:rgba(15,23,42,.68) !important; backdrop-filter:blur(4px) !important;}
.meal-modal.open,.meal-modal.show,.meal-modal.active{display:flex !important;}
.meal-modal-card{position:relative !important; width:min(1080px,100%) !important; max-height:90vh !important; overflow-y:auto !important; background:#fff !important; border-radius:18px !important; box-shadow:0 30px 70px rgba(0,0,0,.25) !important;}
.meal-modal-header,.meal-modal-footer{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; background:#fff; border-bottom:1px solid var(--border);}
.meal-modal-header{position:sticky; top:0; z-index:2;}
.meal-modal-footer{border-top:1px solid var(--border); border-bottom:0; justify-content:flex-end; position:sticky; bottom:0; z-index:2;}
.meal-modal-body{padding:20px;}
.meal-modal-close{width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:var(--surface-2); color:var(--ink); border:1px solid var(--border);}
body.meal-modal-open{overflow:hidden !important;}
@media(max-width:768px){.portal-content,.meal-page{padding:18px 14px;}.meal-tabs,.dl-bar,.target-bar{gap:8px}.meal-tab,.dl-bar .btn-dl{width:100%; justify-content:center}.meal-modal{padding:10px !important}.meal-modal-card{max-height:94vh !important; border-radius:14px !important}.form-grid-2,.tm-field-grid{grid-template-columns:1fr !important;}}

/* Add this section to assets/css/portal.css */
.venture-wrap{min-height:100vh;background:#f8fafc;padding:28px}
.venture-shell{max-width:1260px;margin:0 auto}
.venture-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.venture-title h1{font-size:2rem;font-weight:900;color:#111827;margin:0 0 5px}
.venture-title p{color:#64748b;margin:0}
.resource-filter-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;margin-bottom:22px;box-shadow:0 4px 14px rgba(15,23,42,.05)}
.resource-search{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.resource-search input{flex:1;padding:12px 14px;border:1.5px solid #e5e7eb;border-radius:12px;outline:none}
.resource-search input:focus{border-color:var(--primary,#4f46e5)}
.filter-chips{display:flex;flex-wrap:wrap;gap:8px}
.filter-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.83rem;font-weight:700;text-decoration:none}
.filter-chip.active,.filter-chip:hover{background:var(--primary,#4f46e5);color:#fff}
.resource-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.resource-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden;box-shadow:0 6px 20px rgba(15,23,42,.06);display:flex;flex-direction:column;min-height:100%}
.resource-thumb{height:150px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#f1f5f9}
.resource-thumb img{width:100%;height:100%;object-fit:cover}
.resource-thumb>i{font-size:3rem}
.res-type-pdf{background:#fee2e2;color:#b91c1c}
.res-type-video{background:#dbeafe;color:#1d4ed8}
.res-type-image{background:#dcfce7;color:#15803d}
.res-type-document{background:#fef3c7;color:#b45309}
.res-type-other{background:#f1f5f9;color:#64748b}
.resource-badge{position:absolute;top:12px;right:12px;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:900;display:inline-flex;align-items:center;gap:5px}
.badge-public{background:#dcfce7;color:#166534}
.badge-locked{background:#fef3c7;color:#92400e}
.resource-body{padding:18px;flex:1}
.resource-category{display:inline-flex;align-items:center;gap:5px;color:#4f46e5;font-size:.73rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.resource-body h3{font-size:1.05rem;font-weight:900;color:#111827;margin:0 0 8px}
.resource-body p{color:#64748b;font-size:.88rem;line-height:1.55;margin:0 0 12px}
.resource-meta{display:flex;flex-wrap:wrap;gap:8px;color:#64748b;font-size:.78rem}
.resource-footer{border-top:1px solid #e5e7eb;padding:14px 18px;background:#fafafa}
.resource-actions{display:flex;gap:8px;flex-wrap:wrap}
.resource-actions .btn{flex:1;min-width:120px}
.request-status{font-size:.82rem;font-weight:800;border-radius:12px;padding:10px 12px;margin-bottom:10px}
.status-pending{background:#fef3c7;color:#92400e}
.status-approved{background:#dcfce7;color:#166534}
.status-rejected{background:#fee2e2;color:#991b1b}
.empty-box{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:50px 20px;text-align:center;color:#64748b}
.empty-box i{font-size:3rem;color:#cbd5e1;margin-bottom:12px}
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.65);z-index:3000;display:none;align-items:center;justify-content:center;padding:22px}
.modal-overlay.open{display:flex}
.request-modal{width:100%;max-width:560px;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 20px 55px rgba(15,23,42,.25)}
.request-modal-header{padding:20px 22px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;gap:12px;align-items:center}
.request-modal-header h2{margin:0;font-size:1.15rem}
.request-modal-body{padding:22px}
.request-modal-footer{padding:16px 22px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:10px;background:#fafafa}
.modal-close{border:0;background:#f1f5f9;width:34px;height:34px;border-radius:50%;font-size:1.3rem;cursor:pointer}
.flash-message-text{color:#334155;font-weight:800;margin:0;line-height:1.55}
.flash-icon-success{color:#16a34a}
.flash-icon-error{color:#dc2626}
.w-100{width:100%;justify-content:center}
.form-group label{display:block;font-weight:800;margin-bottom:8px;color:#111827}
.form-control{width:100%;border:1.5px solid #e5e7eb;border-radius:12px;padding:12px 14px;outline:none;resize:vertical}
.form-control:focus{border-color:var(--primary,#4f46e5)}
.req{color:#dc2626}
@media(max-width:640px){
    .venture-wrap{padding:16px}
    .resource-search{flex-direction:column}
    .resource-search .btn,.resource-search input{width:100%}
    .request-modal-footer{flex-direction:column}
    .request-modal-footer .btn{width:100%}
}
.resource-results-summary{margin:-8px 0 16px;color:#64748b;font-size:.88rem;font-weight:800}
.resource-pagination{margin-top:24px;padding-bottom:10px}
.page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 6px;color:#64748b;font-weight:800}
.request-intro{color:#64748b;margin-bottom:16px}
@media(max-width:640px){
    .resource-pagination .page-btn{flex:1 1 auto;min-width:44px}
}


/* ======================== VENTURES OVERRIDES ======================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Typography */
  --ff-base: "Outfit", "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-display: "Poppins", "Outfit", system-ui, sans-serif;
  --ff-serif: "Poppins", Georgia, serif;

  /* Core palette */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #475569;
  --muted: #64748b;

  --surface: #ff572212;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --white: #ffffff;

  --border: #e2e8f0;
  --border-2: #cbd5e1;

 
  --navy: #0f172a;
  --navy-lt: #eef2ff;
  --primary: #ff5722;
  --primary-2: #ff9800;
  --blue: #ff5722;
  --blue-lt: #eef2ff;

  --gold: #fc7c10;
  --gold-2: #d97706;
  --gold-lt: #fff7ed;

  --green: #059669;
  --green-lt: #d1fae5;

  --amber: #d97706;
  --amber-lt: #fef3c7;

  --red: #dc2626;
  --red-lt: #fee2e2;

  --purple-lt: #ede9fe;
  --purple: #7c3aed;

  --sky-lt: #e0f2fe;

  /* Layout */
  --sidebar-w: 250px;
  --topbar-h: 66px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --sh-md: 0 10px 30px rgba(15, 23, 42, .08);
  --sh-lg: 0 24px 64px rgba(15, 23, 42, .18);

  /* Motion */
  --dur: .18s;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--ff-base);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

::selection {
  background: rgba(252, 124, 16, .18);
}

/* Any open modal locks page scroll. Single rule instead of three
   near-duplicates scattered through the old file. */
body.vp-modal-open,
body.doc-modal-open,
body.vp-sidebar-open {
  overflow: hidden;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   2. Portal shell, sidebar and topbar
   -------------------------------------------------------------------------- */

.vp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #000000 0%, #0f172a 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
  transition: transform var(--dur) ease;
}

.vp-sidebar-brand {
  min-height: 76px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 12px;
}

.vp-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
}

.vp-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(252, 124, 16, .12);
  border: 1px solid rgba(252, 124, 16, .35);
  flex: 0 0 auto;
}

.vp-brand-copy {
  min-width: 0;
}

.vp-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.vp-brand-sub {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.vp-sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
}

.vp-sidebar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.vp-venture-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.vp-venture-avatar,
.vp-venture-initials {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: 0 0 auto;
}

.vp-venture-avatar {
  object-fit: cover;
  border: 1px solid rgba(252, 124, 16, .35);
}

.vp-venture-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #000000;
  font-size: 14px;
  font-weight: 900;
}

.vp-venture-copy {
  min-width: 0;
}

.vp-venture-name {
  max-width: 150px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-venture-stage {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
}

.vp-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.vp-nav::-webkit-scrollbar {
  width: 6px;
}

.vp-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 20px;
}

.vp-nav-section {
  padding-bottom: 10px;
}

.vp-nav-section + .vp-nav-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.vp-nav-label {
  padding: 14px 10px 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

.vp-nav a,
.vp-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: rgba(255, 255, 255, .66);
  position: relative;
  transition: background var(--dur), color var(--dur), transform var(--dur);
}

.vp-nav a i,
.vp-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition: color var(--dur);
}

.vp-nav-text {
  min-width: 0;
  flex: 1;
}

.vp-nav a:hover,
.vp-nav-link:hover {
  background: rgba(255, 255, 255, .075);
  color: var(--white);
  transform: translateX(2px);
}

.vp-nav a:hover i,
.vp-nav-link:hover .vp-nav-icon {
  color: var(--gold);
}

.vp-nav a.active,
.vp-nav-link.active {
  background: rgba(252, 124, 16, .14);
  color: var(--gold);
}

.vp-nav a.active i,
.vp-nav-link.active .vp-nav-icon {
  color: var(--gold);
}

.vp-nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.vp-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.vp-logout-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--dur), color var(--dur);
}

.vp-logout-btn:hover {
  background: rgba(220, 38, 38, .12);
  color: #fca5a5;
}

.vp-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vp-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}

.vp-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.vp-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vp-topbar-left,
.vp-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vp-topbar-title-wrap {
  min-width: 0;
}

.vp-page-title {
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -.01em;
}

.vp-page-subtitle {
  display: none;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
}

.vp-breadcrumb span {
  margin: 0 5px;
  color: var(--border-2);
}

.vp-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.vp-notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.vp-notif-btn:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--border-2);
}

.vp-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--red);
  border: 2px solid var(--white);
}

.vp-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.vp-user-chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
}

.vp-user-chip-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}

.vp-content {
  flex: 1;
  padding: 28px;
}

.vp-flash {
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   3. Reusable components — buttons, badges, forms, cards, flash, empty state
   -------------------------------------------------------------------------- */

.card,
.tab-panel,
.dashboard-tabs-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.card {
  overflow: hidden;
}

.card-header {
  min-height: 58px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 850;
  color: var(--ink);
}

.card-body {
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.badge-gold { background: var(--gold-lt); color: #9a3412; }
.badge-success { background: var(--green-lt); color: #065f46; }
.badge-warning { background: var(--amber-lt); color: #92400e; }
.badge-danger { background: var(--red-lt); color: #991b1b; }
.badge-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-ink { background: var(--ink); color: var(--white); }

/* Canonical button system. .tb-btn shares the same base so toolbar buttons
   never visually drift from the rest of the app (this used to happen when
   the mentor-calendar page redefined .btn with raw hex colors). */
.btn,
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur), box-shadow var(--dur), background var(--dur),
              color var(--dur), border-color var(--dur), opacity var(--dur);
}

.btn:hover,
.tb-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.tb-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover,
.tb-primary:hover {
  background: var(--gold);
  color: #000000;
}

.btn-gold {
  background: var(--gold);
  color: #000000;
}

.btn-gold:hover {
  background: #fb923c;
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-2);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: #152347;
}

.btn-danger {
  background: var(--red-lt);
  color: var(--red);
  border-color: #fecaca;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-success {
  background: #065f46;
  color: #fff;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  transition: all var(--dur);
}

.btn-icon:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
}

.tb-ghost {
  color: var(--red);
  border-color: #fecaca;
  background: var(--white);
}

.tb-ghost:hover {
  background: var(--red-lt);
  border-color: #fca5a5;
}

.form-group,
.tm-field {
  margin-bottom: 18px;
}

.form-label,
.tm-label,
label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-control,
.tm-input,
.type-sel,
.tb-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.form-control:focus,
.tm-input:focus,
.type-sel:focus,
.tb-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

textarea.form-control,
.tm-textarea {
  resize: vertical;
  min-height: 94px;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.form-grid-2,
.tm-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid-2 .full {
  grid-column: 1 / -1;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.req {
  color: var(--red);
}

.img-preview {
  max-width: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.vp-flash,
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 650;
  animation: slideDown .28s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vp-flash.success,
.flash-success {
  background: var(--green-lt);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.vp-flash.error,
.flash-error {
  background: var(--red-lt);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.vp-flash.info,
.flash-info {
  background: var(--blue-lt);
  color: var(--primary-2);
  border: 1px solid #c7d2fe;
}

.flash-warning {
  background: var(--amber-lt);
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Single canonical empty-state component. Previously this was defined three
   times with different padding/icon sizes depending on which page's markup
   was used (documents grid vs investor grid vs generic). All three markup
   variants below now resolve to the same visual result. */
.empty-state,
.empty-wrap,
.empty-state-block,
.mentor-empty-state,
.sessions-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.empty-wrap {
  grid-column: 1 / -1;
}

.empty-state i,
.empty-state-block i,
.mentor-empty-state i,
.sessions-empty i {
  display: block;
  margin-bottom: 14px;
  font-size: 42px;
  color: var(--border-2);
}

.empty-state a {
  color: var(--ink);
  font-weight: 850;
}

.empty-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 28px;
  box-shadow: var(--sh-sm);
}

.empty-wrap h3,
.empty-state-block h3,
.mentor-empty-state h3,
.sessions-empty h3 {
  margin-bottom: 7px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
}

.empty-wrap p,
.empty-state-block p,
.mentor-empty-state p,
.sessions-empty p {
  max-width: 340px;
  margin: 0 auto 16px;
  font-size: 13.5px;
}

/* Star rating — one canonical component. Previously re-implemented four
   times (.star-rating / .star-row / .rating-star / .star-picker) with
   slightly different sizes. Pick a size via a modifier class instead of a
   whole new component each time. */
.star-rating,
.star-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: 12px;
}

.star-rating i,
.rating-star {
  color: #d1d5db;
  font-size: 12px;
}

.star-rating i.filled,
.rating-star.filled {
  color: #f59e0b;
}

.star-rating span,
.star-row span {
  margin-left: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* Interactive star picker (rating modal) */
.star-picker,
.star-rater {
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
}

.star-rater {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rater input {
  display: none;
}

.star-picker i,
.star-rater label {
  font-size: 26px;
  color: var(--border-2);
  cursor: pointer;
  transition: color .12s ease;
}

.star-picker i.lit,
.star-rater label:hover,
.star-rater label:hover ~ label,
.star-rater input:checked ~ label {
  color: #f59e0b;
}

/* Pagination — one canonical component (.pg-btn / .page-btn both map here) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 48px;
}

.pg-btn,
.page-btn {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--ink-2);
  background: var(--white);
  transition: all var(--dur);
  text-decoration: none;
  cursor: pointer;
}

.pg-btn:hover,
.page-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pg-btn.current,
.page-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.page-btn.disabled {
  opacity: .4;
  pointer-events: none;
}

.text-muted { color: var(--muted) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: var(--amber) !important; }
.text-danger { color: var(--red) !important; }
.bg-soft { background: var(--surface-2) !important; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.py-8 { padding: 8px 0; }
.py-10 { padding: 10px 0; }
.is-clickable { cursor: pointer; }

/* --------------------------------------------------------------------------
   4. Dashboard
   -------------------------------------------------------------------------- */

.dash-welcome {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 30px 32px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(252, 124, 16, .18), transparent 28%),
    linear-gradient(135deg, #000000 0%, #222222 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--sh-md);
}

.dash-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.dash-welcome-text,
.dash-welcome-cohort {
  position: relative;
  z-index: 1;
}

.dash-welcome-text h2 {
  margin-bottom: 7px;
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.dash-welcome-text p {
  max-width: 620px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.dash-welcome-cohort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(252, 124, 16, .14);
  border: 1px solid rgba(252, 124, 16, .35);
  color: #fdba74;
  font-size: 12.5px;
  font-weight: 850;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-sm);
}

.stat-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.stat-tile-num {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.stat-tile-lbl {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dash-grid .wide {
  grid-column: 1 / -1;
}

.profile-bar-wrap {
  height: 9px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.profile-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  transition: width .6s ease;
}

.completeness-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}

.comp-item.done { color: var(--green); }
.comp-item.miss { color: var(--muted); }

.doc-row,
.ev-row,
.inv-row {
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.doc-row,
.ev-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-row:last-child,
.ev-row:last-child,
.inv-row:last-child {
  border-bottom: 0;
}

.doc-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.doc-row-name,
.ev-title,
.inv-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.doc-row-meta,
.ev-meta,
.inv-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.inv-name small {
  color: var(--muted);
  font-weight: 500;
}

.ev-date-box {
  width: 46px;
  height: 50px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ev-date-box .d {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.ev-date-box .m {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.qa-btn {
  min-height: 104px;
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur), color var(--dur);
}

.qa-btn:hover {
  color: var(--ink);
  border-color: var(--border-2);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.qa-btn i {
  font-size: 21px;
  color: var(--gold);
}

.dashboard-tabs-wrap {
  padding: 10px;
  margin-bottom: 20px;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-tab {
  min-height: 40px;
  border-radius: 11px;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--dur), color var(--dur);
}

.dashboard-tab:hover,
.dashboard-tab.active {
  background: var(--ink);
  color: var(--white);
}

.dashboard-tab.active i {
  color: var(--gold);
}

.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
}

.tab-panel {
  padding: 22px;
}

.tab-panel-header {
  margin-bottom: 18px;
}

.tab-panel-header h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.tab-panel-header p {
  font-size: 13px;
  color: var(--muted);
}

.panel-between,
.row-flex {
  display: flex;
  gap: 14px;
}

.panel-between {
  justify-content: space-between;
  align-items: flex-start;
}

.row-flex {
  flex: 1;
  min-width: 0;
}

.icon-doc { background: var(--amber-lt); color: var(--amber); }
.icon-team { background: var(--green-lt); color: var(--green); }
.icon-investor { background: var(--purple-lt); color: var(--purple); }
.icon-event { background: var(--sky-lt); color: #0284c7; }

/* --------------------------------------------------------------------------
   5. Events listing page / shared marketing hero
   --------------------------------------------------------------------------
   NOTE ON DUPLICATION FIXED HERE:
   The original file defined TWO different visual designs both under the
   class name `.hero` (one a dark gradient + grid-texture sans-serif hero,
   the other a flat navy background with an italic serif heading and a
   different stat layout). Because they shared a class name, whichever
   block appeared later in the file silently won and the earlier design's
   markup (if still used on any page) would have rendered wrong.

   Fix: `.hero` keeps the gradient/grid-texture version (it matches the
   dashboard/team hero visual language used elsewhere in this stylesheet).
   The flat-navy/serif version is preserved under `.hero-editorial` so nothing
   breaks if a page's HTML still expects it — just rename the wrapper class
   in that page's markup from `hero` to `hero-editorial` if you use that look.
   -------------------------------------------------------------------------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  padding: 50px 40px 46px;
  background:
    radial-gradient(ellipse 55% 90% at 92% 40%, rgba(79, 70, 229, .28), transparent 65%),
    radial-gradient(ellipse 30% 50% at 4% 90%, rgba(5, 150, 105, .16), transparent 55%),
    #0f172a;
  color: var(--white);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wordmark {
  position: absolute;
  right: -18px;
  bottom: -22px;
  font-family: var(--ff-display);
  font-size: clamp(90px, 10vw, 160px);
  font-weight: 900;
  color: rgba(255, 255, 255, .045);
  letter-spacing: -6px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .48);
}

.hero-eyebrow-bar {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

h1.hero-title {
  margin-bottom: 14px;
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.035em;
}

h1.hero-title em {
  font-style: normal;
  color: #a5b4fc;
}

.hero-sub {
  max-width: 500px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .66);
  font-size: 14.5px;
  line-height: 1.7;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero-kpi {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.hero-kpi:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.kpi-num {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.kpi-num.c-blue { color: #a5b4fc; }
.kpi-num.c-green { color: #6ee7b7; }
.kpi-num.c-amber { color: #fdba74; }

.kpi-lbl {
  margin-top: 5px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}

/* Editorial/serif hero variant — opt in via class="hero-editorial" instead
   of "hero" if a page wants this specific look. */
.hero-editorial {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 52px 48px 48px;
}

.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-editorial .hero-glow {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(201, 168, 76, .18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(99, 102, 241, .15) 0%, transparent 55%);
}

.hero-editorial .hero-wordmark {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(80px, 9vw, 148px);
  color: rgba(255, 255, 255, .04);
  letter-spacing: -.02em;
}

.hero-editorial .hero-inner {
  max-width: 780px;
}

.hero-editorial h1.hero-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  letter-spacing: -.02em;
}

.hero-editorial h1.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-editorial .hero-sub {
  max-width: 450px;
  font-size: 15px;
  color: rgba(255, 255, 255, .52);
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 26px;
}

.hero-stat {
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.stat-num {
  font-family: var(--ff-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.stat-num.gold { color: var(--gold); }
.stat-num.light { color: #fff; }
.stat-num.muted { color: rgba(255, 255, 255, .5); }

.stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #000000;
  margin-top: 5px;
}

/* --- Toolbar (sticky filter/search bar under a hero) ---------------------- */

.toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-sm);
}

.flash-zone,
.results-hd,
.results-bar {
  padding-left: 28px;
  padding-right: 28px;
}

.flash-zone {
  padding-top: 16px;
}

.toolbar-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--sh-sm);
}

.tab-group,
.view-toggle {
  display: flex;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.tab-btn,
.vt-btn {
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 850;
  color: var(--ink-3);
  white-space: nowrap;
  transition: background var(--dur), color var(--dur);
}

.tab-btn:hover,
.vt-btn:hover {
  background: var(--white);
  color: var(--ink);
}

.tab-btn.active,
.vt-btn.active {
  background: var(--blue);
  color: var(--white);
}

.search-wrap {
  flex: 1;
  min-width: 220px;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}

.search-wrap:focus-within {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .10);
}

.search-wrap i {
  color: var(--muted);
  font-size: 12px;
}

.search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 13.5px;
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.type-sel {
  width: auto;
  min-width: 150px;
  background: var(--surface-2);
  cursor: pointer;
}

.results-hd {
  padding-top: 22px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-bar {
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-count,
.results-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.results-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.events-grid,
.grid-wrap {
  padding: 0 28px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   6. Event cards
   -------------------------------------------------------------------------- */

.ecard {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.34, 1.2, .64, 1), box-shadow .22s, border-color .22s;
}

.ecard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--border-2);
}

.ecard-band,
.dm-band,
.im-band {
  height: 5px;
  flex-shrink: 0;
}

.ecard-cover {
  width: 100%;
  height: 158px;
  object-fit: cover;
  flex-shrink: 0;
}

.ecard-body {
  padding: 20px 22px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ecard-top {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.type-pill i {
  font-size: 10px;
}

.st-badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

.st-upcoming { background: var(--blue-lt); color: var(--primary-2); }
.st-ongoing { background: var(--green-lt); color: #065f46; }
.st-completed { background: var(--surface-2); color: var(--muted); }

.st-ongoing::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 99px;
  background: var(--green);
  animation: livepulse 1.3s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.6); }
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--green-lt);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 800;
}

.ecard-title {
  margin-bottom: 8px;
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
  color: var(--ink);
}

.ecard-desc {
  flex: 1;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ecard-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.meta-row i {
  width: 14px;
  margin-top: 2px;
  color: var(--blue);
  font-size: 11px;
  text-align: center;
  flex-shrink: 0;
}

.meta-row a {
  color: var(--blue);
  font-weight: 750;
}

.meta-row a:hover {
  text-decoration: underline;
}

.meta-closed,
.meta-closed i {
  color: var(--red) !important;
}

.cap-wrap {
  margin-bottom: 14px;
}

.cap-top {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.cap-top strong {
  color: var(--ink);
}

.cap-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cap-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .5s ease;
}

.cap-fill.warn { background: var(--amber); }
.cap-fill.full { background: var(--red); }

.ecard-footer {
  padding: 13px 22px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reg,
.btn-cancel {
  flex: 1;
  min-height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 850;
  transition: opacity var(--dur), transform var(--dur), background var(--dur), border-color var(--dur);
}

.btn-reg {
  background: var(--blue);
  color: var(--white);
}

.btn-reg:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-reg:disabled {
  cursor: default;
}

.btn-reg.s-registered {
  background: var(--green-lt);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.btn-reg.s-full {
  background: var(--red-lt);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-reg.s-ended {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-reg.s-closed {
  background: var(--amber-lt);
  color: #92400e;
  border: 1px solid #fde68a;
}

.btn-cancel {
  color: var(--red);
  border: 1px solid #fecaca;
  background: var(--white);
}

.btn-cancel:hover {
  background: var(--red-lt);
  border-color: #fca5a5;
}

/* --------------------------------------------------------------------------
   7. Investor cards (icard) + investor detail modal (im-*)
   -------------------------------------------------------------------------- */

.icard {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34, 1.2, .64, 1), box-shadow .22s, border-color .22s;
  position: relative;
}

.icard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--border-2);
}

.icard-accent {
  height: 4px;
  flex-shrink: 0;
}

.icard-head {
  padding: 22px 22px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.icard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.icard-initials {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.01em;
}

.icard-info { flex: 1; min-width: 0; }

.icard-name {
  font-family: var(--ff-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -.01em;
}

.icard-firm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.icard-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--ink-2);
}

.icard-type-pill i { font-size: 9px; }

.match-banner {
  margin: 0 22px 14px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ms-pending { background: var(--amber-lt); color: #92400e; border: 1px solid #fde68a; }
.ms-interested { background: var(--sky-lt); color: #075985; border: 1px solid #bae6fd; }
.ms-meeting { background: var(--navy-lt); color: var(--navy); border: 1px solid #c7d2fe; }
.ms-passed { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.ms-invested { background: var(--green-lt); color: #166534; border: 1px solid #bbf7d0; }

.icard-bio {
  padding: 0 22px 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.icard-meta {
  padding: 0 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imeta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.imeta-row i {
  color: var(--navy);
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 22px 14px;
}

.stage-chip {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--ink-3);
}

.score-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--gold-lt);
  border: 1px solid #e8d9a0;
  color: #7a5a0e;
}

.icard-footer {
  border-top: 1px solid var(--border);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.icard-ticket {
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
}

.icard-ticket-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 1px;
}

.btn-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  border: none;
  transition: background var(--dur), transform var(--dur);
}

.btn-profile:hover { background: #152347; transform: scale(1.02); }

/* Investor detail modal body */
.inv-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
  animation: mpop .25s cubic-bezier(.34, 1.4, .64, 1);
}

.im-head {
  padding: 28px 32px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-shrink: 0;
}

.im-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.im-initials-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
}

.im-head-info { flex: 1; min-width: 0; padding-top: 4px; }

.im-name {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.im-firm { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }

.im-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.im-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: -4px;
  transition: all var(--dur);
}

.im-close:hover { border-color: var(--red); color: var(--red); background: var(--red-lt); }

.im-body { padding: 24px 32px 0; flex: 1; }

.im-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 12px;
  margin-top: 22px;
}

.im-section-label:first-child { margin-top: 0; }

.im-bio { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

.im-details { display: flex; flex-direction: column; gap: 10px; }

.im-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.im-detail i {
  color: var(--navy);
  font-size: 12.5px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.im-detail a { color: var(--navy); font-weight: 600; }
.im-detail a:hover { text-decoration: underline; }

.im-stages { display: flex; flex-wrap: wrap; gap: 7px; }

.im-stage-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--navy-lt);
  color: var(--navy);
  border: 1px solid #c7d2fe;
}

.im-sector-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.im-sector-tag {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--ink-2);
}

.im-match-box {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--surface);
}

.im-match-box h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.im-match-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}

.im-match-score { font-size: 13px; color: var(--ink-3); }

.im-match-score strong {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -.01em;
}

.im-footer {
  padding: 20px 32px 28px;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.btn-ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--dur);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. ONE canonical modal/overlay system
   --------------------------------------------------------------------------
   The original file had THREE separate `.modal-overlay` rules with
   different z-index (900 vs 200) and blur values, plus a separate
   `.vp-modal-overlay` / `.doc-modal-overlay` system, plus a THIRD ad-hoc
   "Documents Modal Fix" block using `!important` to force them to agree.

   Fixed: every overlay class below resolves to the same base behavior.
   Use whichever class name your markup already has — they're now aliases,
   not separate systems, so there's nothing left to fight over and no
   `!important` patch is required anywhere.
   -------------------------------------------------------------------------- */

.modal-overlay,
.vp-modal-overlay,
.doc-modal-overlay,
.team-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.open,
.vp-modal-overlay.open,
.doc-modal-overlay.open,
.team-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box,
.vp-modal,
.doc-modal,
.detail-modal,
.ci-modal,
.team-modal,
.inv-modal {
  width: 100%;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  margin: 0;
  animation: mpop .22s cubic-bezier(.34, 1.4, .64, 1);
}

.vp-modal,
.doc-modal,
.team-modal {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(18px) scale(.98);
  transition: transform .2s ease;
  animation: none;
}

.modal-overlay.open .vp-modal,
.vp-modal-overlay.open .vp-modal,
.doc-modal-overlay.open .doc-modal,
.team-modal-overlay.open .team-modal {
  transform: translateY(0) scale(1);
}

.detail-modal { max-width: 640px; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; }
.ci-modal { max-width: 380px; padding: 32px 28px; text-align: center; }

@keyframes mpop {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.vp-modal-header,
.doc-modal-header,
.modal-box-header,
.tm-header,
.dm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.vp-modal-title,
.doc-modal-title,
.modal-box-title,
.tm-header-title,
.dm-title {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.vp-modal-close,
.doc-modal-close,
.modal-box-close,
.tm-close,
.dm-close,
.im-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur);
}

.vp-modal-close:hover,
.doc-modal-close:hover,
.modal-box-close:hover,
.tm-close:hover,
.dm-close:hover {
  color: var(--red);
  border-color: #fecaca;
  background: var(--red-lt);
}

.vp-modal-body,
.doc-modal-body,
.modal-box-body,
.tm-body,
.dm-body {
  padding: 20px;
}

.vp-modal-footer,
.doc-modal-footer,
.modal-box-footer,
.tm-footer,
.dm-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.version-list {
  list-style: none;
}

.version-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.version-list li:last-child { border-bottom: 0; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  width: 100%;
  transition: border-color .14s, background .14s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--ink);
  background: #f0f0ff;
}

.upload-zone i {
  font-size: 32px;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.upload-zone strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.upload-zone span {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Single canonical logout confirmation modal
   --------------------------------------------------------------------------
   The original file shipped THREE overlapping implementations:
     1. `#logoutModal.vp-modal` (its OWN .vp-modal-card / .vp-modal-icon,
        clashing with the document-vault modal's unrelated `.vp-modal`)
     2. `.vp-logout-modal` (the most complete, responsive version)
     3. A block of `!important` overrides whose entire purpose was to stop
        #1 and the document modals from fighting over `.vp-modal`.

   Fixed: keep ONLY `.vp-logout-modal` (renamed internals so it no longer
   reuses `.vp-modal`, which is now the document/team modal class). Use
   `.vp-logout-modal` / `.vp-logout-modal-card` in markup; drop
   `#logoutModal` entirely. No `!important` needed anywhere now because
   there is nothing left to override.
   -------------------------------------------------------------------------- */

.vp-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  padding: 24px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.vp-logout-modal.show {
  display: flex;
}

.vp-logout-modal-card {
  width: min(100%, 420px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 22px;
  padding: 32px 28px 30px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  animation: vpLogoutPop .18s ease-out;
}

.vp-logout-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #ef4444;
  font-size: 28px;
}

.vp-logout-modal-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: #111827;
}

.vp-logout-modal-card p {
  max-width: 310px;
  margin: 0 auto 28px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.vp-logout-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vp-btn {
  min-width: 112px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.vp-btn-secondary { background: #f3f4f6; color: #374151; }
.vp-btn-secondary:hover { background: #e5e7eb; }
.vp-btn-danger { background: #ef4444; color: #ffffff; }
.vp-btn-danger:hover { background: #dc2626; }

@keyframes vpLogoutPop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Check-in success modal (events) */
.ci-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--green-lt);
  color: var(--green);
  font-size: 26px;
}

.ci-modal h3 { margin-bottom: 8px; font-family: var(--ff-display); font-size: 21px; font-weight: 900; }
.ci-modal p { margin-bottom: 20px; color: var(--ink-3); font-size: 13.5px; }

.ci-code-box {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 2px dashed var(--border-2);
}

.ci-code {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-display);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ci-code-lbl {
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.btn-ci-close {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  transition: opacity var(--dur);
}

.btn-ci-close:hover { opacity: .9; }

/* Event detail modal body content (dm-*) */
.dm-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.dm-desc { margin-bottom: 20px; color: var(--ink-3); font-size: 14px; line-height: 1.75; }

.dm-sec-lbl {
  margin: 20px 0 10px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.dm-sec-lbl:first-child { margin-top: 0; }

.dm-list { display: flex; flex-direction: column; gap: 9px; }

.dm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.55;
}

.dm-row i {
  width: 16px;
  margin-top: 3px;
  color: var(--blue);
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}

.dm-agenda {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.dm-speakers { display: flex; flex-wrap: wrap; gap: 7px; }

.spk-chip {
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--blue-lt);
  border: 1px solid #c7d2fe;
  color: var(--primary-2);
  font-size: 12.5px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   10. Team page
   -------------------------------------------------------------------------- */

.team-page { max-width: 900px; }

.team-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 32px 36px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 92% 0, rgba(252, 124, 16, .20), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #222222 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--white);
  box-shadow: var(--sh-md);
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.team-hero-text, .slot-counter { position: relative; z-index: 1; }

.team-hero h1 {
  margin-bottom: 6px;
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.team-hero h1 em { color: var(--gold); }
.team-hero p { max-width: 560px; color: rgba(255, 255, 255, .66); font-size: 13.5px; }

.slot-counter { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; }
.slot-pips { display: flex; gap: 7px; }

.slot-pip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .28);
  transition: all var(--dur);
}

.slot-pip.filled {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(252, 124, 16, .45);
}

.slot-label {
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.member-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}

.member-card:hover { border-color: var(--border-2); box-shadow: var(--sh-md); transform: translateY(-2px); }
.member-card::before { content: ""; display: block; height: 4px; flex-shrink: 0; background: var(--border); }
.member-card.is-founder::before { background: linear-gradient(90deg, var(--gold), #f59e0b); }

.member-card-body { padding: 20px 20px 16px; flex: 1; }
.member-photo-wrap { position: relative; width: 66px; height: 66px; margin-bottom: 14px; flex-shrink: 0; }

.member-photo, .member-initials {
  width: 66px; height: 66px; border-radius: 999px; border: 3px solid var(--border);
}

.member-photo { object-fit: cover; }

.member-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink), #334155);
  color: var(--white);
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 800;
}

.founder-crown {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--gold);
  color: #000000;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.member-name {
  margin-bottom: 3px;
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.member-role {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.member-bio {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-socials { display: flex; gap: 7px; margin-top: auto; }

.social-link {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted); font-size: 12px;
  transition: all var(--dur);
}

.social-link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.social-link.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-link.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-link.email:hover { background: var(--green); border-color: var(--green); }

.member-card-footer {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--gold-lt);
  color: #9a3412;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .045em;
}

.slot-card {
  min-height: 204px;
  padding: 28px 20px;
  border-radius: var(--r-lg);
  border: 2px dashed var(--border-2);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}

.slot-card:hover { border-color: var(--ink); background: var(--white); transform: translateY(-2px); }

.slot-card-icon {
  width: 50px; height: 50px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 18px;
  transition: all var(--dur);
}

.slot-card:hover .slot-card-icon { background: var(--ink); border-color: var(--ink); color: var(--white); }
.slot-card-label { color: var(--ink-3); font-size: 13px; font-weight: 800; }
.slot-card-sub { color: var(--muted); font-size: 11.5px; }

.capacity-notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--gold-lt);
  border: 1px solid #fed7aa;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.capacity-notice i { color: var(--amber); font-size: 18px; flex-shrink: 0; }

/* Team member edit modal (tm-*) internals not covered by the canonical
   modal system above */
.tm-header-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-size: 16px; flex: 0 0 auto;
}

.photo-upload-zone { margin-bottom: 22px; display: flex; align-items: center; gap: 18px; }
.photo-preview-wrap { position: relative; flex-shrink: 0; cursor: pointer; }

.photo-preview, .photo-preview-placeholder {
  width: 74px; height: 74px; border-radius: 999px; border: 3px solid var(--border);
}

.photo-preview { object-fit: cover; }

.photo-preview-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), #334155);
  color: var(--white);
  font-family: var(--ff-serif);
  font-size: 24px;
  border-style: dashed;
}

.photo-upload-overlay {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(15, 23, 42, .64);
  display: grid; place-items: center;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--dur);
}

.photo-preview-wrap:hover .photo-upload-overlay { opacity: 1; }

.photo-upload-info { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.photo-upload-info strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13.5px; }

.founder-toggle-wrap {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.founder-toggle-label { color: var(--ink); font-size: 13.5px; font-weight: 800; }
.founder-toggle-sub { margin-top: 1px; color: var(--muted); font-size: 11.5px; }

.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: #cbd5e1; cursor: pointer; transition: background var(--dur);
}

.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform var(--dur);
}

.toggle-switch input:checked + .toggle-track { background: var(--gold); }
.toggle-switch input:checked + .toggle-track + .toggle-knob { transform: translateX(20px); }

.tm-social-row { display: flex; align-items: center; }

.tm-social-prefix {
  min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--border-2); border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px; font-weight: 750;
  white-space: nowrap;
}

.tm-social-row .tm-input { border-radius: 0 10px 10px 0; }

.tm-section {
  margin: 22px 0 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 10.5px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
}

.tm-section::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.tm-footer-left, .tm-footer-right { display: flex; align-items: center; gap: 10px; }

.drag-handle { padding: 4px; color: var(--muted); cursor: grab; font-size: 12px; transition: color var(--dur); }
.drag-handle:hover { color: var(--ink); }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: .35; background: var(--surface-2) !important; }
.sortable-chosen { box-shadow: var(--sh-md) !important; }

/* --------------------------------------------------------------------------
   11. Documents page
   -------------------------------------------------------------------------- */

.doc-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.cat-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.cat-filter-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: all .14s;
}

.cat-filter-btn:hover, .cat-filter-btn.active { border-color: var(--ink); color: var(--ink); }
.cat-filter-btn.active { background: var(--ink); color: var(--white); }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.doc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
  display: flex;
  flex-direction: column;
}

.doc-card:hover { border-color: var(--ink-3); box-shadow: 0 3px 16px rgba(12, 12, 14, .07); }
.doc-card-top { padding: 16px; display: flex; align-items: flex-start; gap: 12px; }

.doc-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; flex-shrink: 0;
}

.doc-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.doc-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.doc-card-footer {
  margin-top: auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.version-badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px;
  border-radius: 8px; background: #ede9fe; color: #6d28d9;
}

.visibility-badge { font-size: 10.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.vis-public { color: var(--success, var(--green)); }
.vis-private { color: var(--muted); }

.doc-status {
  display: inline-flex; margin-top: 7px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}

.doc-status-pending { background: #fef3c7; color: #92400e; }
.doc-status-approved { background: #dcfce7; color: #166534; }
.doc-status-rejected { background: #fee2e2; color: #991b1b; }
.doc-status-requested { background: #e0f2fe; color: #075985; }

.lock-note { font-size: 11.5px; color: #92400e; margin-top: 6px; }

.source-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.source-mentor { background: #ede9fe; color: #6d28d9; }
.source-venture { background: #dcfce7; color: #15803d; }

.doc-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1.5px solid var(--border); }

.doc-tab {
  padding: 9px 18px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-display);
}

.doc-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

.doc-tab .tab-count {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: 11px; font-weight: 700;
  padding: 1px 7px; color: var(--muted);
}

.doc-tab.active .tab-count { background: var(--ink); color: #fff; border-color: var(--ink); }

.report-card-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.report-mentor-mini { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.report-mentor-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

.report-mentor-initials {
  width: 18px; height: 18px; border-radius: 50%;
  background: #6d28d9; color: #fff;
  font-size: 8.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.report-notes-block {
  margin: 0 14px 12px; padding: 8px 10px;
  background: var(--surface); border-radius: 8px;
  font-size: 12px; color: var(--muted); font-style: italic;
}

.session-status-pill {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: 7px; text-transform: uppercase; letter-spacing: .03em;
}

.status-completed { background: #dcfce7; color: #15803d; }
.status-other { background: var(--surface); color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Mentors page
   -------------------------------------------------------------------------- */

.mentor-page-head { margin-bottom: 20px; }
.mentor-page-head h2 { font-family: var(--ff-display); font-size: 19px; font-weight: 800; color: var(--ink); }
.mentor-page-head p { margin-top: 2px; font-size: 13px; color: var(--muted); }

.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.mentor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
  display: flex;
  flex-direction: column;
}

.mentor-card:hover { border-color: var(--ink-3); box-shadow: 0 4px 20px rgba(12, 12, 14, .08); }
.mentor-card-hero { height: 6px; background: linear-gradient(90deg, var(--gold), #e8c56e); }
.mentor-card-body { padding: 18px; flex: 1; }
.mentor-avatar-wrap { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.mentor-main-info { min-width: 0; }

.m-photo, .m-initials { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.m-photo { object-fit: cover; border: 2px solid var(--border); }

.m-initials {
  background: linear-gradient(135deg, #1a1a2e, #3b4a8a);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 800;
}

.m-name { font-family: var(--ff-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.m-featured-star { color: #f59e0b; font-size: 12px; margin-left: 4px; }
.m-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.m-bio { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }

.m-tag {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}

.mentor-links-row { display: flex; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mentor-links-row a { color: var(--ink); font-weight: 600; }

.m-stats { display: flex; gap: 14px; padding: 10px 18px; background: var(--surface); border-top: 1px solid var(--border); }
.m-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m-stat-num { font-family: var(--ff-display); font-size: 16px; font-weight: 800; color: var(--ink); }
.m-stat-lbl { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.m-card-footer { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.mentor-request-btn { flex: 1; }

.pending-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px;
  background: #fef3c7; color: #92400e;
}

.mentor-form-stack { display: flex; flex-direction: column; gap: 16px; }

/* --------------------------------------------------------------------------
   13. M&E (Monitoring, Evaluation & Learning) page
   -------------------------------------------------------------------------- */

.meal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }

.meal-tab {
  padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}

.meal-tab:hover { border-color: var(--primary); color: var(--primary); }
.meal-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.meal-tab .badge { background: rgba(255, 255, 255, .25); padding: 1px 7px; border-radius: 10px; font-size: 11px; }
.meal-tab:not(.active) .badge { background: var(--purple-lt); color: var(--primary); }

.meal-panel { display: none; }
.meal-panel.active { display: block; }

.meal-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.meal-stat { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: center; }
.meal-stat .val { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.meal-stat .lbl { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.meal-stat .sub { font-size: 10px; color: #9ca3af; margin-top: 2px; }

.target-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.target-pill { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.target-pill.met { background: #d1fae5; color: #065f46; }
.target-pill.unmet { background: #fef3c7; color: #92400e; }
.target-pill.warn { background: #fee2e2; color: #991b1b; }

.add-card { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; margin-bottom: 22px; overflow: hidden; }

.add-card-header {
  padding: 14px 20px; background: var(--purple-lt);
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; user-select: none;
}

.add-card-header h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin: 0; flex: 1; }
.add-card-header i.toggle { margin-left: auto; color: var(--primary); transition: transform .2s; }
.add-card-header.open i.toggle { transform: rotate(180deg); }
.add-card-body { display: none; padding: 20px; border-top: 1.5px solid var(--border); }
.add-card-body.open { display: block; }

.data-table-wrap { overflow-x: auto; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th {
  padding: 10px 12px; background: #f9fafb; font-weight: 700; color: var(--ink);
  text-align: left; white-space: nowrap; border-bottom: 1.5px solid var(--border);
}

.data-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

.badge-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-yes { background: #d1fae5; color: #065f46; }
.badge-no { background: #f3f4f6; color: #374151; }
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-ret { background: #ede9fe; color: #5b21b6; }
.badge-m { background: #e0f2fe; color: #0369a1; }
.badge-f { background: #fce7f3; color: #be185d; }
.no-data { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

.dl-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }

.dl-bar .btn-dl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid; text-decoration: none;
}

.btn-dl-csv { background: #fff; border-color: #10b981; color: #059669; }
.btn-dl-csv:hover { background: #f0fdf4; }
.btn-dl-upload { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-dl-upload:hover { background: var(--purple-lt); }
.btn-dl-pdf { background: #fff; border-color: #ef4444; color: #dc2626; }
.btn-dl-pdf:hover { background: #fef2f2; }
.btn-dl-export { background: #fff; border-color: #2563eb; color: #1d4ed8; }
.btn-dl-export:hover { background: #eff6ff; }

.upload-form {
  background: var(--purple-lt); border: 1.5px dashed var(--primary);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; display: none;
}
.upload-form.open { display: block; }

.action-buttons { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
}

.icon-btn-view { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.icon-btn-edit { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.icon-btn-delete { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

.meal-modal-card { width: min(960px, 100%); max-height: 92vh; overflow: auto; }

.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.view-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; background: #f9fafb; }
.view-item span { display: block; font-size: 11px; color: #6b7280; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.view-item strong { display: block; color: #000000; font-size: 13px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   14. Venture Profile tabs
   -------------------------------------------------------------------------- */

.vp-profile-form { display: flex; flex-direction: column; gap: 18px; }

.vp-profile-hero {
  background:
    radial-gradient(circle at top right, rgba(252, 124, 16, .14), transparent 34%),
    linear-gradient(135deg, #000000 0%, #222222 100%);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  overflow: hidden;
  position: relative;
}

.vp-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.vp-profile-hero-left, .vp-profile-hero-actions { position: relative; z-index: 1; }
.vp-profile-hero-left { display: flex; align-items: center; gap: 18px; min-width: 0; }

.vp-profile-hero h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -.025em;
}

.vp-profile-hero p { color: rgba(255, 255, 255, .68); font-size: 14px; max-width: 620px; }
.vp-profile-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.vp-profile-hero-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vp-profile-hero-actions .btn-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.vp-profile-hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }

.vp-profile-logo-box {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden; flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.vp-profile-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.vp-profile-logo-initials { font-family: var(--ff-display); font-size: 34px; font-weight: 900; color: #fdba74; }

.vp-profile-logo-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .72);
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800;
  opacity: 0; transition: opacity .18s ease;
}

.vp-profile-logo-overlay i { font-size: 18px; }
.vp-profile-logo-box:hover .vp-profile-logo-overlay { opacity: 1; }

.vp-profile-tabs-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--sh-sm);
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  z-index: 30;
}

.vp-profile-tab {
  min-height: 42px; padding: 10px 15px; border-radius: 13px;
  background: var(--surface-2); color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.vp-profile-tab:hover { background: #e2e8f0; color: var(--ink); transform: translateY(-1px); }
.vp-profile-tab.active { background: var(--ink); color: #fff; }
.vp-profile-tab.active i { color: var(--gold); }

.vp-profile-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--sh-sm);
  animation: vpTabFade .22s ease;
}

.vp-profile-tab-panel.active { display: block; }

@keyframes vpTabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vp-profile-section-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.vp-profile-section-head h3 { font-family: var(--ff-display); font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.vp-profile-section-head p { font-size: 13px; color: var(--muted); }

.vp-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vp-media-upload { background: var(--surface); border: 1px dashed var(--border-2); border-radius: 16px; padding: 20px; }
.vp-media-upload h4 { font-size: 15px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.vp-media-upload p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.vp-profile-bottom-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 14px; box-shadow: var(--sh-sm);
}

/* --------------------------------------------------------------------------
   15. Sessions page
   -------------------------------------------------------------------------- */

.sessions-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sessions-title { margin: 0; font-family: var(--ff-display); font-size: 19px; font-weight: 800; color: var(--ink); }
.sessions-subtitle { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.sessions-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin-bottom: 22px; }
.sessions-stat-tile { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--sh-sm); }
.sessions-stat-num { font-family: var(--ff-display); font-size: 26px; font-weight: 900; line-height: 1; color: var(--ink); }
.sessions-stat-num span { font-size: 13px; color: var(--muted); }
.sessions-stat-label { margin-top: 5px; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sessions-stat-upcoming .sessions-stat-num { color: #3b82f6; }
.sessions-stat-completed .sessions-stat-num { color: #059669; }
.sessions-stat-cancelled .sessions-stat-num { color: #6b7280; }
.sessions-stat-rating .sessions-stat-num { color: #f59e0b; }

.sessions-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.sessions-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 750; text-decoration: none; color: var(--muted);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.sessions-tab:hover, .sessions-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-1px); }

.sessions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; align-items: stretch; }

.session-grid-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  box-shadow: var(--sh-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.session-grid-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--sh-md); }

.session-card-top { padding: 18px; display: flex; align-items: flex-start; gap: 14px; }

.session-date-box {
  width: 54px; height: 58px; border-radius: 14px;
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.session-date-box.pending { background: var(--gold); color: #111827; }
.session-date-box.done { background: var(--green); }
.session-date-box.dead { background: var(--muted); }

.session-date-day { font-family: var(--ff-display); font-size: 19px; font-weight: 900; line-height: 1; }
.session-date-month { margin-top: 2px; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.session-card-main { flex: 1; min-width: 0; }
.session-mentor-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; min-width: 0; }
.session-mentor-photo, .session-mentor-initials { width: 30px; height: 30px; border-radius: 999px; flex: 0 0 auto; }
.session-mentor-photo { object-fit: cover; border: 1px solid var(--border); }

.session-mentor-initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1a1a2e, #3b4a8a);
  color: #fff; font-size: 10px; font-weight: 800;
}

.session-mentor-text { min-width: 0; display: flex; flex-direction: column; }
.session-mentor-name { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-mentor-org { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.session-card-title { margin: 0 0 8px; font-family: var(--ff-display); font-size: 15px; font-weight: 850; line-height: 1.35; color: var(--ink); }
.session-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 12px; }
.session-meta span { display: inline-flex; align-items: center; gap: 5px; }
.session-meta i { color: var(--gold); }

.session-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }

.session-note-block { padding: 13px 18px; border-top: 1px dashed var(--border); color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.session-note-block strong { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.session-note-block p { margin: 0; }

.session-card-footer { margin-top: auto; padding: 13px 18px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.session-date-full { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; font-weight: 650; }

.session-card-actions { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-cancel-form { display: inline-flex; }

.rate-session-title { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

/* --------------------------------------------------------------------------
   16. Mentor Calendar page — fully namespaced under .mentor-calendar-page
   --------------------------------------------------------------------------
   PREVIOUSLY: this page redefined .btn, .btn-primary, .modal-overlay,
   .form-control, .empty-state, .pagination etc. as bare global selectors
   with raw hex colors (#FF9800, #ff5722) instead of design tokens, which
   silently overrode (or got overridden by, depending on load order) the
   shared component system used by every other page. Every one of those is
   renamed below with an `mc-` prefix and scoped under `.mentor-calendar-page`
   so this page can have its own visual identity without leaking into, or
   being clobbered by, the rest of the app. Update this page's markup to use
   the `mc-` prefixed classes (e.g. class="btn" -> class="mc-btn").
   -------------------------------------------------------------------------- */

.mentor-calendar-page {
  --mc-primary: #ff5722;
  --mc-primary-d: #ff9800;
  --mc-surface: #ffffff;
  --mc-bg: #f8fafc;
  --mc-border: #e5e7eb;
  --mc-muted: #6b7280;
  --mc-ink: #111827;
  --mc-radius: 10px;
  --mc-radius-lg: 14px;
  --mc-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  font-family: 'DM Sans', sans-serif;
  color: var(--mc-ink);
  background: var(--mc-bg);
}

.mentor-calendar-page .mc-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.mentor-calendar-page .mc-page-title { font-size: 22px; font-weight: 800; }
.mentor-calendar-page .mc-page-sub { font-size: 13px; color: var(--mc-muted); margin-top: 3px; }
.mentor-calendar-page .mc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mentor-calendar-page .mc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--mc-radius);
  border: 1.5px solid var(--mc-border);
  background: var(--mc-surface); color: var(--mc-ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}

.mentor-calendar-page .mc-btn:hover { background: var(--mc-primary-d); color: #fff; border-color: var(--mc-primary-d); }
.mentor-calendar-page .mc-btn-primary { background: var(--mc-primary); color: #fff; border-color: var(--mc-primary); }
.mentor-calendar-page .mc-btn-primary:hover { background: var(--mc-primary-d); }
.mentor-calendar-page .mc-btn-success { background: #065f46; color: #fff; border-color: #065f46; }
.mentor-calendar-page .mc-btn-danger { background: #991b1b; color: #fff; border-color: #991b1b; }
.mentor-calendar-page .mc-btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 7px; }
.mentor-calendar-page .mc-btn-icon { padding: 6px 10px; }

.mentor-calendar-page .mc-stat-ribbon { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.mentor-calendar-page .mc-stat-card { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius); padding: 13px 16px; }
.mentor-calendar-page .mc-stat-num { font-size: 26px; font-weight: 800; }
.mentor-calendar-page .mc-stat-lbl { font-size: 10px; color: var(--mc-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.mentor-calendar-page .mc-stat-requested { color: #f59e0b; }
.mentor-calendar-page .mc-stat-upcoming { color: #534ab7; }
.mentor-calendar-page .mc-stat-completed { color: #1d9e75; }
.mentor-calendar-page .mc-stat-cancelled { color: #ef4444; }

.mentor-calendar-page .mc-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.mentor-calendar-page .mc-filter-bar select,
.mentor-calendar-page .mc-filter-bar input[type=month] {
  padding: 7px 11px; border-radius: 8px; border: 1.5px solid var(--mc-border);
  font-size: 13px; background: var(--mc-surface); font-family: inherit; color: var(--mc-ink);
}
.mentor-calendar-page .mc-filter-bar select:focus,
.mentor-calendar-page .mc-filter-bar input:focus { outline: 2px solid var(--mc-primary); outline-offset: 1px; }
.mentor-calendar-page .mc-view-toggle { display: flex; gap: 6px; margin-left: auto; }

.mentor-calendar-page .mc-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 8px; border: 1.5px solid var(--mc-border);
  background: var(--mc-surface); font-size: 12px; font-weight: 600;
  color: var(--mc-muted); text-decoration: none;
}
.mentor-calendar-page .mc-view-btn.active { background: var(--mc-primary); color: #fff; border-color: var(--mc-primary); }

.mentor-calendar-page .mc-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mentor-calendar-page .mc-leg { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--mc-muted); }
.mentor-calendar-page .mc-leg-sq { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.mentor-calendar-page .mc-leg-open { background: #e1f5ee; border: 1px solid #1d9e75; }
.mentor-calendar-page .mc-leg-confirmed { background: #eeedfe; border: 1px solid #7f77dd; }
.mentor-calendar-page .mc-leg-requested { background: #faeeda; border: 1px solid #ef9f27; }
.mentor-calendar-page .mc-leg-completed { background: #eaf3de; border: 1px solid #639922; }
.mentor-calendar-page .mc-leg-cancelled { background: #f1efe8; border: 1px solid #888780; }

.mentor-calendar-page .mc-cal-shell { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius-lg); overflow: hidden; }
.mentor-calendar-page .mc-cal-month-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-cal-month-title { font-size: 15px; font-weight: 700; }
.mentor-calendar-page .mc-cal-month-btns { display: flex; gap: 6px; }
.mentor-calendar-page .mc-cal-header { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-cal-hday { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mc-muted); padding: 8px 0; }
.mentor-calendar-page .mc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.mentor-calendar-page .mc-cal-cell {
  min-height: 92px; padding: 6px;
  border-right: 1px solid var(--mc-border); border-bottom: 1px solid var(--mc-border);
  cursor: pointer; transition: background .1s; position: relative;
}
.mentor-calendar-page .mc-cal-cell:nth-child(7n) { border-right: none; }
.mentor-calendar-page .mc-cal-cell:hover { background: #f5f3ff; }
.mentor-calendar-page .mc-cal-cell.other-month { opacity: .28; pointer-events: none; }
.mentor-calendar-page .mc-cal-cell.weekend { background: #fafafa; }
.mentor-calendar-page .mc-cal-cell.has-avail { border-top: 2.5px solid #1d9e75; }
.mentor-calendar-page .mc-cal-cell.sel-day { background: #f0eeff; outline: 2px solid var(--mc-primary); outline-offset: -2px; }
.mentor-calendar-page .mc-cal-cell.today .mc-day-num-wrap { background: var(--mc-primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }

.mentor-calendar-page .mc-day-num-wrap { font-size: 11px; font-weight: 700; color: var(--mc-muted); margin-bottom: 3px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.mentor-calendar-page .mc-cal-event { font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 1.45; cursor: pointer; }
.mentor-calendar-page .mc-cal-avail-badge { font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; background: #e1f5ee; color: #085041; display: inline-block; margin-bottom: 2px; }
.mentor-calendar-page .mc-cal-avail-dot { font-size: 6px; }

.mentor-calendar-page .mc-cal-layout { display: grid; grid-template-columns: 1fr 290px; gap: 16px; align-items: start; }
.mentor-calendar-page .mc-side-panel { display: flex; flex-direction: column; gap: 14px; }
.mentor-calendar-page .mc-side-card { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius); padding: 14px; }
.mentor-calendar-page .mc-side-card-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mc-muted); margin-bottom: 10px; }
.mentor-calendar-page .mc-side-card-rating { border-color: #f59e0b; }
.mentor-calendar-page .mc-side-card-title-rating { color: #92400e; }
.mentor-calendar-page .mc-btn-rate { background: #fef3c7; color: #92400e; border-color: #f59e0b; }

.mentor-calendar-page .mc-session-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-session-item:last-child { border-bottom: none; }
.mentor-calendar-page .mc-si-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff5722, #7c3aed);
  flex-shrink: 0; object-fit: cover;
}
.mentor-calendar-page .mc-si-avatar-sm { width: 28px; height: 28px; font-size: 10px; }
.mentor-calendar-page .mc-si-body { flex: 1; min-width: 0; }
.mentor-calendar-page .mc-si-title { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mentor-calendar-page .mc-si-title-sm { font-size: 13px; }
.mentor-calendar-page .mc-si-meta { font-size: 11px; color: var(--mc-muted); margin-top: 1px; }
.mentor-calendar-page .mc-si-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

.mentor-calendar-page .mc-slot-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--mc-border); gap: 8px; }
.mentor-calendar-page .mc-slot-item:last-child { border-bottom: none; }
.mentor-calendar-page .mc-slot-time { font-size: 12px; font-weight: 600; color: #085041; }
.mentor-calendar-page .mc-slot-mentor { font-size: 11px; color: var(--mc-muted); }

.mentor-calendar-page .mc-mentor-chips { display: flex; flex-direction: column; gap: 8px; }
.mentor-calendar-page .mc-mentor-chip { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius); background: var(--mc-surface); cursor: pointer; transition: border-color .1s; }
.mentor-calendar-page .mc-mentor-chip:hover { border-color: var(--mc-primary); }
.mentor-calendar-page .mc-mc-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b82f6, #8b5cf6); flex-shrink: 0; object-fit: cover; }
.mentor-calendar-page .mc-mc-body { flex: 1; min-width: 0; }
.mentor-calendar-page .mc-mc-name { font-size: 12px; font-weight: 600; }
.mentor-calendar-page .mc-mc-org { font-size: 10px; color: var(--mc-muted); }
.mentor-calendar-page .mc-mc-btn { padding: 3px 8px; font-size: 10px; }

.mentor-calendar-page .mc-table-wrap { overflow-x: auto; }
.mentor-calendar-page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mentor-calendar-page th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mc-muted); border-bottom: 1.5px solid var(--mc-border); background: #f9fafb; }
.mentor-calendar-page td { padding: 11px 12px; border-bottom: 1px solid var(--mc-border); vertical-align: top; }
.mentor-calendar-page tr:last-child td { border-bottom: none; }
.mentor-calendar-page tr:hover td { background: #fafafa; }
.mentor-calendar-page .mc-td-nowrap-sm { white-space: nowrap; font-size: 12px; }
.mentor-calendar-page .mc-mentor-cell { display: flex; align-items: center; gap: 7px; }
.mentor-calendar-page .mc-mentor-name-sm { font-size: 12px; font-weight: 600; }
.mentor-calendar-page .mc-platform-text { font-size: 12px; }
.mentor-calendar-page .mc-platform-icon { color: var(--mc-muted); margin-right: 3px; }

.mentor-calendar-page .mc-empty-state { text-align: center; padding: 40px 20px; }
.mentor-calendar-page .mc-empty-state i { font-size: 36px; color: var(--mc-border); margin-bottom: 10px; display: block; }
.mentor-calendar-page .mc-empty-state h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.mentor-calendar-page .mc-empty-state p { font-size: 13px; color: var(--mc-muted); }

.mentor-calendar-page .mc-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 9990; align-items: center; justify-content: center; padding: 16px; }
.mentor-calendar-page .mc-modal-overlay.open { display: flex; }
.mentor-calendar-page .mc-modal { background: var(--mc-surface); border-radius: var(--mc-radius-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.mentor-calendar-page .mc-modal-sm { max-width: 420px; }
.mentor-calendar-page .mc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-modal-title { font-size: 16px; font-weight: 700; }
.mentor-calendar-page .mc-modal-close { width: 28px; height: 28px; border-radius: 50%; border: none; background: #f3f4f6; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; color: var(--mc-muted); }
.mentor-calendar-page .mc-modal-close:hover { background: #e5e7eb; }
.mentor-calendar-page .mc-modal-body { padding: 18px 20px; }
.mentor-calendar-page .mc-modal-footer { padding: 12px 20px; border-top: 1px solid var(--mc-border); display: flex; gap: 8px; justify-content: flex-end; }

.mentor-calendar-page .mc-form-group { margin-bottom: 14px; }
.mentor-calendar-page .mc-form-group label { font-size: 12px; font-weight: 600; color: var(--mc-muted); display: block; margin-bottom: 5px; }
.mentor-calendar-page .mc-form-control { width: 100%; padding: 8px 11px; border: 1.5px solid var(--mc-border); border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--mc-ink); background: var(--mc-surface); }
.mentor-calendar-page .mc-form-control:focus { outline: 2px solid var(--mc-primary); outline-offset: 1px; border-color: var(--mc-primary); }
.mentor-calendar-page .mc-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mentor-calendar-page .mc-form-grid-2 .full { grid-column: 1 / -1; }
.mentor-calendar-page .mc-form-hint { font-size: 11px; color: var(--mc-muted); margin-top: 4px; }

.mentor-calendar-page .mc-detail-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mc-border); font-size: 13px; }
.mentor-calendar-page .mc-detail-row:last-child { border-bottom: none; }
.mentor-calendar-page .mc-detail-lbl { font-size: 12px; color: var(--mc-muted); width: 90px; flex-shrink: 0; }
.mentor-calendar-page .mc-detail-val { flex: 1; }
.mentor-calendar-page .mc-detail-sm { font-size: 12px; }
.mentor-calendar-page .mc-detail-note { font-size: 12px; background: #f9fafb; border-radius: 6px; padding: 8px; }
.mentor-calendar-page .mc-meeting-link-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #ede9fe; color: var(--mc-primary); border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; }
.mentor-calendar-page .mc-meeting-link-badge:hover { background: #ddd6fe; }
.mentor-calendar-page .mc-meeting-link-sm { margin-top: 4px; font-size: 10px; }

.mentor-calendar-page .mc-countdown { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #fef3c7; color: #92400e; }
.mentor-calendar-page .mc-countdown.soon { background: #fee2e2; color: #991b1b; }

.mentor-calendar-page .mc-section-divider { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mc-muted); margin: 16px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--mc-border); }
.mentor-calendar-page .mc-list-shell { background: var(--mc-surface); border: 1.5px solid var(--mc-border); border-radius: var(--mc-radius-lg); overflow: hidden; }

.mentor-calendar-page .mc-status-requested { background: #faeeda; color: #633806; }
.mentor-calendar-page .mc-status-scheduled { background: #e6f1fb; color: #185fa5; }
.mentor-calendar-page .mc-status-confirmed { background: #eeedfe; color: #3c3489; }
.mentor-calendar-page .mc-status-completed { background: #eaf3de; color: #27500a; }
.mentor-calendar-page .mc-status-cancelled { background: #f1efe8; color: #5f5e5a; }
.mentor-calendar-page .mc-status-no-show { background: #faece7; color: #993c1d; }
.mentor-calendar-page .mc-status-muted { background: #f1efe8; color: #5f5e5a; }

.mentor-calendar-page .mc-muted-sm { font-size: 12px; color: var(--mc-muted); }
.mentor-calendar-page .mc-muted-xs { font-size: 11px; color: var(--mc-muted); }
.mentor-calendar-page .mc-action-wrap { display: flex; gap: 5px; flex-wrap: wrap; }
.mentor-calendar-page .mc-inline-form { display: inline; }

.mentor-calendar-content { padding: 24px; max-width: 1200px; margin: 0 auto; }
.mentor-calendar-page .mc-btn-clear { color: #ef4444; }

@media (max-width: 880px) {
  .mentor-calendar-page .mc-cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mentor-calendar-page .mc-meal-stats,
  .mentor-calendar-page .mc-stat-ribbon { grid-template-columns: repeat(2, 1fr); }
  .mentor-calendar-page .mc-form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .mentor-calendar-page .mc-form-grid-2 { grid-template-columns: 1fr; }
  .mentor-calendar-page .mc-form-grid-2 .full { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   17. Responsive — consolidated. The original file had ~8 separate @media
   blocks for the same breakpoints scattered across different sections,
   several of them re-targeting the same selectors with different rules.
   They are merged here, ordered from largest to smallest breakpoint.
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --sidebar-w: 236px; }
  .vp-content { padding: 22px; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .vp-sidebar { width: min(86vw, 320px); transform: translateX(-105%); box-shadow: 24px 0 70px rgba(15, 23, 42, .34); }
  .vp-sidebar.open { transform: translateX(0); }
  .vp-sidebar-close { display: inline-grid; place-items: center; }
  .vp-main { margin-left: 0 !important; width: 100%; }
  .vp-topbar { height: auto; min-height: 62px; padding: 10px 16px; }
  .vp-menu-btn { display: inline-grid; }
  .vp-page-title { max-width: 52vw; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp-page-subtitle { display: block; max-width: 52vw; }
  .vp-content { padding: 18px 16px 28px; }
  .vp-flash { margin: 14px 16px 20px; }

  .dash-welcome, .team-hero, .panel-between, .row-flex, .inv-row,
  .card-header, .tm-footer, .dm-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-welcome { padding: 24px 22px; }
  .dash-welcome-cohort { width: fit-content; }

  .form-grid-2, .tm-field-grid, .dash-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tab { justify-content: center; text-align: center; }

  .events-grid, .grid-wrap {
    grid-template-columns: 1fr !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .toolbar, .results-hd, .flash-zone, .results-bar, .pagination {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .toolbar-inner { align-items: stretch; }
  .search-wrap, .type-sel, .tb-btn, .btn, .btn-reg, .btn-cancel { width: 100%; }
  .tab-group, .view-toggle { width: 100%; overflow-x: auto; }
}

@media (max-width: 860px) {
  .vp-profile-hero { flex-direction: column; align-items: flex-start; }
  .vp-profile-hero-actions { width: 100%; justify-content: flex-end; }
  .vp-profile-tabs-wrap { position: static; }
  .vp-media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 20px 28px; }
  .hero-kpis, .hero-stats { gap: 16px; }
  .hero-kpi, .hero-stat { padding-right: 16px; margin-right: 16px; }
  .hero-wordmark { font-size: 80px; }
  .toolbar { padding: 12px 20px; }
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .view-toggle, .type-sel { width: 100%; }
  .vt-btn { flex: 1; text-align: center; }
  .results-bar { padding: 14px 20px 0; }
  .grid-wrap { padding: 16px 20px 48px; grid-template-columns: 1fr; }
  .pagination { padding: 0 20px 48px; }
}

@media (max-width: 740px) {
  .vp-topbar-right { display: none; }
  .sessions-grid { grid-template-columns: 1fr; }
  .session-card-top { flex-wrap: wrap; }
  .session-badges { width: 100%; flex-direction: row; align-items: flex-start; }
  .session-card-footer, .session-card-actions { align-items: stretch; flex-direction: column; }
  .session-card-actions .btn, .session-cancel-form, .session-cancel-form .btn { width: 100%; }
}

@media (max-width: 640px) {
  .vp-sidebar { width: min(92vw, 310px); }
  .vp-sidebar-brand { min-height: 68px; padding: 16px; }
  .vp-venture-info { padding: 14px 16px; }
  .vp-nav { padding: 12px 10px; }
  .vp-nav-label { padding-top: 10px; }
  .vp-nav a, .vp-nav-link { min-height: 44px; padding: 10px 11px; }
  .vp-sidebar-footer { padding: 12px; }
  .vp-topbar { gap: 10px; }
  .vp-topbar-left { min-width: 0; flex: 1; }
  .vp-topbar-right { gap: 8px; flex-shrink: 0; }
  .vp-user-chip { padding: 4px; }
  .vp-user-chip-name { display: none; }
  .vp-notif-btn, .vp-menu-btn { width: 36px; height: 36px; }
  .vp-page-title { max-width: 44vw; font-size: 15px; }
  .vp-page-subtitle { max-width: 44vw; font-size: 11.5px; }
  .vp-content { padding: 14px 12px 24px; }
  .vp-flash { margin: 12px 12px 18px; }

  .card-body, .tab-panel, .tm-body { padding: 16px; }
  .card-header, .tm-header { padding: 15px 16px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-tile { padding: 16px; }
  .dashboard-tabs { grid-template-columns: 1fr; }

  .dash-welcome, .team-hero { padding: 22px 18px; border-radius: 14px; }
  .dash-welcome-text h2, .team-hero h1 { font-size: 22px; }

  .hero { padding: 30px 16px 26px; }
  .hero-kpis { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero-kpi { margin: 0; padding: 0; border-right: 0; }

  .modal-overlay, .team-modal-overlay, .vp-modal-overlay, .doc-modal-overlay { padding: 10px; }
  .detail-modal, .team-modal, .ci-modal { max-height: 94vh; border-radius: 16px; }
  .dm-head, .dm-body, .dm-footer { padding-left: 18px; padding-right: 18px; }

  .photo-upload-zone, .founder-toggle-wrap { flex-direction: column; align-items: flex-start; }

  .form-grid-2, .tm-field-grid, .team-grid { grid-template-columns: 1fr; }
  .dm-head, .dm-body, .dm-footer, .tm-header, .tm-body, .tm-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .tm-footer { flex-direction: column; align-items: stretch; }
  .tm-footer-right, .tm-footer-left { width: 100%; justify-content: stretch; }
  .tm-footer-right .btn, .tm-footer-left .btn { flex: 1; }

  .vp-profile-hero-left { flex-direction: column; align-items: flex-start; }
  .vp-profile-logo-box { width: 88px; height: 88px; border-radius: 20px; }
  .vp-profile-tab { width: 100%; justify-content: flex-start; }
  .vp-profile-tab-panel { padding: 18px; }
  .vp-profile-bottom-actions { flex-direction: column; }
  .vp-profile-bottom-actions .btn { width: 100%; }

  .vp-logout-modal { padding: 16px; }
  .vp-logout-modal-card { width: 100%; border-radius: 20px; padding: 28px 20px 24px; }
  .vp-logout-modal-actions { gap: 10px; }
  .vp-btn { flex: 1; min-width: 0; }

  #uploadModal, #changeRequestModal, #versionModal,
  .doc-modal-overlay {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }
  .vp-modal, .doc-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
  }
  .vp-modal-footer, .doc-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .vp-modal-footer .btn, .doc-modal-footer .btn {
    width: 100%;
  }

  .doc-card-footer { align-items: flex-start; gap: 10px; flex-direction: column; }
}

@media (max-width: 560px) {
  .vp-logout-modal { padding: 16px; }
}

@media (max-width: 500px) {
  .form-grid-2, .tm-field-grid { grid-template-columns: 1fr; }
  .form-grid-2 .full, .tm-field-grid .full { grid-column: 1; }
}

@media (max-width: 480px) {
  .vp-page-title { font-size: 16px; }
  .photo-upload-zone { align-items: flex-start; }
  .ecard-footer, .dm-footer { flex-direction: column; }
  .btn-icon, .btn-reg, .btn-cancel { width: 100%; }
}

.vp-sidebar-brand{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:18px 20px;

}

.vp-brand-link{

    display:flex;

    align-items:center;

    text-decoration:none;

}

.vp-brand-logo{

    width:100%;

    max-width:220px;

    max-height:70px;

    object-fit:contain;

    object-position:left center;

}

.vp-brand-fallback{

    display:flex;

    align-items:center;

    gap:12px;

    color:#fff;

    font-weight:700;

}

.vp-brand-fallback i{

    color:#fc7c10;

    font-size:26px;

}

/* ======================== INTERVIEW PAGES ========================== */
/* -------------------------------------------
   TOKENS
------------------------------------------- */
body:has(.pin-card, .prog-track) {
  --font:    "Poppins", system-ui, sans-serif;
  --serif:   "Lora", Georgia, serif;
  --ink:     #0c0f1a;
  --mid:     #4b5563;
  --soft:    #9ca3af;
  --border:  #e5e7eb;
  --bg:      #f9fafb;
  --surface: #ffffff;
  --accent:  #fc7f10;
  --a2:      #ff9800;
  --a-l:     #eff6ff;
  --green:   #15803d;
  --g-l:     #dcfce7;
  --amber:   #b45309;
  --a-am:    #fef3c7;
  --red:     #b91c1c;
  --r-l:     #fee2e2;
  --r:       12px;
  --rlg:     20px;
  --ease:    cubic-bezier(.4,0,.2,1);
  --spring:  cubic-bezier(.34,1.56,.64,1);
}

body:has(.pin-card, .prog-track) *,
body:has(.pin-card, .prog-track) *::before,
body:has(.pin-card, .prog-track) *::after { box-sizing: border-box; margin: 0; padding: 0; }
body:has(.pin-card, .prog-track) { scroll-behavior: smooth; }
body:has(.pin-card, .prog-track) {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

/* -- Progress bar -- */
body:has(.pin-card, .prog-track) .prog-track { position:fixed; top:0; left:0; right:0; height:3px; background:rgba(0,0,0,.08); z-index:100; }
body:has(.pin-card, .prog-track) .prog-fill { height:100%; background:var(--a2); transition:width .4s var(--ease); border-radius:0 2px 2px 0; }

/* -- Shell -- */
body:has(.pin-card, .prog-track) .shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* -- Cover hero -- */
body:has(.pin-card, .prog-track) .cover {
  background: var(--ink);
  padding: 48px 32px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
body:has(.pin-card, .prog-track) .cover::before {
  content:"";
  position:absolute; top:-60px; right:-60px;
  width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle, rgba(26,115,232,.2) 0%, transparent 65%);
  pointer-events:none;
}
body:has(.pin-card, .prog-track) .cover::after {
  content:"";
  position:absolute; bottom:0; left:0; right:0; height:40px;
  background:var(--bg);
  border-radius:24px 24px 0 0;
}
body:has(.pin-card, .prog-track) .cover-inner { position:relative; z-index:2; padding-bottom:52px; }
body:has(.pin-card, .prog-track) .cover-badge {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  color:#fff; padding:5px 13px; border-radius:999px;
  font-size:.68rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  margin-bottom:16px;
}
body:has(.pin-card, .prog-track) .cover h1 {
  font-family:var(--serif);
  font-size:clamp(1.7rem,5vw,2.6rem);
  font-weight:600; font-style:italic;
  color:#fff; line-height:1.15;
  margin-bottom:10px;
}
body:has(.pin-card, .prog-track) .cover-desc { font-size:.88rem; color:rgba(255,255,255,.65); line-height:1.65; max-width:520px; font-weight:300; margin-bottom:18px; }
body:has(.pin-card, .prog-track) .cover-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:.76rem; color:rgba(255,255,255,.5); }
body:has(.pin-card, .prog-track) .cover-meta span { display:flex; align-items:center; gap:5px; }

/* -- PIN gate -- */
body:has(.pin-card, .prog-track) .pin-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--rlg);
  padding:40px 36px;
  max-width:380px;
  margin:32px auto;
  text-align:center;
  box-shadow:0 8px 32px rgba(0,0,0,.1);
  animation:cardIn .5s var(--spring);
}
@keyframes cardIn { from{opacity:0;transform:translateY(20px) scale(.97)} to{opacity:1;transform:none} }
body:has(.pin-card, .prog-track) .pin-card h2 { font-family:var(--serif); font-style:italic; font-size:1.4rem; margin-bottom:8px; }
body:has(.pin-card, .prog-track) .pin-card p { font-size:.82rem; color:var(--mid); margin-bottom:20px; line-height:1.6; }
body:has(.pin-card, .prog-track) .pin-input {
  width:100%; padding:14px 16px; border:2px solid var(--border);
  border-radius:var(--r); font-size:1.2rem; font-family:var(--font);
  text-align:center; letter-spacing:.15em; outline:none;
  transition:border-color .15s; color:var(--ink); background:var(--surface);
}
body:has(.pin-card, .prog-track) .pin-input:focus { border-color:var(--a2); box-shadow:0 0 0 4px rgba(26,115,232,.1); }
body:has(.pin-card, .prog-track) .pin-error { color:var(--red); font-size:.78rem; margin-top:8px; }

/* -- Interviewer info card -- */
body:has(.pin-card, .prog-track) .info-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--rlg);
  padding:24px 28px;
  margin-bottom:20px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
body:has(.pin-card, .prog-track) .info-card h3 { font-size:.82rem; font-weight:700; color:var(--mid); margin-bottom:14px; letter-spacing:.05em; text-transform:uppercase; }
body:has(.pin-card, .prog-track) .info-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
body:has(.pin-card, .prog-track) .info-group { display:flex; flex-direction:column; gap:4px; }
body:has(.pin-card, .prog-track) .info-label { font-size:.72rem; font-weight:700; color:var(--soft); }
body:has(.pin-card, .prog-track) .info-control {
  padding:9px 12px; border:1px solid var(--border);
  border-radius:var(--r); font-size:.84rem; font-family:var(--font);
  color:var(--ink); background:var(--surface); outline:none; width:100%;
  transition:border-color .15s;
}
body:has(.pin-card, .prog-track) .info-control:focus { border-color:var(--a2); box-shadow:0 0 0 3px rgba(26,115,232,.1); }
body:has(.pin-card, .prog-track) .info-control.err { border-color:var(--red); }
body:has(.pin-card, .prog-track) textarea.info-control { resize:vertical; }
body:has(.pin-card, .prog-track) .info-req { color:var(--red); }

/* -- Section block -- */
body:has(.pin-card, .prog-track) .section-block {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--rlg);
  overflow:hidden;
  margin-bottom:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  animation:fadeUp .4s var(--ease) both;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
body:has(.pin-card, .prog-track) .section-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 22px;
  background:var(--ink); color:#fff;
  cursor:pointer; user-select:none;
  position:sticky; top:3px; z-index:10;
}
body:has(.pin-card, .prog-track) .section-head-left { display:flex; align-items:center; gap:10px; }
body:has(.pin-card, .prog-track) .section-num {
  width:28px; height:28px; border-radius:50%;
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  font-size:.72rem; font-weight:800; color:#fff; flex-shrink:0;
}
body:has(.pin-card, .prog-track) .section-title { font-size:.92rem; font-weight:700; color:#fff; }
body:has(.pin-card, .prog-track) .section-subtitle { font-size:.72rem; color:rgba(255,255,255,.5); margin-top:1px; }
body:has(.pin-card, .prog-track) .section-toggle-icon { transition:transform .2s; color:rgba(255,255,255,.5); font-size:.82rem; }
body:has(.pin-card, .prog-track) .section-head.open .section-toggle-icon { transform:rotate(180deg); }
body:has(.pin-card, .prog-track) .section-completion {
  width:20px; height:20px; border-radius:50%;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  font-size:.62rem; color:rgba(255,255,255,.5);
  transition:all .2s;
}
body:has(.pin-card, .prog-track) .section-completion.done { background:#dcfce7; border-color:#86efac; color:#15803d; }

body:has(.pin-card, .prog-track) .section-body { padding:20px 22px; display:none; }
body:has(.pin-card, .prog-track) .section-body.open { display:block; }

/* -- Question group -- */
body:has(.pin-card, .prog-track) .q-group { margin-bottom:18px; }
body:has(.pin-card, .prog-track) .q-group:last-child { margin-bottom:0; }
body:has(.pin-card, .prog-track) .q-label {
  font-size:.82rem; font-weight:600; color:var(--ink);
  margin-bottom:6px; display:flex; gap:5px; align-items:flex-start;
  line-height:1.4;
}
body:has(.pin-card, .prog-track) .q-req-dot { color:var(--red); font-size:.8rem; flex-shrink:0; }

body:has(.pin-card, .prog-track) .q-control {
  width:100%; padding:11px 14px;
  border:1.5px solid var(--border);
  border-radius:var(--r); font-size:.86rem;
  font-family:var(--font); color:var(--ink);
  background:var(--surface); outline:none;
  transition:border-color .15s, box-shadow .15s;
}
body:has(.pin-card, .prog-track) .q-control:focus { border-color:var(--a2); box-shadow:0 0 0 3px rgba(26,115,232,.1); }
body:has(.pin-card, .prog-track) .q-control.err { border-color:var(--red); box-shadow:0 0 0 3px rgba(185,28,28,.08); }
body:has(.pin-card, .prog-track) textarea.q-control { resize:vertical; min-height:88px; line-height:1.6; }
body:has(.pin-card, .prog-track) select.q-control { cursor:pointer; }

/* Radio + checkbox */
body:has(.pin-card, .prog-track) .choice-list { display:flex; flex-direction:column; gap:8px; }
body:has(.pin-card, .prog-track) .choice-opt {
  display:flex; align-items:center; gap:10px;
  padding:11px 14px; border:1.5px solid var(--border);
  border-radius:var(--r); cursor:pointer; transition:all .15s;
  font-size:.84rem; font-weight:500; color:var(--ink);
}
body:has(.pin-card, .prog-track) .choice-opt:hover { border-color:var(--a2); background:var(--a-l); }
body:has(.pin-card, .prog-track) .choice-opt.selected { border-color:var(--a2); background:var(--a-l); }
body:has(.pin-card, .prog-track) .choice-opt input { accent-color:var(--a2); }

/* -- Section nav sidebar (desktop) -- */
body:has(.pin-card, .prog-track) .layout {
  display:grid;
  grid-template-columns:200px 1fr;
  gap:24px;
  align-items:start;
  max-width:1000px;
  margin:0 auto;
  padding:0 16px 80px;
}
body:has(.pin-card, .prog-track) .side-nav {
  position:sticky; top:16px;
  display:flex; flex-direction:column; gap:4px;
  padding-top:8px;
}
body:has(.pin-card, .prog-track) .side-nav-item {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:var(--r);
  font-size:.76rem; font-weight:600; color:var(--mid);
  cursor:pointer; transition:all .15s; border:none; background:none;
  text-align:left;
}
body:has(.pin-card, .prog-track) .side-nav-item:hover { background:var(--a-l); color:var(--a2); }
body:has(.pin-card, .prog-track) .side-nav-item.active { background:var(--a-l); color:var(--a2); }
body:has(.pin-card, .prog-track) .side-nav-item.done { color:var(--green); }
body:has(.pin-card, .prog-track) .side-nav-item .nav-dot {
  width:6px; height:6px; border-radius:50%;
  background:currentColor; flex-shrink:0; opacity:.5;
}
body:has(.pin-card, .prog-track) .side-nav-item.done .nav-dot { opacity:1; }

/* -- Bottom bar -- */
body:has(.pin-card, .prog-track) .bottom-bar {
  position:fixed; bottom:0; left:0; right:0;
  background:rgba(255,255,255,.94); backdrop-filter:blur(12px);
  border-top:1px solid var(--border);
  padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  z-index:50;
  box-shadow:0 -4px 20px rgba(0,0,0,.08);
}
body:has(.pin-card, .prog-track) .bottom-progress { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
body:has(.pin-card, .prog-track) .bottom-prog-text { font-size:.74rem; color:var(--soft); white-space:nowrap; }
body:has(.pin-card, .prog-track) .bottom-prog-track { flex:1; height:4px; background:var(--border); border-radius:2px; overflow:hidden; }
body:has(.pin-card, .prog-track) .bottom-prog-fill { height:100%; background:var(--a2); border-radius:2px; transition:width .4s var(--ease); }

/* -- Buttons -- */
body:has(.pin-card, .prog-track) .btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:11px 22px; border-radius:var(--r);
  font-size:.82rem; font-weight:700; font-family:var(--font);
  cursor:pointer; border:1.5px solid transparent;
  transition:all .15s; white-space:nowrap; text-decoration:none;
}
body:has(.pin-card, .prog-track) .btn-primary { background:var(--a2); color:#fff; }
body:has(.pin-card, .prog-track) .btn-primary:hover { background:var(--accent); }
body:has(.pin-card, .prog-track) .btn-secondary { background:var(--surface); color:var(--mid); border-color:var(--border); }
body:has(.pin-card, .prog-track) .btn-secondary:hover { border-color:var(--a2); color:var(--a2); }
body:has(.pin-card, .prog-track) .btn-lg { padding:14px 32px; font-size:.88rem; border-radius:999px; }

/* -- Thank you -- */
body:has(.pin-card, .prog-track) .thankyou {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:40px 20px;
}
body:has(.pin-card, .prog-track) .ty-card {
  background:var(--surface); border-radius:var(--rlg);
  padding:56px 44px; max-width:500px; width:100%;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.1);
  animation:cardIn .6s var(--spring);
}
body:has(.pin-card, .prog-track) .ty-icon {
  width:80px; height:80px; border-radius:50%;
  background:var(--g-l); border:2px solid #86efac;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 24px; font-size:2rem; color:var(--green);
  animation:popIn .5s .15s var(--spring) both;
}
@keyframes popIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
body:has(.pin-card, .prog-track) .ty-card h2 { font-family:var(--serif); font-style:italic; font-size:2rem; margin-bottom:10px; }
body:has(.pin-card, .prog-track) .ty-card p { color:var(--mid); font-size:.9rem; line-height:1.7; font-weight:300; }

@media(max-width:680px) {
  body:has(.pin-card, .prog-track) .layout { grid-template-columns:1fr; }
  body:has(.pin-card, .prog-track) .side-nav { display:none; }
  body:has(.pin-card, .prog-track) .cover { padding:32px 18px 0; }
  body:has(.pin-card, .prog-track) .cover h1 { font-size:1.6rem; }
  body:has(.pin-card, .prog-track) .section-body { padding:16px 16px; }
  body:has(.pin-card, .prog-track) .bottom-prog-text { display:none; }
}

/* ======================== SURVEY PAGES ============================= */
/* --- Tokens --------------------------------------------- */
body:has(.survey-shell) {
  --accent:       #fc7c10;
  --accent-glow:  color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-soft:  color-mix(in srgb, var(--accent) 10%, white);
  --surface:      #ffffff;
  --ink:          #0d1117;
  --ink-mid:      #4a5568;
  --ink-soft:     #94a3b8;
  --border:       #e2e8f0;
  --bg:           #f0f4f8;
  --radius:       18px;
  --radius-sm:    12px;
  --font:         "Outfit", system-ui, sans-serif;
  --font-display: "Poppins", Georgia, serif;
  --ease:         cubic-bezier(.4, 0, .2, 1);
  --ease-spring:  cubic-bezier(.34, 1.56, .64, 1);
}

/* --- Reset ------------------------------------------------ */
body:has(.survey-shell) *,
body:has(.survey-shell) *::before,
body:has(.survey-shell) *::after { box-sizing: border-box; margin: 0; padding: 0; }
body:has(.survey-shell) { scroll-behavior: smooth; }
body:has(.survey-shell) {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Noise texture overlay --------------------------------- */
body:has(.survey-shell)::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Progress bar (top) ------------------------------------ */
body:has(.survey-shell) .progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 200;
}
body:has(.survey-shell) .progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .5s var(--ease);
  border-radius: 0 2px 2px 0;
}

/* --- Top bar ------------------------------------------------ */
body:has(.survey-shell) .survey-topbar {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 100;
}
body:has(.survey-shell) .topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
}
body:has(.survey-shell) .topbar-brand .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
body:has(.survey-shell) .topbar-steps {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
body:has(.survey-shell) .topbar-steps strong { color: var(--accent); }

/* --- Main layout --------------------------------------------- */
body:has(.survey-shell) .survey-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 59px;
}

/* --- Hero header ----------------------------------------------
   Edge-to-edge banner: title + badge only. Long-form description
   never sits on top of the image/color â€” it lives inside the
   start card below (.start-card-intro), on a plain readable
   surface.
------------------------------------------------------------- */
body:has(.survey-shell) .survey-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

/* Color header */
body:has(.survey-shell) .hero-color-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
}
body:has(.survey-shell) .hero-color-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(255,255,255,.12), transparent),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(0,0,0,.18), transparent);
}

/* Decorative circles */
body:has(.survey-shell) .hero-deco {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
}
body:has(.survey-shell) .hero-deco-1 { width: 340px; height: 340px; top: -120px; right: -80px; }
body:has(.survey-shell) .hero-deco-2 { width: 180px; height: 180px; bottom: -40px; left: 60px; }
body:has(.survey-shell) .hero-deco-3 { width: 80px; height: 80px; top: 40px; right: 200px; background: rgba(255,255,255,.06); }

/* Image header */
body:has(.survey-shell) .hero-image-bg {
  position: absolute;
  inset: 0;
}
body:has(.survey-shell) .hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body:has(.survey-shell) .hero-image-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

body:has(.survey-shell) .hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px 48px;
  width: 100%;
  max-width: 820px;
}
body:has(.survey-shell) .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
body:has(.survey-shell) .hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

/* --- Start card intro ------------------------------------------
   Description / welcome text now lives inside the start card
   itself (above "Ready to begin?"), separated by a divider,
   instead of being a separate floating card.
------------------------------------------------------------- */
body:has(.survey-shell) .start-card-intro {
  text-align: left;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
body:has(.survey-shell) .start-card-intro p {
  color: var(--ink-mid);
  font-size: .95rem;
  line-height: 1.75;
  font-weight: 300;
}
body:has(.survey-shell) .start-card-intro p br + br {
  /* Collapse a run of consecutive <br><br> (blank line from the
     source text) down to a single paragraph-sized gap instead of
     stacking full line-heights on top of each other. */
  content: "";
  display: block;
  margin-top: .5em;
}

/* --- Start screen ------------------------------------------- */
body:has(.survey-shell) .start-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 0;
}
body:has(.survey-shell) .start-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 48px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 0 0 1px var(--border);
  animation: fadeUp .6s var(--ease-spring) forwards;
}
body:has(.survey-shell) .start-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 10px;
}
body:has(.survey-shell) .start-card p {
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 28px;
}
body:has(.survey-shell) .start-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
body:has(.survey-shell) .start-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
body:has(.survey-shell) .start-meta-item i { color: var(--accent); }

/* --- Step-through form ---------------------------------------- */
body:has(.survey-shell) #surveyForm {
  display: none;
  flex: 1;
  flex-direction: column;
}
body:has(.survey-shell) #surveyForm.active { display: flex; }

body:has(.survey-shell) .step-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
}

body:has(.survey-shell) .step {
  display: none;
  width: 100%;
  max-width: 800px;
  animation: stepIn .45s var(--ease-spring) forwards;
}
body:has(.survey-shell) .step.active { display: block; }
body:has(.survey-shell) .step.exit { animation: stepOut .3s var(--ease) forwards; }

@keyframes stepIn  {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
@keyframes stepOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

body:has(.survey-shell) .step-num {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
body:has(.survey-shell) .step-num span {
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
}
body:has(.survey-shell) .step-section-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
body:has(.survey-shell) .step-question {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
}
body:has(.survey-shell) .step-help {
  color: var(--ink-mid);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
}

/* --- Input styles ---------------------------------------------- */
body:has(.survey-shell) .field-wrap { margin-bottom: 8px; }

body:has(.survey-shell) .field-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 1.05rem;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
body:has(.survey-shell) .field-input::placeholder { color: var(--ink-soft); }
body:has(.survey-shell) .field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
body:has(.survey-shell) textarea.field-input { resize: vertical; min-height: 130px; line-height: 1.6; }
body:has(.survey-shell) select.field-input { cursor: pointer; }

/* Info grid (respondent) */
body:has(.survey-shell) .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
body:has(.survey-shell) .info-grid .field-wrap { margin: 0; }
body:has(.survey-shell) .field-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-mid);
  letter-spacing: .03em;
  margin-bottom: 6px;
  display: block;
}
body:has(.survey-shell) .req-dot { color: var(--accent); }

/* --- Choice options ---------------------------------------------- */
body:has(.survey-shell) .choice-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body:has(.survey-shell) .choice-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  background: var(--surface);
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink);
  user-select: none;
}
body:has(.survey-shell) .choice-opt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
body:has(.survey-shell) .choice-opt input[type=radio],
body:has(.survey-shell) .choice-opt input[type=checkbox] { display: none; }

body:has(.survey-shell) .choice-opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

body:has(.survey-shell) .choice-marker {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  transition: all .18s;
  background: var(--bg);
}
body:has(.survey-shell) .choice-opt.selected .choice-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

body:has(.survey-shell) .choice-letter {
  font-size: .68rem;
  font-weight: 800;
  color: var(--ink-soft);
}
body:has(.survey-shell) .choice-opt.selected .choice-letter { display: none; }

/* --- Yes / No big buttons ------------------------------------------ */
body:has(.survey-shell) .yesno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
body:has(.survey-shell) .yesno-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s var(--ease-spring);
  background: var(--surface);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}
body:has(.survey-shell) .yesno-btn i { font-size: 1.6rem; transition: transform .2s var(--ease-spring); }
body:has(.survey-shell) .yesno-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
body:has(.survey-shell) .yesno-btn input { display: none; }
body:has(.survey-shell) .yesno-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}
body:has(.survey-shell) .yesno-btn.selected i { transform: scale(1.2); }

/* --- Rating / scale -------------------------------------------------- */
body:has(.survey-shell) .scale-wrap { padding: 8px 0; }
body:has(.survey-shell) .scale-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
body:has(.survey-shell) .scale-bubble {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s var(--ease-spring);
  background: var(--surface);
  color: var(--ink-mid);
  user-select: none;
}
body:has(.survey-shell) .scale-bubble:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}
body:has(.survey-shell) .scale-bubble.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: scale(1.1);
}
body:has(.survey-shell) .scale-bubble input { display: none; }

body:has(.survey-shell) .scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Rating stars */
body:has(.survey-shell) .stars-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
body:has(.survey-shell) .star-btn {
  font-size: 2rem;
  cursor: pointer;
  color: var(--border);
  transition: color .15s, transform .15s var(--ease-spring);
  user-select: none;
}
body:has(.survey-shell) .star-btn.lit { color: var(--accent); }
body:has(.survey-shell) .star-btn:hover { transform: scale(1.15); }
body:has(.survey-shell) .star-btn input { display: none; }

/* --- File upload ------------------------------------------------------ */
body:has(.survey-shell) .upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: all .2s var(--ease);
}
body:has(.survey-shell) .upload-zone:hover,
body:has(.survey-shell) .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
body:has(.survey-shell) .upload-zone.error-zone {
  border-color: #dc2626;
  background: #fef2f2;
}
body:has(.survey-shell) .upload-zone-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
body:has(.survey-shell) .upload-zone-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: .95rem;
}
body:has(.survey-shell) .upload-zone-hint {
  font-size: .8rem;
  color: var(--ink-soft);
}
body:has(.survey-shell) .upload-constraints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
body:has(.survey-shell) .upload-constraint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-mid);
  font-size: .74rem;
  font-weight: 700;
}

body:has(.survey-shell) .file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
body:has(.survey-shell) .file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
body:has(.survey-shell) .file-item-icon,
body:has(.survey-shell) .file-item-thumb {
  width: 38px; height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  object-fit: cover;
}
body:has(.survey-shell) .file-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
body:has(.survey-shell) .file-item-info { flex: 1; min-width: 0; }
body:has(.survey-shell) .file-item-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body:has(.survey-shell) .file-item-size {
  font-size: .76rem;
  color: var(--ink-soft);
}
body:has(.survey-shell) .file-item-remove {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
body:has(.survey-shell) .file-item-remove:hover { background: #fee2e2; color: #dc2626; }

/* --- Navigation footer ----------------------------------------------- */
body:has(.survey-shell) .step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 32px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
body:has(.survey-shell) .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all .2s var(--ease-spring);
  white-space: nowrap;
}
body:has(.survey-shell) .btn-back {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
}
body:has(.survey-shell) .btn-back:hover { border-color: var(--ink-mid); color: var(--ink); }
body:has(.survey-shell) .btn-next {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
body:has(.survey-shell) .btn-next:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 28px var(--accent-glow); }
body:has(.survey-shell) .btn-next:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

body:has(.survey-shell) .nav-hint {
  font-size: .72rem;
  color: var(--ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
body:has(.survey-shell) .kbd {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: .7rem;
  color: var(--ink-mid);
}

/* --- Error / alert states ---------------------------------------------- */
body:has(.survey-shell) .field-error {
  font-size: .78rem;
  font-weight: 600;
  color: #dc2626;
  margin-top: 6px;
  display: none;
  animation: fadeUp .2s var(--ease);
}
body:has(.survey-shell) .field-error.visible { display: block; }
body:has(.survey-shell) .field-input.error { border-color: #dc2626; }

body:has(.survey-shell) .alert-box {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.55;
  max-width: 800px;
  margin: 0 auto 20px;
  width: 100%;
}
body:has(.survey-shell) .alert-box.visible { display: block; }

/* --- Thank you screen ---------------------------------------------------- */
body:has(.survey-shell) .thankyou-screen {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
body:has(.survey-shell) .thankyou-screen.active { display: flex; }
body:has(.survey-shell) .thankyou-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 56px 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 0 0 1px var(--border);
  animation: fadeUp .6s var(--ease-spring);
}
body:has(.survey-shell) .ty-icon {
  width: 72px; height: 72px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
  animation: popIn .5s .2s var(--ease-spring) both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
body:has(.survey-shell) .thankyou-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
}
body:has(.survey-shell) .thankyou-card p {
  color: var(--ink-mid);
  line-height: 1.7;
  font-weight: 300;
}

body:has(.survey-shell) .ty-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
body:has(.survey-shell) .ty-redirect-note {
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 16px;
}
body:has(.survey-shell) .ty-redirect-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-weight: 800;
  color: var(--accent);
}
body:has(.survey-shell) #tyCloseBtn {
  text-decoration: none;
  justify-content: center;
  width: 100%;
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 640px) {
  body:has(.survey-shell) .hero-content { padding: 28px 24px 36px; }
  body:has(.survey-shell) .start-card { padding: 32px 24px; }
  body:has(.survey-shell) .start-card-intro { padding-bottom: 20px; margin-bottom: 20px; }
  body:has(.survey-shell) .step-nav { padding: 0 16px 24px; }
  body:has(.survey-shell) .step-stage { padding: 32px 16px 16px; }
  body:has(.survey-shell) .info-grid { grid-template-columns: 1fr; }
  body:has(.survey-shell) .yesno-grid { grid-template-columns: 1fr 1fr; }
  body:has(.survey-shell) .scale-bubbles { gap: 7px; }
  body:has(.survey-shell) .scale-bubble { width: 44px; height: 44px; font-size: .88rem; }
}

/* ======================== LOGIN PAGE =============================== */
body:has(.login-box) *,
body:has(.login-box) *::before,
body:has(.login-box) *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body:has(.login-box) {
    --ink: #0c0c0e;
    --ink-2: #1e1e24;
    --ink-3: #3a3a48;
    --muted: #7a7a8c;
    --border: #e4e4ec;
    --white: #ffffff;
    --gold: #fc7c10;
    --gold-lt: #f5e8c8;
    --danger: #dc2626;
    --success: #047857;
}

body:has(.login-box),
body:has(.login-box) {
    min-height: 100%;
}

body:has(.login-box) {
    font-family: "Outfit", sans-serif;
    background: var(--ink);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

body:has(.login-box) .left-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background: var(--ink-2);
    overflow: hidden;
}

body:has(.login-box) .left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(252, 124, 16, .15), transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 20%, rgba(252, 124, 16, .08), transparent 60%);
    pointer-events: none;
}

body:has(.login-box) .left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(252, 124, 16, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(252, 124, 16, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

body:has(.login-box) .lp-top,
body:has(.login-box) .lp-bottom {
    position: relative;
    z-index: 1;
}

body:has(.login-box) .lp-wordmark {
    display: flex;
    align-items: center;
    margin-bottom: 64px;
}

body:has(.login-box) .lp-logo {
    display: block;
    width: min(260px, 80%);
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
}

body:has(.login-box) .lp-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

body:has(.login-box) .lp-logo-fallback i {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--gold);
}

body:has(.login-box) .lp-headline {
    font-family: "Instrument Serif", serif;
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 24px;
}

body:has(.login-box) .lp-headline em {
    font-style: italic;
    color: var(--gold);
}

body:has(.login-box) .lp-sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 360px;
}

body:has(.login-box) .lp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 28px;
}

body:has(.login-box) .lp-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
}

body:has(.login-box) .lp-stat-lbl {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body:has(.login-box) .right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 48px 40px;
}

body:has(.login-box) .login-box {
    width: 100%;
    max-width: 420px;
}

body:has(.login-box) .login-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-lt);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

body:has(.login-box) .login-tag i {
    font-size: 9px;
}

body:has(.login-box) .login-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

body:has(.login-box) .login-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

body:has(.login-box) .form-group {
    margin-bottom: 20px;
}

body:has(.login-box) .form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 7px;
}

body:has(.login-box) .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

body:has(.login-box) .form-control:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(12, 12, 14, .06);
}

body:has(.login-box) .password-wrap {
    position: relative;
}

body:has(.login-box) .password-wrap .form-control {
    padding-right: 44px;
}

body:has(.login-box) .pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
}

body:has(.login-box) .form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

body:has(.login-box) .remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ink-3);
}

body:has(.login-box) .forgot-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

body:has(.login-box) .forgot-link:hover {
    text-decoration: underline;
    color: var(--ink);
}

body:has(.login-box) .btn-login {
    width: 100%;
    padding: 14px;
    background: var(--ink);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body:has(.login-box) .btn-login:hover {
    background: var(--ink-3);
}

body:has(.login-box) .btn-login:disabled {
    cursor: not-allowed;
    opacity: .85;
}

body:has(.login-box) .btn-login .spinner {
    display: none;
    animation: spin .6s linear infinite;
}

body:has(.login-box) .btn-login.loading .spinner {
    display: inline-block;
}

body:has(.login-box) .btn-login.loading .btn-text {
    opacity: .5;
}

body:has(.login-box) .btn-arrow {
    font-size: 12px;
    margin-left: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body:has(.login-box) .error-box,
body:has(.login-box) .success-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 9px;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 13.5px;
    line-height: 1.5;
}

body:has(.login-box) .error-box i,
body:has(.login-box) .success-box i {
    margin-top: 2px;
    flex-shrink: 0;
}

body:has(.login-box) .error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}

body:has(.login-box) .success-box {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: var(--success);
}

body:has(.login-box) .login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--muted);
}

body:has(.login-box) .login-divider::before,
body:has(.login-box) .login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

body:has(.login-box) .login-help {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--muted);
}

body:has(.login-box) .login-help a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

body:has(.login-box) .login-help a:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    body:has(.login-box) {
        grid-template-columns: 1fr;
    }

    body:has(.login-box) .left-panel {
        display: none;
    }

    body:has(.login-box) .right-panel {
        min-height: 100vh;
        background: var(--ink);
        padding: 24px;
    }

    body:has(.login-box) .login-box {
        background: #ffffff;
        border-radius: 16px;
        padding: 36px 28px;
    }

    body:has(.login-box) .form-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ======================== END OF CONSOLIDATED FILE ================= */
