/* ============================================================
   Alumni Connect — Design System
   Signature: "The Ledger Rule" — a brass top-rule on every card
   plus monospace batch/ID tags, echoing the transcript/register
   this platform is actually built to maintain.
   ============================================================ */

:root {
  /* Color — Deep Navy Blue + Luxury Gold */
  --ink: #0A1F44;
  --ink-2: #142B57;
  --ink-3: #1E3A6B;
  --brass: #D4AF37;
  --brass-dark: #A9841F;
  --brass-light: #F1E2AE;
  --paper: #F5F6FA;
  --card: #FFFFFF;
  --line: #E4E7EF;
  --slate: #232B3D;
  --muted: #6B7280;
  --success: #2F7D5C;
  --success-bg: #E7F3ED;
  --error: #B3261E;
  --error-bg: #FBEAE8;
  --warning: #8A5A00;
  --warning-bg: #FDF3DF;
  --info-bg: #E9EEF9;

  /* Type */
  --font-display: "Poppins", "Inter", Georgia, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Scale — premium rounded feel */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(10, 31, 68, 0.07);
  --shadow-md: 0 10px 28px rgba(10, 31, 68, 0.12);
  --shadow-lift: 0 14px 34px rgba(10, 31, 68, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--slate);
  background: var(--paper);
  line-height: 1.5;
}

a { color: var(--ink); }

::selection { background: var(--brass-light); color: var(--ink); }

/* -------------------- Header / Nav -------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 62px;
  background: var(--ink);
  background-image: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-bottom: 3px solid var(--brass);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 1rem;
  cursor: pointer;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: #D9E0F0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav a:hover { color: #fff; border-bottom-color: var(--brass); }

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  color: #D9E0F0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  padding: 6px 2px;
  transition: color 160ms var(--ease);
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover { color: #fff; }
.nav-dropdown summary::after { content: " ▾"; font-size: 0.7em; opacity: 0.8; }
.nav-dropdown[open] summary { color: #fff; }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  min-width: 200px;
  z-index: 60;
  animation: dropdown-in 140ms var(--ease);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-panel a {
  display: block;
  color: var(--slate) !important;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none !important;
  border: none !important;
}
.nav-dropdown-panel a:hover { background: var(--paper); color: var(--ink) !important; }

.bell {
  position: relative;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1;
  padding: 4px;
}
.bell .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.4;
  border: 1.5px solid var(--ink);
}

/* -------------------- Layout -------------------- */

.container { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.container:has(.li-layout) { max-width: 1168px; padding-top: 20px; }
body.has-sidebar .container { padding-top: 28px; }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 14px;
}
p.lede { color: var(--muted); margin: 0 0 26px; font-size: 0.98rem; }

/* -------------------- Cards (signature: ledger rule) -------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

.card--muted { border-top-color: var(--line); }
.card--navy { border-top-color: var(--ink-2); }
.card--success { border-top-color: var(--success); }

/* clickable/listing cards get a slight lift */
a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.card-link:hover .card { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* A batch/ID chip in the Fraunces-mono ledger style — used on profile,
   membership card, and anywhere a record ID is shown. */
.ledger-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--brass-dark);
  background: var(--brass-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* -------------------- Forms -------------------- */

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form-row .hint { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

input[type=text], input[type=email], input[type=password], input[type=number],
textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--slate);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #A2A8B5; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 134, 59, 0.18);
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 2px;
  border-radius: 3px;
}

.errors { color: var(--error); font-size: 0.82rem; margin-top: 5px; display: block; }

/* -------------------- Buttons -------------------- */

button, .btn, .btn-secondary, .btn-brass, input[type=submit] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  background: var(--ink);
  color: white !important;
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-family: inherit;
  transition: background 160ms var(--ease), transform 120ms var(--ease), box-shadow 160ms var(--ease);
}
button:hover, .btn:hover { background: var(--ink-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { background: var(--paper); border-color: var(--ink-3); box-shadow: none; }

.btn-brass { background: var(--brass); color: var(--ink) !important; }
.btn-brass:hover { background: var(--brass-dark); color: #fff !important; }

/* -------------------- Flash messages (floating toasts) -------------------- */

.flashes {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0;
}
body:not(.has-sidebar) .flashes { top: 76px; }
.flash {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.87rem;
  border-left: 3px solid transparent;
  background: #fff;
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toast-in 260ms var(--ease);
}
.flash::before { font-size: 1rem; line-height: 1.3; }
.flash-success::before { content: "✓"; color: var(--success); }
.flash-error::before { content: "✕"; color: var(--error); }
.flash-warning::before { content: "⚠"; color: var(--warning); }
.flash-info::before { content: "ℹ"; color: var(--ink-2); }
.toast-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 0 0 6px; line-height: 1; flex-shrink: 0; }
.toast-close:hover { background: none; box-shadow: none; transform: none; color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.flash-success { border-left-color: var(--success); color: var(--ink); }
.flash-error { border-left-color: var(--error); color: var(--ink); }
.flash-warning { border-left-color: var(--warning); color: var(--ink); }
.flash-info { border-left-color: var(--ink-2); color: var(--ink); }

/* -------------------- Scroll reveal -------------------- */

.reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------- Floating labels -------------------- */

.field-float { position: relative; margin-top: 6px; }
.field-float input, .field-float textarea { padding-top: 18px; padding-bottom: 6px; }
.field-float label {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 0.92rem; color: var(--muted); pointer-events: none;
  transition: all 140ms var(--ease); background: transparent; margin: 0;
}
.field-float input:focus + label, .field-float input:not(:placeholder-shown) + label,
.field-float textarea:focus + label, .field-float textarea:not(:placeholder-shown) + label,
.field-float:has(input:focus) label, .field-float:has(input:not(:placeholder-shown)) label {
  top: 11px; font-size: 0.68rem; font-weight: 600; color: var(--brass-dark);
}

/* -------------------- Password visibility toggle -------------------- */

.password-field { position: relative; }
.password-field input { padding-right: 40px; }
.password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 0.95rem; padding: 4px; color: var(--muted);
}
.password-toggle:hover { background: none; box-shadow: none; transform: translateY(-50%); color: var(--ink); }

/* -------------------- Skeleton loading -------------------- */

.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: 6px; color: transparent !important; }
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: skeleton-shimmer 1.3s infinite;
}
@keyframes skeleton-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* -------------------- Tables -------------------- */

table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--line);
}
tbody tr { transition: background 120ms var(--ease); }
tbody tr:hover { background: var(--paper); }
tbody tr:last-child td { border-bottom: none; }

/* -------------------- Avatars -------------------- */

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.9rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 2rem; }
img.avatar { object-fit: cover; }

/* -------------------- Pills / badges -------------------- */

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill-role { background: var(--info-bg); color: var(--ink-2); }
.pill-verified { background: var(--success-bg); color: var(--success); }
.pill-pending { background: var(--warning-bg); color: var(--warning); }
.pill-brass { background: var(--brass-light); color: var(--brass-dark); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.card-header h2 { margin: 0; }
.card-header a { font-size: 0.82rem; font-weight: 600; color: var(--brass-dark); text-decoration: none; }
.card-header a:hover { text-decoration: underline; }

/* -------------------- Stats / meter -------------------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat .label { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 6px 0 20px; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--brass) 0%, var(--brass-dark) 100%); transition: width 400ms var(--ease); }

/* -------------------- Login -------------------- */

.container:has(.login-split) { max-width: none; padding: 0; }

.login-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: calc(100vh - 56px - 90px);
  background: #F3F2EF;
}

.login-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(150deg, rgba(18,33,61,0.88) 0%, rgba(27,44,79,0.82) 55%, rgba(36,54,94,0.9) 100%),
    radial-gradient(circle at 30% 20%, rgba(184,134,59,0.25) 0%, transparent 45%),
    url('/static/images/admin-block.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 40px;
  text-align: center;
  border-right: 4px solid var(--brass);
}
.login-hero > *:not(.landing-orb):not(.landing-seal-glow):not(.login-building-silhouette):not(.login-light-trail) { position: relative; z-index: 1; }
.login-hero .landing-seal-glow { top: 50%; left: 50%; transform: translate(-50%, -70%); z-index: 0; }

.login-light-trail { position: absolute; bottom: 0; left: 0; width: 100%; height: 200px; z-index: 0; pointer-events: none; }
.login-building-silhouette { z-index: 0; }

.login-trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 0.76rem; color: #E6E9F2;
}

.login-card { position: relative; padding-top: 30px; }
.login-card-footnote { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 18px 0 0; }

.login-seal-ring {
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border: 1px solid rgba(240,227,200,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.login-seal {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(240,227,200,0.35), 0 10px 30px rgba(0,0,0,0.35);
}

.login-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  color: #fff;
  margin: 4px 0 0;
  letter-spacing: 0.01em;
}
.login-hero-tagline {
  color: #D9E0F0;
  font-size: 0.98rem;
  max-width: 320px;
  margin: 0;
}
.login-hero-tagline--gold { color: var(--brass-light); font-weight: 600; }

/* Decorative flourish divider — echoes the seal's own laurel motif */
.ornament-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--brass-light);
  font-size: 0.9rem;
  margin: 2px 0;
}
.ornament-divider span { width: 50px; height: 1px; background: rgba(240,227,200,0.4); }
.ornament-divider--sm { color: var(--brass); justify-content: center; margin: 6px 0 14px; }
.ornament-divider--sm span { width: 34px; background: var(--brass-light); }

.login-value-props {
  display: flex; gap: 22px; justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.login-value-prop { max-width: 130px; }
.login-value-icon {
  width: 46px; height: 46px; margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(212,175,55,0.14);
  border: 1px solid rgba(212,175,55,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.login-value-prop strong { display: block; color: var(--brass-light); font-size: 0.85rem; margin-bottom: 4px; }
.login-value-prop p { font-size: 0.74rem; color: #B9C2D6; margin: 0; line-height: 1.4; }

.login-welcome-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--ink);
  text-align: center;
  margin: 0;
  letter-spacing: -0.01em;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-left: 40px; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 0.95rem; opacity: 0.55; pointer-events: none; }
.input-icon-wrap .password-toggle { right: 12px; }

.login-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%) !important;
  border: 1.5px solid var(--brass) !important;
  color: var(--brass-light) !important;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.98rem;
  padding: 13px 20px !important;
}
.login-submit-btn:hover { box-shadow: 0 6px 20px rgba(184,134,59,0.3); }
.login-submit-btn span { transition: transform 160ms var(--ease); }
.login-submit-btn:hover span { transform: translateX(3px); }

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #F3F2EF;
}
.login-card {
  width: 100%; max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18,33,61,0.16), 0 4px 14px rgba(18,33,61,0.08);
  padding: 36px 34px;
}
.login-card::before { height: 4px; border-radius: 24px 24px 0 0; }

@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; }
  .login-hero {
    padding: 40px 24px;
    border: none;
    border-bottom: 4px solid var(--brass);
  }
  .login-seal-ring { width: 120px; height: 120px; }
  .login-seal { width: 100px; height: 100px; }
  .login-value-props { gap: 14px; }
}

.login-wrap { max-width: 400px; margin: 72px auto; }
.login-wrap h1 { text-align: left; }

/* -------------------- Responsive -------------------- */

/* -------------------- LinkedIn-style header -------------------- */

body.has-li-nav { background: var(--li-bg, #F3F2EF); }
:root { --li-bg: #F3F2EF; }

.li-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.li-topbar-inner {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.li-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.li-brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.li-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}

.li-search {
  flex: 1;
  max-width: 280px;
  position: relative;
}
.li-search input {
  width: 100%;
  background: var(--li-bg, #F3F2EF);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px 9px 34px;
  font-size: 0.88rem;
}
.li-search input:focus {
  background: #fff;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 134, 59, 0.14);
}
.li-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.55;
  pointer-events: none;
}

.li-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
}
.li-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 14px;
  text-decoration: none;
  color: #5a6169;
  font-size: 0.68rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 140ms var(--ease);
  min-width: 56px;
}
.li-nav-item:hover { color: var(--ink); }
.li-nav-item.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.li-nav-icon { font-size: 1.25rem; line-height: 1; }
.li-nav-label { white-space: nowrap; }
.li-bell { position: relative; }
.li-bell .badge {
  position: absolute; top: -4px; right: -10px;
  background: var(--error); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  padding: 1px 4px; border-radius: 999px; line-height: 1.3;
}

.li-me summary { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.li-me summary::-webkit-details-marker { display: none; }
.li-me summary::after { content: none; }
.li-me .avatar-sm { box-shadow: none; }
.li-me .nav-dropdown-panel { top: calc(100% + 10px); border-top: 3px solid var(--brass); }

/* -------------------- LinkedIn-style 3-column layout -------------------- */

.li-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr) 300px;
  gap: 20px;
  max-width: 1128px;
  margin: 20px auto 0;
  align-items: start;
}
.li-layout .li-center { min-width: 0; }
.li-side { position: sticky; top: 76px; }
.li-side .card { padding: 0; overflow: hidden; }
.li-cover {
  height: 56px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, var(--brass) 140%);
}
.li-side-avatar { margin-top: -28px; padding: 0 16px; }
.li-side-body { padding: 12px 16px 16px; }
.li-side-body h3 { margin: 8px 0 2px; font-family: var(--font-display); font-size: 1rem; }
.li-side-stats a {
  display: flex; justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--muted);
}
.li-side-stats a span:last-child { color: var(--brass-dark); font-weight: 700; }
.li-suggest-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.li-suggest-item:first-child { border-top: none; }
.li-suggest-item .info { flex: 1; min-width: 0; }
.li-suggest-item .info strong { display: block; font-size: 0.85rem; }
.li-suggest-item .info span { font-size: 0.75rem; color: var(--muted); }

.li-composer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.li-composer input, .li-composer .li-composer-fake {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  background: #fff;
}
.li-composer .li-composer-fake:hover { background: var(--paper); }

@media (max-width: 980px) {
  .li-layout { grid-template-columns: 1fr; }
  .li-side { position: static; display: none; }
  .li-side.li-side-left-mobile { display: block; }
}

@media (max-width: 860px) {
  .li-search { display: none; }
}

/* -------------------- Left sidebar navigation -------------------- */

:root { --sidebar-w: 248px; --sidebar-w-collapsed: 76px; --mobile-topbar-h: 56px; }

body.has-sidebar { background: var(--li-bg, #F3F2EF); }

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 70;
  align-items: center;
  gap: 12px;
  height: var(--mobile-topbar-h);
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.drawer-toggle {
  background: none; border: none; color: var(--ink);
  font-size: 1.25rem; padding: 6px; cursor: pointer; line-height: 1;
}
.mobile-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: 1; min-width: 0; }
.mobile-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.mobile-brand span { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bell { position: relative; font-size: 1.2rem; text-decoration: none; padding: 4px; }
.mobile-bell .badge {
  position: absolute; top: -2px; right: -6px;
  background: var(--error); color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 1px 4px; border-radius: 999px;
}

.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,15,30,0.45);
  z-index: 80;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.drawer-overlay.is-open { display: block; opacity: 1; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #E6E9F2;
  display: flex;
  flex-direction: column;
  z-index: 90;
  transition: width 240ms var(--ease);
  border-right: 1px solid rgba(255,255,255,0.06);
}
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.sidebar-brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(240,227,200,0.3); }
.sidebar-brand-text { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.02rem; white-space: nowrap; overflow: hidden; }
body.sidebar-collapsed .sidebar-brand-text { display: none; }

.sidebar-collapse-btn {
  background: rgba(255,255,255,0.08); border: none; color: #D9E0F0;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  font-size: 0.8rem; line-height: 1; flex-shrink: 0;
  transition: background 140ms var(--ease), transform 240ms var(--ease);
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,0.18); }
body.sidebar-collapsed .sidebar-collapse-btn { transform: rotate(180deg); }

.sidebar-search { position: relative; margin: 14px 16px; }
body.sidebar-collapsed .sidebar-search { display: none; }
.sidebar-search input {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 12px 8px 32px; color: #fff; font-size: 0.85rem;
}
.sidebar-search input::placeholder { color: #9AA3B8; }
.sidebar-search input:focus { background: rgba(255,255,255,0.14); border-color: var(--brass); outline: none; }
.sidebar-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; opacity: 0.7; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 10px; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.sidebar-footer { padding: 10px; border-top: 1px solid rgba(255,255,255,0.08); }

/* -------------------- Desktop top bar (search + notifications/avatar) -------------------- */

.topbar-desktop {
  position: sticky;
  top: 0;
  z-index: 80;
  margin-left: var(--sidebar-w);
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  transition: margin-left 240ms var(--ease);
}
body.sidebar-collapsed .topbar-desktop { margin-left: var(--sidebar-w-collapsed); }

.topbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.topbar-search input {
  width: 100%;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px 10px 38px;
  font-size: 0.92rem;
}
.topbar-search input:focus {
  background: #fff;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 134, 59, 0.14);
}
.topbar-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; opacity: 0.55; pointer-events: none;
}

.topbar-desktop-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.topbar-desktop-right .avatar-sm { box-shadow: none; }
.topbar-desktop-right .nav-dropdown summary { cursor: pointer; list-style: none; }
.topbar-desktop-right .nav-dropdown summary::-webkit-details-marker { display: none; }
.topbar-desktop-right .nav-dropdown-panel { top: calc(100% + 12px); }

@media (max-width: 980px) {
  .topbar-desktop { display: none; }
}

.sidebar-item {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px;
  color: #C6CCDA; text-decoration: none;
  font-size: 0.87rem; font-weight: 500;
  position: relative;
  transition: background 140ms var(--ease), color 140ms var(--ease);
  white-space: nowrap;
}
.sidebar-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-item.is-active { background: rgba(212,175,55,0.14); color: #fff; }
.sidebar-item.is-active::before {
  content: "";
  position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  background: var(--brass); border-radius: 0 3px 3px 0;
}
.sidebar-icon { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-label { overflow: hidden; text-overflow: ellipsis; }
body.sidebar-collapsed .sidebar-label { display: none; }
body.sidebar-collapsed .sidebar-item { justify-content: center; padding: 12px 8px; position: relative; }

/* collapsed tooltip on hover */
body.sidebar-collapsed .sidebar-item:hover::after {
  content: attr(data-label);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--ink-3); color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 0.78rem; white-space: nowrap; box-shadow: var(--shadow-md); z-index: 95;
}

.sidebar-bell { position: relative; }
.sidebar-bell .badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--error); color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 1px 4px; border-radius: 999px;
}

.sidebar-divider { padding: 14px 12px 6px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7E869C; }
body.sidebar-collapsed .sidebar-divider span { display: none; }

.sidebar-me { margin-bottom: 4px; }
.sidebar-me .avatar-sm { box-shadow: none; }

/* content offset for the fixed sidebar */
body.has-sidebar .container { margin-left: var(--sidebar-w); width: auto; transition: margin-left 240ms var(--ease); }
body.has-sidebar.sidebar-collapsed .container { margin-left: var(--sidebar-w-collapsed); }
body.has-sidebar .site-footer { margin-left: var(--sidebar-w); transition: margin-left 240ms var(--ease); }
body.has-sidebar.sidebar-collapsed .site-footer { margin-left: var(--sidebar-w-collapsed); }

.li-side { top: 84px; }

@media (max-width: 980px) {
  body.has-sidebar .container, body.has-sidebar .site-footer { margin-left: 0; }
  .mobile-topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    transition: transform 260ms var(--ease);
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,0.35); }
  body.sidebar-collapsed .sidebar { width: var(--sidebar-w); }
  body.sidebar-collapsed .sidebar-label, body.sidebar-collapsed .sidebar-brand-text, body.sidebar-collapsed .sidebar-search { display: block; }
  body.sidebar-collapsed .sidebar-item { justify-content: flex-start; padding: 10px 12px; }
  .sidebar-collapse-btn { display: none; }
  .container { padding-top: 20px; }
}

/* -------------------- Modal / popup component -------------------- */

.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.modal-backdrop.is-open { display: flex; opacity: 1; }

.modal {
  background: #fff;
  border-radius: 18px;
  border-top: 3px solid var(--brass);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(10, 15, 30, 0.35);
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.modal-backdrop.is-open .modal { transform: scale(1) translateY(0); opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.3rem; color: var(--muted);
  cursor: pointer; line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--ink); background: none; box-shadow: none; transform: none; }
.modal { position: relative; }

/* -------------------- Home dashboard -------------------- */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.quick-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.quick-action-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.quick-action-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--brass-light) 130%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.home-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(120deg, #fff 0%, #FBF8F1 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.home-hero h1 { margin: 0 0 2px; font-size: 1.6rem; }
.home-hero-body { flex: 1; min-width: 200px; }
.home-hero-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.home-hero-stats a.pill { text-decoration: none; }

.home-banner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.home-banner--brass { background: linear-gradient(120deg, #fff 0%, #FBF3E2 100%); }
.home-banner--navy { background: linear-gradient(120deg, #fff 0%, #EEF1F8 100%); }

.notif-list { display: flex; flex-direction: column; }
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background 140ms var(--ease);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--paper); }
.notif-row.is-unread { background: rgba(184,134,59,0.05); }
.notif-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.notif-body { flex: 1; min-width: 0; }
.notif-body p { margin: 0; font-size: 0.9rem; }
.notif-row.is-unread .notif-body p { font-weight: 600; }
.notif-time { font-size: 0.75rem; color: var(--muted); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex-shrink: 0; margin-top: 6px; }

.mini-post-list { display: flex; flex-direction: column; }
.mini-post {
  display: flex;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 140ms var(--ease), transform 140ms var(--ease);
}
.mini-post:last-child { border-bottom: none; }
.mini-post:hover { background: var(--paper); transform: translateX(2px); }
.mini-post-body { flex: 1; min-width: 0; }
.mini-post-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mini-post-head strong { font-size: 0.9rem; color: var(--ink); }
.mini-post-text { margin: 3px 0 0; font-size: 0.87rem; color: var(--slate); }

/* -------------------- Timeline (experience) -------------------- */

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 4px; bottom: 4px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -26px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brass); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--brass);
}
.timeline-item.is-current .timeline-dot { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.timeline-title { font-weight: 600; color: var(--ink); margin: 0; }
.timeline-meta { font-size: 0.82rem; color: var(--muted); margin: 2px 0 0; }

/* -------------------- Info grid (replaces plain key/value tables) -------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.info-chip {
  background: var(--paper);
  border-radius: 10px;
  padding: 12px 14px;
}
.info-chip .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 3px; }
.info-chip .value { font-size: 0.95rem; font-weight: 600; color: var(--ink); }

/* -------------------- People card grid (search results) -------------------- */

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.people-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; text-align: center;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.people-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.people-card .avatar-lg { margin: 0 auto 10px; }
.people-card h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 4px; }
.people-card .people-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; min-height: 1.2em; }
.people-card .pill { margin: 0 3px 6px; }
.people-card .people-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }

/* -------------------- Job card grid -------------------- */

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass);
  border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.job-card-top { display: flex; gap: 12px; align-items: center; }
.job-card-logo {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; flex-shrink: 0;
}
.job-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0; }
.job-card-company { font-size: 0.85rem; color: var(--muted); margin: 2px 0 0; }
.job-card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); }
.job-card-desc { font-size: 0.85rem; color: var(--slate); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }

/* -------------------- Table scroll wrapper (sticky header) -------------------- */

.table-scroll { max-height: 480px; overflow-y: auto; border-radius: 8px; }
.table-scroll table { border-collapse: separate; border-spacing: 0; }
.table-scroll th {
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.table-filter { margin-bottom: 14px; }
.table-filter input {
  max-width: 280px;
}

/* -------------------- Simple CSS bar chart -------------------- */

.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 70px; font-size: 0.85rem; color: var(--muted); flex-shrink: 0; }
.bar-track { flex: 1; height: 14px; background: var(--paper); border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; transition: width 600ms var(--ease); }
.bar-value { width: 34px; text-align: right; font-weight: 700; font-size: 0.88rem; color: var(--ink); flex-shrink: 0; }

/* -------------------- Chat -------------------- */

.chat-list { display: flex; flex-direction: column; }
.chat-list-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background 140ms var(--ease);
}
.chat-list-item:last-child { border-bottom: none; }
.chat-list-item:hover { background: var(--paper); }
.chat-list-body { flex: 1; min-width: 0; }
.chat-list-head { display: flex; justify-content: space-between; gap: 8px; }
.chat-list-head strong { color: var(--ink); }
.chat-list-body p { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-thread { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.bubble-row { display: flex; flex-direction: column; margin-bottom: 10px; align-items: flex-start; }
.bubble-row.is-mine { align-items: flex-end; }
.bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--paper);
  color: var(--ink);
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.bubble-row.is-mine .bubble {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.bubble-row .notif-time { margin-top: 3px; padding: 0 4px; }

/* -------------------- Quiz taking UI -------------------- */

.quiz-question-card { padding: 20px; }
.quiz-q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quiz-q-number {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.quiz-q-text { flex: 1; font-weight: 600; margin: 0; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: block; font-weight: 400;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.quiz-option:hover { background: var(--paper); }
.quiz-option:has(input:checked) {
  border-color: var(--brass);
  background: rgba(184,134,59,0.07);
  font-weight: 600;
}
.quiz-option input { margin-right: 8px; }

.quiz-result { text-align: center; padding: 36px 24px; }
.quiz-result-badge {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  margin: 0 auto;
  border: 4px solid var(--line);
}
.quiz-result-badge.is-great { border-color: var(--success); color: var(--success); background: var(--success-bg); }

/* -------------------- Pricing card (membership) -------------------- */

.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-light) 100%);
}
.pricing-badge {
  display: inline-block;
  background: rgba(240,227,200,0.15);
  color: var(--brass-light);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
  margin: 0 0 14px;
}
.pricing-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; margin: 0; }
.pricing-sub { color: #A9B4CC; font-size: 0.85rem; margin: 2px 0 20px; }
.pricing-benefits { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.pricing-benefits li { font-size: 0.88rem; color: #E6E9F2; }
.pricing-card button {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%) !important;
  color: var(--ink) !important;
}
.pricing-card button:hover {
  background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass) 100%) !important;
  box-shadow: 0 4px 18px rgba(212,175,55,0.4);
}

/* -------------------- Landing page -------------------- */

/* -------------------- Landing page (v2 polish) -------------------- */

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}
.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.55;
  animation: orb-float 10s ease-in-out infinite;
}
.landing-orb-1 { top: -60px; left: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(212,175,55,0.35) 0%, transparent 70%); }
.landing-orb-2 { bottom: -80px; right: 10%; width: 220px; height: 220px; background: radial-gradient(circle, rgba(184,134,59,0.28) 0%, transparent 70%); animation-delay: -4s; }
.landing-orb-3 { top: -40px; left: 50%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%); transform: translateX(-50%); }

.landing-hero-v2 { position: relative; overflow: hidden; }
.landing-cta-v2 { position: relative; overflow: hidden; }

.landing-wave {
  position: absolute;
  left: -10%; right: -10%; bottom: -46px;
  height: 90px;
  background: var(--paper);
  border-radius: 50%;
}

.landing-seal-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, transparent 68%);
  animation: seal-pulse 3.5s ease-in-out infinite;
}
@keyframes seal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
.landing-hero-seal { position: relative; display: flex; align-items: center; justify-content: center; }
.landing-seal-ring-lg { width: 260px; height: 260px; position: relative; }
.landing-seal-lg { width: 216px; height: 216px; }

.landing-cta-btn {
  padding: 15px 32px;
  font-size: 1rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}
.landing-cta-btn:hover { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.42); }

.landing-stats-grid { max-width: 900px; margin: 0 auto; }

.landing-footer {
  background: var(--ink);
  padding: 44px 24px 32px;
  text-align: center;
}
.landing-footer-inner { max-width: 480px; margin: 0 auto; }
.landing-footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 8px; }
.landing-footer-tagline { color: #9AA3B8; font-size: 0.85rem; margin: 0 0 18px; }
.landing-footer-credit { color: #7E869C; font-size: 0.78rem; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.landing-footer-credit strong { color: var(--brass-light); font-family: var(--font-display); }

@media (max-width: 860px) {
  .landing-seal-ring-lg { width: 180px; height: 180px; }
  .landing-seal-lg { width: 150px; height: 150px; }
  .landing-seal-glow { width: 220px; height: 220px; }
  .landing-orb { display: none; }
}

/* -------------------- Landing: product preview mockup -------------------- */

.landing-preview { padding: 70px 24px 30px; background: #fff; }
.browser-frame {
  max-width: 780px; margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.browser-frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #E8E9ED;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-frame-url {
  margin-left: 14px;
  background: #fff; border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.74rem; color: var(--muted);
  flex: 1;
}
.browser-frame-body { display: flex; background: var(--paper); min-height: 320px; }
.preview-sidebar {
  width: 130px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 16px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.preview-sidebar-item {
  color: #C6CCDA; font-size: 0.72rem; font-weight: 500;
  padding: 8px 10px; border-radius: 6px;
}
.preview-sidebar-item.is-active { background: rgba(212,175,55,0.16); color: #fff; }
.preview-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.preview-stat-row { display: flex; gap: 10px; }
.preview-stat { flex: 1; background: #fff; border-radius: 8px; border-top: 2px solid var(--brass); padding: 10px 12px; }
.preview-stat-n { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.preview-stat-l { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.preview-card { background: #fff; border-radius: 8px; padding: 12px 14px; }
.preview-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.preview-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.preview-card-head strong { font-size: 0.78rem; color: var(--ink); }
.preview-pill { margin-left: auto; font-size: 0.62rem; background: var(--brass-light); color: var(--brass-dark); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.preview-card-line { height: 7px; border-radius: 4px; background: var(--line); margin-top: 6px; width: 100%; }
.landing-preview-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 18px 0 0; }

/* -------------------- Landing: administrator section -------------------- */

.landing-admin { padding: 70px 24px; background: var(--paper); }
.admin-benefit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
  text-align: left; margin-top: 10px;
}
.admin-benefit {
  background: #fff; border-radius: 12px; padding: 24px 20px;
  border: 1px solid var(--line);
}
.admin-benefit-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.admin-benefit h3 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin: 0 0 8px; }
.admin-benefit p { font-size: 0.85rem; color: var(--muted); margin: 0; }

@media (max-width: 700px) {
  .browser-frame-body { flex-direction: column; }
  .preview-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
}

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
}
.landing-nav .brand { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; }

.landing-hero-v2 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  padding: 90px 32px;
}
.landing-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(184,134,59,0.22) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(184,134,59,0.14) 0%, transparent 45%);
  pointer-events: none;
}
.landing-hero-v2-inner {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.landing-title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.15;
  font-size: 3rem; color: #fff; margin: 0 0 20px;
}
.landing-title-accent { color: var(--brass-light); }
.landing-sub { color: #D9E0F0; font-size: 1.08rem; max-width: 480px; margin: 0 0 30px; }
.landing-hero-note { color: #8E97AC; font-size: 0.8rem; margin: 18px 0 0; }
.landing-hero-seal { display: flex; align-items: center; justify-content: center; }

.landing-stats { padding: 56px 24px; background: var(--paper); }

.landing-section-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.landing-h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--ink); margin: 0 0 44px; max-width: 620px; margin-left: auto; margin-right: auto; }

.landing-how { padding: 70px 24px; background: #fff; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: left; }
.how-step { position: relative; padding-left: 6px; }
.how-step-number {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--brass-light); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  margin-bottom: 16px;
}
.how-step h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.how-step p { font-size: 0.87rem; color: var(--muted); margin: 0; }

.landing-features { padding: 70px 24px; background: var(--paper); }
.landing-features-inner {
  margin-top: 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  text-align: left;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--brass);
  border-radius: 12px; padding: 26px 22px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 8px; color: var(--ink); }
.feature-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

.landing-cta-v2 {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  text-align: center; padding: 80px 24px;
}
.landing-cta-v2-inner { max-width: 480px; margin: 0 auto; }

@media (max-width: 860px) {
  .landing-hero-v2-inner { grid-template-columns: 1fr; text-align: center; }
  .landing-hero-text { order: 2; }
  .landing-hero-seal { order: 1; }
  .landing-sub { margin-left: auto; margin-right: auto; }
  .landing-title { font-size: 2.1rem; }
  .landing-hero-v2 { padding: 50px 20px; }
  .how-steps, .landing-features-inner { text-align: center; }
}

/* -------------------- Dark theme -------------------- */

html[data-theme="dark"] {
  --paper: #12151C;
  --card: #1B1F2A;
  --line: #2C3140;
  --slate: #D7DAE2;
  --muted: #8B93A6;
  --li-bg: #12151C;
}
html[data-theme="dark"] body { color: var(--slate); }
html[data-theme="dark"] .card, html[data-theme="dark"] .stat, html[data-theme="dark"] .modal,
html[data-theme="dark"] .info-chip, html[data-theme="dark"] .job-card, html[data-theme="dark"] .people-card {
  background: var(--card); color: var(--slate);
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] .timeline-title, html[data-theme="dark"] strong { color: #F0F2F6; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select {
  background: #22273350; color: var(--slate); border-color: var(--line);
}
html[data-theme="dark"] .li-topbar, html[data-theme="dark"] .mobile-topbar { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .li-nav-item, html[data-theme="dark"] .li-brand-text { color: var(--slate); }
html[data-theme="dark"] table th { background: var(--card); }
html[data-theme="dark"] tbody tr:hover { background: #22273a; }
html[data-theme="dark"] .flash { background: var(--card); }

/* -------------------- Toggle switch -------------------- */

.toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; cursor: pointer; font-size: 0.92rem;
}
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px;
  transition: background 180ms var(--ease);
}
.toggle-slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 180ms var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider { background: var(--brass); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* -------------------- Polls -------------------- */

.poll-card { margin: 0 0 10px; }
.poll-result-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.poll-result-track { flex: 1; height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; }
.poll-result-fill { height: 100%; background: var(--brass); border-radius: 5px; transition: width 500ms var(--ease); }
.poll-result-label { font-size: 0.82rem; color: var(--slate); min-width: 130px; }

/* -------------------- Comments (with one level of replies) -------------------- */

.comment-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.comment-row { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble { background: var(--paper); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.comment-bubble strong { font-size: 0.82rem; display: block; margin-bottom: 2px; }
.comment-bubble p { margin: 0; font-size: 0.87rem; white-space: pre-wrap; }
.comment-reply-btn { background: none; border: none; color: var(--muted); font-size: 0.75rem; font-weight: 600; cursor: pointer; padding: 4px 4px 0; }
.comment-reply-btn:hover { background: none; box-shadow: none; transform: none; color: var(--brass-dark); }

/* -------------------- Empty states -------------------- */

.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--paper) 0%, var(--brass-light) 130%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.empty-state p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 320px;
  margin: 0 auto 18px;
}

/* -------------------- Profile stat row -------------------- */

.profile-stat-row {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 16px 28px;
}
.profile-stat { flex: 1; text-align: center; }
.profile-stat strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.profile-stat span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* -------------------- CSS-only tabs -------------------- */

.tab-input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-label {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.tab-label:hover { color: var(--ink); }
.tab-panel { display: none; animation: rise-in 260ms var(--ease); }
#tab-about:checked ~ .tab-labels label[for="tab-about"],
#tab-experience:checked ~ .tab-labels label[for="tab-experience"],
#tab-skills:checked ~ .tab-labels label[for="tab-skills"],
#tab-all:checked ~ .tab-labels label[for="tab-all"],
#tab-requested:checked ~ .tab-labels label[for="tab-requested"],
#tab-sent:checked ~ .tab-labels label[for="tab-sent"] {
  color: var(--brass-dark);
  border-bottom-color: var(--brass);
}
#tab-about:checked ~ #panel-about,
#tab-experience:checked ~ #panel-experience,
#tab-skills:checked ~ #panel-skills,
#tab-all:checked ~ #panel-all,
#tab-requested:checked ~ #panel-requested,
#tab-sent:checked ~ #panel-sent {
  display: block;
}

/* -------------------- Filter tabs (jobs, etc.) -------------------- */

.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 140ms var(--ease);
}
.filter-tab:hover { border-color: var(--brass); color: var(--ink); }
.filter-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* -------------------- Line chart (SVG) -------------------- */

.line-chart { width: 100%; height: 160px; display: block; }
.line-chart-labels {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--muted); margin-top: 4px; padding: 0 4px;
}

/* -------------------- Donut chart -------------------- */

.donut-chart {
  width: 150px; height: 150px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.donut-chart-hole {
  width: 92px; height: 92px; border-radius: 50%;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-chart-hole strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.donut-chart-hole span { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.donut-legend-row strong { margin-left: auto; color: var(--ink); }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.avatar-status-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--success);
  border: 2px solid #fff;
}

.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.15rem;
}
.mobile-tab small { font-size: 0.62rem; font-weight: 600; color: inherit; }
.mobile-tab.is-active { color: var(--brass-dark); }
.mobile-tab .avatar-sm { box-shadow: none; }

@media (max-width: 980px) {
  .mobile-tabbar { display: flex; }
  body.has-sidebar .container { padding-bottom: 76px; }
}

.fab {
  display: none;
  position: fixed;
  bottom: 88px; right: 20px;
  z-index: 65;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%);
  color: var(--ink);
  font-size: 1.4rem;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(184,134,59,0.45);
  border: none; cursor: pointer;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,134,59,0.55); }

@media (max-width: 980px) {
  .fab { display: flex; }
}

/* -------------------- Button states: small, disabled -------------------- */

.btn-sm { padding: 6px 14px !important; font-size: 0.78rem !important; }

button:disabled, .btn.is-disabled, input[type=submit]:disabled {
  background: var(--line) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}
button:disabled:hover, .btn.is-disabled:hover { transform: none !important; box-shadow: none !important; }

/* -------------------- Glass card (glassmorphism) -------------------- */

.card-glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.card-glass::before { display: none; }

/* -------------------- Badge system (New / Featured) -------------------- */

.badge-new, .badge-featured {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge-new { background: var(--success-bg); color: var(--success); }
.badge-featured { background: linear-gradient(120deg, var(--brass-light) 0%, #f0e3c8 100%); color: var(--brass-dark); }

.login-building-silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%; height: 45%;
  z-index: 0;
  pointer-events: none;
}

.login-options-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: -6px 0 16px;
  font-size: 0.82rem;
}
.login-remember { display: flex; align-items: center; gap: 8px; color: var(--slate); cursor: pointer; font-weight: 500; font-size: 0.85rem; }
.login-remember input {
  width: 17px; height: 17px; margin: 0;
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.login-remember input:checked {
  background: var(--brass);
  border-color: var(--brass);
}
.login-remember input:checked::after {
  content: "✓";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%);
  color: var(--ink); font-size: 0.72rem; font-weight: 700;
}
.login-forgot-link {
  background: none; border: none; padding: 0;
  color: #2563EB; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  text-decoration: none;
}
.login-forgot-link:hover { background: none; box-shadow: none; transform: none; text-decoration: underline; }

/* -------------------- Landing page v2 (full redesign) -------------------- */

.btn-outline-white {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 160ms var(--ease);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Nav */
.landing-nav-v2 {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 32px;
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
  position: sticky; top: 0; z-index: 90;
}
.landing-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.landing-nav-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(212,175,55,0.3); }
.landing-nav-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.landing-nav-brand span { display: block; color: #9AA3B8; font-size: 0.68rem; }
.landing-nav-links { display: flex; gap: 24px; flex: 1; }
.landing-nav-links a {
  color: #C6CCDA; text-decoration: none; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.landing-nav-links a:hover, .landing-nav-links a.is-active { color: #fff; border-bottom-color: var(--brass); }
.landing-nav-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Hero v3 */
.landing-hero-v3 {
  background-size: cover;
  background-position: center;
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
}
.landing-hero-v3-inner { max-width: 620px; padding: 60px 48px; color: #fff; }
.landing-eyebrow-pill {
  display: inline-block;
  border: 1px solid rgba(212,175,55,0.5);
  color: var(--brass-light);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 20px;
}
.landing-title-v3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3rem; line-height: 1.1;
  margin: 0 0 16px;
}
.landing-sub-v3 { color: #D9E0F0; font-size: 1.02rem; max-width: 480px; margin: 0 0 28px; }
.landing-hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  margin-top: 30px;
  box-shadow: var(--shadow-lift);
}
.landing-hero-badge-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brass-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.landing-hero-badge strong { color: var(--ink); font-family: var(--font-display); }
.landing-hero-badge div span { display: block; font-size: 0.75rem; color: var(--success); font-weight: 600; }

/* Stats v2 */
.landing-stats-v2 { background: #fff; padding: 30px 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); position: relative; z-index: 2; }
.landing-stats-v2-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
}
.stat-v2 { display: flex; align-items: center; gap: 12px; }
.stat-v2-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.stat-v2 strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.stat-v2 span { font-size: 0.75rem; color: var(--muted); }

/* Features v2 */
.landing-features-v2 { padding: 70px 24px; background: var(--paper); }
.feature-grid-v2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  text-align: left; margin-top: 10px;
}
.feature-card-v2 {
  background: #fff; border-radius: 14px; padding: 26px 22px;
  border: 1px solid var(--line);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.feature-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.feature-icon-v2 {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--brass-light) 130%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.feature-card-v2 h3 { font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 8px; color: var(--ink); }
.feature-card-v2 p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* CTA v3 */
.landing-cta-v3 { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); padding: 40px 32px; }
.landing-cta-v3-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.landing-cta-v3-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(212,175,55,0.16); border: 1px solid rgba(212,175,55,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}

/* Footer v2 */
.landing-footer-v2 { background: var(--ink); padding: 50px 32px 0; }
.landing-footer-v2-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
  padding-bottom: 36px;
  text-align: left;
}
.landing-footer-col h4 { color: var(--brass-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.landing-footer-col a { display: block; color: #B9C2D6; text-decoration: none; font-size: 0.85rem; margin-bottom: 10px; }
.landing-footer-col a:hover { color: #fff; }
.landing-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.landing-footer-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.landing-footer-brand span { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; }
.landing-footer-v2 .landing-footer-tagline { color: #9AA3B8; font-size: 0.85rem; margin: 0; }
.landing-footer-v2-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  max-width: 1000px; margin: 0 auto;
  font-size: 0.78rem; color: #7E869C;
}
.landing-footer-v2-bottom strong { color: var(--brass-light); font-family: var(--font-display); }

@media (max-width: 860px) {
  .landing-nav-links { display: none; }
  .landing-hero-v3 { min-height: 460px; }
  .landing-hero-v3-inner { padding: 40px 24px; }
  .landing-title-v3 { font-size: 2.1rem; }
  .landing-footer-v2-inner { grid-template-columns: 1fr; }
}

/* -------------------- Landing page v3 (pasted template) -------------------- */

body.lp3-body { margin: 0; }
.lp3-body .accent { color: var(--brass-light); }

.btn-outline-light {
  display: inline-block; padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: all 160ms var(--ease);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-hero-outline {
  display: inline-block; padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 160ms var(--ease);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Header */
.site-header {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
  position: sticky; top: 0; z-index: 90;
}
.site-header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-header-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(212,175,55,0.3); }
.site-header-brand-text strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.site-header-brand-text span { display: block; color: #9AA3B8; font-size: 0.7rem; }
.site-nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.site-nav { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.site-nav a {
  color: #C6CCDA; text-decoration: none; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; border-bottom-color: var(--brass); }
.site-header-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Hero v3 */
.hero-v3 {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 0;
  min-height: 560px;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(10,31,68,0.7) 0%, rgba(10,31,68,0.62) 100%),
    url('/static/images/admin-block.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.hero-v3-ribbon {
  position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.008) 0px, rgba(255,255,255,0.008) 1px, transparent 1px, transparent 40px);
}
.hero-v3-laurel {
  position: absolute; left: -30px; top: 50%; transform: translateY(-50%);
  width: 90px; height: 340px; z-index: 0;
  background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(212,175,55,0.18) 18px 22px);
  mask-image: radial-gradient(ellipse 60px 170px at 30px 170px, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60px 170px at 30px 170px, black 60%, transparent 100%);
}
.hero-v3-text { position: relative; z-index: 1; flex: 1 1 46%; padding: 60px 48px; color: #fff; min-width: 300px; }

.hero-v3--centered { justify-content: center; }
.hero-v3--centered .hero-v3-text {
  flex: none;
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: 80px 24px;
}
.hero-v3--centered .hero-v3-rule { margin-left: auto; margin-right: auto; }
.hero-v3--centered .hero-v3-sub { margin-left: auto; margin-right: auto; }
.hero-v3--centered .hero-v3-cta-row { justify-content: center; }
.hero-v3-floating-card--inline {
  position: static;
  display: inline-flex;
  margin-top: 32px;
}
.hero-v3-eyebrow {
  display: inline-block; border: 1px solid rgba(212,175,55,0.5); color: var(--brass-light);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero-v3-title { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; line-height: 1.1; margin: 0; color: #fff; }
.hero-v3-rule { border: none; border-top: 2px solid var(--brass); width: 60px; margin: 20px 0; opacity: 0.8; }
.hero-v3-sub { color: #D9E0F0; font-size: 1rem; max-width: 440px; margin: 0 0 26px; }
.hero-v3-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-v3-visual { position: relative; z-index: 1; flex: 1 1 54%; align-self: stretch; min-height: 400px; min-width: 320px; overflow: hidden; }
.hero-v3-visual::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(10,31,68,0.5) 100%);
  pointer-events: none;
}
.hero-v3-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); }
.hero-v3-skyline { width: 80%; max-width: 400px; }
.hero-v3-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(18,33,61,0.55); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hero-v3-arrow--prev { left: 16px; }
.hero-v3-arrow--next { right: 16px; }
.hero-v3-arrow:hover { background: rgba(18,33,61,0.85); }
.hero-v3-floating-card {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 999px; padding: 10px 20px 10px 12px;
  box-shadow: var(--shadow-lift);
}
.hero-v3-avatar-stack { display: flex; }
.hero-v3-avatar-stack .avatar { margin-left: -10px; border: 2px solid #fff; }
.hero-v3-avatar-stack .avatar:first-child { margin-left: 0; }
.hero-v3-floating-card-text { font-size: 0.8rem; color: var(--slate); }
.hero-v3-floating-card-text strong { display: block; color: var(--ink); font-size: 0.85rem; }
.hero-v3-floating-card-text .ok { color: var(--success); }

/* Stat strip */
.stat-strip { background: #fff; padding: 26px 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); position: relative; z-index: 2; }
.stat-strip-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.stat-strip-item { display: flex; align-items: center; gap: 12px; }
.stat-strip-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; flex-shrink: 0; }
.stat-strip-icon.is-ink { background: var(--ink); }
.stat-strip-icon.is-brass { background: var(--brass); }
.stat-strip-n { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.stat-strip-label { font-size: 0.72rem; color: var(--muted); }

/* Section header (reused) */
.section-v3 { padding: 70px 24px; background: var(--paper); text-align: center; }
.section-v3-head { margin-bottom: 36px; }
.section-v3-eyebrow { color: var(--brass-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.section-v3-title { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--ink); margin: 8px 0 0; }

.feature-grid-v3 { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; text-align: left; }
.feature-card-v3 {
  background: #fff; border-radius: 14px; padding: 26px 22px; position: relative;
  border: 1px solid var(--line);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.feature-card-v3:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.feature-card-v3-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--paper) 0%, var(--brass-light) 130%);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px;
}
.feature-card-v3 h3 { font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 8px; color: var(--ink); }
.feature-card-v3 p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.feature-card-v3-more { position: absolute; bottom: 14px; right: 18px; color: var(--brass); font-size: 0.9rem; }

/* Proof section */
.proof-section { padding: 60px 24px; background: #fff; }
.proof-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; text-align: left; }
.proof-col-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.proof-col-head h3 { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); margin: 0; }
.proof-col-head a { font-size: 0.8rem; color: var(--brass-dark); text-decoration: none; font-weight: 600; }

.testimonial-card { background: var(--paper); border-radius: 14px; padding: 22px; }
.testimonial-quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--brass-light); line-height: 1; }
.testimonial-text { font-size: 0.9rem; color: var(--slate); font-style: italic; margin: 6px 0 16px; }
.testimonial-person { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.testimonial-person strong { display: block; font-size: 0.85rem; color: var(--ink); }
.testimonial-person span:not(.avatar) { font-size: 0.76rem; color: var(--muted); }
.testimonial-nav { display: flex; align-items: center; gap: 10px; }
.testimonial-arrow { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: var(--ink); }
.testimonial-dots { display: flex; gap: 6px; }
.testimonial-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: inline-block; }
.testimonial-dots span.is-active { background: var(--brass); }

.alumni-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alumni-mini-card { background: var(--paper); border-radius: 12px; padding: 16px; text-align: center; }
.alumni-mini-card .avatar { margin: 0 auto 8px; }
.alumni-mini-card h4 { font-size: 0.85rem; margin: 0 0 4px; color: var(--ink); }
.alumni-mini-card .role { font-size: 0.72rem; color: var(--muted); margin: 0 0 8px; line-height: 1.3; }

.event-mini-list { display: flex; flex-direction: column; gap: 14px; }
.event-mini-row { display: flex; align-items: center; gap: 12px; }
.event-date-badge {
  width: 46px; flex-shrink: 0; text-align: center;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 0;
  font-family: var(--font-mono);
}
.event-date-badge .month { display: block; font-size: 0.6rem; text-transform: uppercase; color: var(--brass-light); }
.event-date-badge .day { display: block; font-size: 1rem; font-weight: 700; }
.event-mini-body { flex: 1; min-width: 0; }
.event-mini-body h4 { font-size: 0.85rem; margin: 0 0 2px; color: var(--ink); }
.event-mini-body p { font-size: 0.75rem; color: var(--muted); margin: 0; }
.event-mini-time { font-size: 0.75rem; color: var(--muted); flex-shrink: 0; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.partner-tile {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border-radius: 8px; padding: 14px 8px;
  font-size: 0.8rem; font-weight: 700; color: var(--slate);
}

/* CTA banner v3 */
.cta-banner-v3 {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 36px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-banner-v3-left { display: flex; align-items: center; gap: 18px; }
.cta-banner-v3-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(212,175,55,0.16); border: 1px solid rgba(212,175,55,0.35);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.cta-banner-v3-left h3 { color: #fff; margin: 0 0 2px; font-family: var(--font-display); }
.cta-banner-v3-left p { color: #D9E0F0; margin: 0; font-size: 0.88rem; }
.cta-banner-v3-actions { display: flex; gap: 10px; }

/* Footer v3 */
.site-footer-v3 { background: var(--ink); padding: 50px 32px 0; }
.site-footer-v3-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.2fr; gap: 26px; padding-bottom: 36px; text-align: left; }
.site-footer-v3-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.site-footer-v3-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.site-footer-v3-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1rem; }
.site-footer-v3-brand span:not(:first-child) { display: block; color: #9AA3B8; font-size: 0.68rem; }
.site-footer-v3-tagline { color: #9AA3B8; font-size: 0.82rem; margin: 0; }
.site-footer-v3-col h4 { color: var(--brass-light); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.site-footer-v3-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer-v3-col li { margin-bottom: 9px; }
.site-footer-v3-col a { color: #B9C2D6; text-decoration: none; font-size: 0.82rem; }
.site-footer-v3-col a:hover { color: #fff; }
.site-footer-v3-social { display: flex; gap: 8px; }
.site-footer-v3-social a {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 0.75rem;
}
.site-footer-v3-social a:hover { background: var(--brass); color: var(--ink); }
.newsletter-form { display: flex; margin-top: 10px; }
.newsletter-form input {
  flex: 1; border-radius: 8px 0 0 8px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; padding: 9px 12px; font-size: 0.82rem;
}
.newsletter-form input::placeholder { color: #7E869C; }
.newsletter-form button {
  border-radius: 0 8px 8px 0; background: var(--brass); color: var(--ink); border: none;
  padding: 0 16px; font-weight: 700; cursor: pointer;
}
.site-footer-v3-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; max-width: 1180px; margin: 0 auto;
  font-size: 0.78rem; color: #7E869C; text-align: center;
}

@media (max-width: 980px) {
  .site-nav { display: none; width: 100%; order: 3; flex-direction: column; gap: 4px; }
  .site-nav.nav-open { display: flex; }
  .site-nav-toggle { display: inline-block; }
  .hero-v3 { flex-direction: column; }
  .hero-v3-visual { min-height: 300px; }
  .hero-v3-title { font-size: 2.1rem; }
  .site-footer-v3-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer-v3-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-mini-grid { grid-template-columns: 1fr; }
}

/* -------------------- Snapshot section (real data, replaces fake proof section) -------------------- */

.snapshot-section { padding: 70px 24px; background: #fff; text-align: center; }
.snapshot-sub { color: var(--muted); font-size: 0.92rem; max-width: 480px; margin: 10px auto 0; }
.snapshot-grid {
  max-width: 900px; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
}
.snapshot-card {
  background: var(--paper); border-radius: 14px; padding: 26px 18px;
  border-top: 3px solid var(--brass);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.snapshot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.snapshot-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.snapshot-card strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.snapshot-card span { font-size: 0.78rem; color: var(--muted); }

/* -------------------- Photo gallery (auto-scroll) -------------------- */

.gallery-section { padding: 70px 0; background: #fff; text-align: center; }
.gallery-scroll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll-x 45s linear infinite;
}
.gallery-scroll:hover .gallery-track { animation-play-state: paused; }
.gallery-item {
  flex-shrink: 0;
  width: 260px; height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
@keyframes gallery-scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .gallery-item { width: 190px; height: 140px; }
}

/* -------------------- Chat window (unified, real chat-app feel) -------------------- */

.chat-window {
  background: #fff;
  border-radius: 16px;
  border-top: 3px solid var(--brass);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 72vh;
  max-height: 720px;
}
.chat-window-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-back-btn {
  display: none;
  color: var(--muted); text-decoration: none; font-size: 1.2rem;
  padding: 4px 6px 4px 0;
}
.chat-window-name { display: block; font-size: 0.95rem; color: var(--ink); }
.chat-window-status { display: block; font-size: 0.76rem; color: var(--muted); }

.chat-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--paper);
}
.chat-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.chat-empty-icon { font-size: 1.8rem; }
.chat-empty p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.chat-window-input-row {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.chat-window-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 16px;
  resize: none;
  max-height: 100px;
  font-family: inherit;
}
.chat-window-send {
  border-radius: 50% !important;
  width: 42px; height: 42px;
  padding: 0 !important;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .chat-back-btn { display: inline-block; }
  .chat-window { height: calc(100vh - 220px); border-radius: 0; }
}

/* -------------------- Global side panel (People You May Know + quick links) -------------------- */

.page-with-side {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.page-with-side .container { margin: 0; flex: 1 1 auto; min-width: 0; }
.global-side {
  width: 280px;
  flex-shrink: 0;
  margin-top: 40px;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.global-side-person {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  text-decoration: none; color: inherit;
  border-radius: 8px;
}
.global-side-person:hover { background: var(--paper); }
.global-side-person strong { display: block; font-size: 0.85rem; color: var(--ink); }
.global-side-person span { display: block; font-size: 0.74rem; color: var(--muted); text-transform: capitalize; }
.global-side-more { display: block; text-align: center; font-size: 0.82rem; margin-top: 8px; }
.global-side-link { display: block; padding: 8px 4px; font-size: 0.85rem; color: var(--ink); text-decoration: none; border-radius: 8px; }
.global-side-link:hover { background: var(--paper); }

@media (max-width: 1300px) {
  .global-side { display: none; }
}

/* -------------------- Event cards -------------------- */

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.event-card {
  display: flex; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass);
  border-radius: 12px; padding: 18px;
  text-decoration: none; color: inherit;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card--past { opacity: 0.72; }
.event-card-date {
  width: 52px; flex-shrink: 0; text-align: center;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 0;
}
.event-card-month { display: block; font-size: 0.65rem; text-transform: uppercase; color: var(--brass-light); letter-spacing: 0.05em; }
.event-card-day { display: block; font-size: 1.2rem; font-weight: 700; font-family: var(--font-display); }
.event-card-body { flex: 1; min-width: 0; }
.event-card-body h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 6px; color: var(--ink); }
.event-card-meta { font-size: 0.78rem; color: var(--muted); margin: 0 0 8px; }
.event-card-desc { font-size: 0.84rem; color: var(--slate); margin: 0 0 10px; }

.chat-menu-btn {
  cursor: pointer; list-style: none;
  font-size: 1.3rem; color: var(--muted); padding: 4px 8px; border-radius: 6px;
  flex-shrink: 0;
}
.chat-menu-btn::-webkit-details-marker { display: none; }
.chat-menu-btn:hover { background: var(--paper); }
.dropdown-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; background: none; border: none; cursor: pointer;
  font-size: 0.88rem; color: var(--ink); font-weight: 500;
  border-radius: 0;
}
.dropdown-menu-item:hover { background: var(--paper); box-shadow: none; transform: none; }
.dropdown-menu-item--danger { color: var(--error); }
.chat-blocked-notice {
  background: var(--error-bg); color: var(--error);
  padding: 10px 20px; font-size: 0.85rem; text-align: center;
  border-bottom: 1px solid var(--line);
}

/* -------------------- File inputs (global — no native "Choose File" chrome anywhere) -------------------- */

input[type="file"] {
  display: block;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}
input[type="file"]:hover { border-color: var(--brass); }
input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-right: 14px;
  transition: opacity 140ms var(--ease);
}
input[type="file"]::file-selector-button:hover { opacity: 0.85; }
input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 14px;
}

.sidebar-quicklink-btn { display: block; width: 100%; text-align: center; text-decoration: none; }

/* -------------------- Footer -------------------- */

.site-footer {
  text-align: center;
  padding: 28px 20px 36px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.site-footer strong {
  color: var(--brass-dark);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.footer-credit-link { text-decoration: none; transition: opacity 140ms var(--ease); }
.footer-credit-link:hover { opacity: 0.75; text-decoration: underline; }

/* -------------------- Extra visual polish -------------------- */

button, .btn, .btn-secondary, .btn-brass, input[type=submit] {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
}
button:hover, .btn:hover, input[type=submit]:hover {
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-3) 100%);
  box-shadow: 0 4px 14px rgba(18, 33, 61, 0.22);
}
.btn-secondary {
  background: transparent !important;
}
.btn-secondary:hover {
  background: var(--paper) !important;
}
.btn-brass {
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-dark) 100%);
}
.btn-brass:hover {
  background: linear-gradient(135deg, var(--brass-dark) 0%, #7a5220 100%);
}

.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-light) 60%, transparent 100%);
}
.card--muted::before { display: none; }
.card:has(.li-cover)::before { display: none; }

.avatar {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--brass-light);
  transition: box-shadow 200ms var(--ease);
}
.avatar:hover { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--brass); }

.stat {
  background: linear-gradient(160deg, #fff 0%, #fbf9f4 100%);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.pill-verified {
  background: linear-gradient(120deg, var(--success-bg) 0%, #d7ede1 100%);
}
.pill-brass {
  background: linear-gradient(120deg, var(--brass-light) 0%, #f0e3c8 100%);
}
.streak-badge {
  animation: streak-pulse 1.8s ease-in-out infinite;
}
@keyframes streak-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* like button gets a little pop when active */
button[style*="border-color:var(--brass)"] {
  animation: like-pop 260ms var(--ease);
}
@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* subtle entrance for cards as they appear */
.card, .stat {
  animation: rise-in 260ms var(--ease);
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--brass-light); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--brass); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav, .li-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 20px 20px;
    border-bottom: 3px solid var(--brass);
    box-shadow: var(--shadow-md);
    z-index: 60;
  }
  .nav.nav-open, .li-nav.nav-open { display: flex; }
  .nav a, .nav-dropdown summary { padding: 10px 0; width: 100%; }
  .li-nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    color: var(--ink);
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
  }
  .li-nav-item.is-active { border-bottom: 1px solid var(--line); background: var(--paper); }
  .li-me summary { flex-direction: row; justify-content: flex-start; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-panel { position: static; box-shadow: none; border: none; border-top: 1px solid rgba(255,255,255,0.15); border-radius: 0; margin-top: 4px; background: var(--ink-2); }
  .nav-dropdown-panel a { color: #D9E0F0 !important; }
  .nav-dropdown-panel a:hover { background: var(--ink-3); color: #fff !important; }
  .bell { order: -1; margin-right: auto; }

  .container { padding: 24px 16px 60px; }
  h1 { font-size: 1.6rem; }
  .card { padding: 18px; }
}