/* Tutor Space — The Mood Company */

@font-face {
  font-family: 'Stara';
  src: url('../assets/fonts/Stara-Medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stara';
  src: url('../assets/fonts/Stara-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stara';
  src: url('../assets/fonts/Stara-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #1e3a8a;
  --cobalt-deep: #152c6b;
  --indigo: #2f3f8f;
  --indigo-soft: #4a5aad;
  --lavender: #ebe7f4;
  --lavender-soft: #f4f1f9;
  --periwinkle: #b8b6d9;
  --periwinkle-soft: #d4d2eb;
  --off-white: #f7f6f3;
  --cream: #faf9f7;
  --white: #ffffff;
  --text: #1a2438;
  --text-muted: #5c6b82;
  --text-soft: #7a8799;
  --border: #d9dde8;
  --border-light: #e8ebf2;
  --success: #1f7a4d;
  --success-bg: #e7f6ee;
  --info: #2b6cb0;
  --info-bg: #e8f1fb;
  --warn: #9a6b16;
  --warn-bg: #f8f0dc;
  --progress: #3d5a9e;
  --progress-bg: #e9eef8;
  --shadow: 0 8px 30px rgba(30, 58, 138, 0.08);
  --shadow-soft: 0 2px 12px rgba(30, 58, 138, 0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --sidebar-width: 260px;
  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Stara', system-ui, sans-serif;
  --font-brand: 'Stara', 'Source Sans 3', system-ui, sans-serif;
  --ease: 0.22s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, textarea, select { font: inherit; }

img { max-width: 100%; display: block; }

.star-mark { font-style: normal; }

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon--xs { width: .85rem; height: .85rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 2rem; height: 2rem; }
.icon--field { width: 1.05rem; height: 1.05rem; color: var(--text-soft); }
.icon--chevron { width: .85rem; height: .85rem; margin-left: auto; transition: transform var(--ease); }

.muted { color: var(--text-muted); font-size: .92rem; }
.text-link { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .7rem 1.15rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform .15s ease, box-shadow var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, var(--indigo-soft), var(--cobalt));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.22);
}
.btn--primary:hover {
  background: linear-gradient(180deg, var(--indigo), var(--cobalt-deep));
  transform: translateY(-1px);
}
.btn--secondary {
  background: var(--white);
  color: var(--cobalt);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--cobalt); background: var(--lavender-soft); }
.btn--ghost {
  background: transparent;
  color: var(--cobalt);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--lavender-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: .5rem .9rem; font-size: .88rem; }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.status-badge::before {
  content: '';
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
}
.status--active, .status--confirmed, .status--paid, .status--completed {
  color: var(--success);
  background: var(--success-bg);
}
.status--progress, .status--submitted, .status--new {
  color: var(--progress);
  background: var(--progress-bg);
}
.status--awaiting, .status--processing {
  color: var(--warn);
  background: var(--warn-bg);
}
.status--default {
  color: var(--text-muted);
  background: var(--border-light);
}

/* App shells */
.app--login { min-height: 100vh; }
.app--dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--lavender-soft);
}

/* ========== LOGIN ========== */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 15% 100%, rgba(184, 182, 217, 0.35), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--lavender-soft) 100%);
}

.login-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 2.5rem;
  position: relative;
  z-index: 2;
}

.login-nav__brand {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}

.login-nav__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.login-nav__by {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.login-nav__support {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
}
.login-nav__support:hover { color: var(--cobalt); }

.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 2.5rem 2.5rem;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2rem 2rem 3rem 1rem;
  overflow: hidden;
  border-radius: 0 0 0 4px;
}

.login-brand__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: rgba(184, 182, 217, 0.55);
}

.decor-star {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0%, transparent 70%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: .55;
  animation: floatStar 10s ease-in-out infinite;
}

.decor-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  left: -60px;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(212, 210, 235, 0.85), rgba(184, 182, 217, 0.35));
  filter: blur(2px);
}

.decor-waves {
  position: absolute;
  left: 0;
  right: 20%;
  bottom: 8%;
  height: 140px;
  width: 90%;
  opacity: .55;
}

@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.login-brand__content {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  animation: riseIn .7s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--indigo);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 1.25rem;
}

.login-brand__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--cobalt);
  margin-bottom: 1.15rem;
}

.login-brand__lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 2.25rem;
  max-width: 26rem;
}

.login-brand__footer {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.5;
}

.login-brand__rule {
  display: inline-flex;
  align-items: center;
  color: var(--periwinkle);
  margin-top: .15rem;
  position: relative;
}
.login-brand__rule::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--periwinkle-soft);
  margin-left: .4rem;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  animation: riseIn .7s ease .08s both;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  padding: 2.25rem 2rem 1.5rem;
}

.login-card__header { margin-bottom: 1.5rem; }

.login-card__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.login-card__subtitle {
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.form-alert {
  background: #fceaea;
  color: #9b2c2c;
  border: 1px solid #f0c4c4;
  border-radius: 8px;
  padding: .7rem .9rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-weight: 600; font-size: .9rem; color: var(--text); }

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__control > .icon--field {
  position: absolute;
  left: .85rem;
  pointer-events: none;
}

.field__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem .9rem .75rem 2.5rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field__input--password { padding-right: 2.6rem; }
.field__input--plain { padding-left: .9rem; }
.field__input:focus {
  outline: none;
  border-color: var(--indigo-soft);
  box-shadow: 0 0 0 3px rgba(74, 90, 173, 0.15);
}
.field__input::placeholder { color: #9aa6b8; }

.field__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem .9rem;
  resize: vertical;
  min-height: 96px;
  background: var(--white);
}
.field__textarea:focus {
  outline: none;
  border-color: var(--indigo-soft);
  box-shadow: 0 0 0 3px rgba(74, 90, 173, 0.15);
}

.field__toggle {
  position: absolute;
  right: .55rem;
  border: none;
  background: transparent;
  padding: .35rem;
  cursor: pointer;
  color: var(--text-soft);
  display: inline-flex;
  border-radius: 6px;
}
.field__toggle:hover { color: var(--cobalt); background: var(--lavender-soft); }

.login-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .15rem 0 .35rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--cobalt);
}

.login-card__or {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.35rem 0 1rem;
  color: var(--text-soft);
  font-size: .85rem;
}
.login-card__or::before,
.login-card__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.login-card__help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1.35rem;
}

.login-card__footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.1rem;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-weight: 700;
  color: var(--cobalt);
  margin-left: .2rem;
  text-decoration: none;
}
.portal-link:hover { text-decoration: underline; }

.login-transition {
  position: fixed;
  inset: 0;
  background: rgba(247, 246, 243, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity .28s ease;
  backdrop-filter: blur(6px);
}
.login-transition--show { opacity: 1; }
.login-transition__inner {
  text-align: center;
  color: var(--cobalt);
  animation: riseIn .45s ease;
}
.login-transition__brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin: .75rem 0 .35rem;
}
.login-transition__text { color: var(--text-muted); }

/* ========== DASHBOARD SHELL ========== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.sidebar__brand { padding: 0 .65rem 1.35rem; }

.sidebar__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--cobalt);
  letter-spacing: -0.02em;
}

.sidebar__by {
  font-size: .8rem;
  color: var(--text-soft);
  margin-top: .2rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 1rem;
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}
.side-nav__link:hover {
  background: var(--lavender-soft);
  color: var(--cobalt);
  text-decoration: none;
}
.side-nav__link.is-active {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.1), rgba(30, 58, 138, 0.04));
  color: var(--cobalt);
  font-weight: 600;
}
.side-nav__icon { display: inline-flex; color: inherit; }
.side-nav__group.is-open .icon--chevron { transform: rotate(90deg); }

.side-nav__sub {
  display: none;
  flex-direction: column;
  padding: .15rem 0 .35rem .5rem;
  gap: .1rem;
}
.side-nav__group.is-open .side-nav__sub { display: flex; }

.side-nav__sublink {
  padding: .45rem .75rem .45rem 2.2rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: .86rem;
  text-decoration: none;
}
.side-nav__sublink:hover,
.side-nav__sublink.is-active {
  color: var(--cobalt);
  background: var(--lavender-soft);
  text-decoration: none;
}

.sidebar__logout {
  margin-top: auto;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  padding: .65rem;
  cursor: pointer;
  font-weight: 500;
}
.sidebar__logout:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 36, 56, 0.35);
  z-index: 25;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem 1rem;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--lavender-soft) 70%, transparent);
  z-index: 10;
}

.topbar__menu {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: .45rem;
  cursor: pointer;
  color: var(--cobalt);
}

.topbar__greeting {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.topbar__sub {
  color: var(--text-muted);
  margin-top: .3rem;
  font-size: .98rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}
.icon-btn:hover { color: var(--cobalt); border-color: var(--periwinkle-soft); }
.icon-btn__dot {
  position: absolute;
  top: .45rem;
  right: .5rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--cobalt);
}

.avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-soft), var(--cobalt));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.profile-menu { position: relative; }
.profile-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--border-light);
  background: var(--white);
  border-radius: 999px;
  padding: .25rem .7rem .25rem .25rem;
  cursor: pointer;
  color: var(--text);
}
.profile-menu__name { font-weight: 600; font-size: .9rem; }
.profile-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.profile-menu__dropdown[hidden] {
  display: none !important;
}
.profile-menu__dropdown a,
.profile-menu__dropdown button {
  border: none;
  background: transparent;
  text-align: left;
  padding: .6rem .75rem;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
}
.profile-menu__dropdown a:hover,
.profile-menu__dropdown button:hover {
  background: var(--lavender-soft);
  color: var(--cobalt);
}

.main__content {
  padding: 0 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Panels & layout blocks */
.panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.panel--accent {
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.06), rgba(184, 182, 217, 0.18)),
    var(--white);
  border-color: rgba(74, 90, 173, 0.22);
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.1);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: -0.015em;
}

.panel__sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: .2rem;
}

.section-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: .45rem;
}

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

.status-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.status-card__label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .55rem;
}

.status-card__value { font-size: 1.05rem; }
.status-card__value--num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1;
}

.info-tip {
  position: relative;
  display: inline-flex;
  color: var(--text-soft);
  cursor: help;
}
.info-tip__bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .5rem);
  transform: translateX(-50%);
  width: 220px;
  background: var(--text);
  color: var(--white);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
  padding: .55rem .7rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  z-index: 5;
}
.info-tip:hover .info-tip__bubble,
.info-tip:focus .info-tip__bubble { opacity: 1; }

.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.6rem;
}

.next-step__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: -0.02em;
  margin-bottom: .4rem;
}

.next-step__desc {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: .98rem;
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
  gap: 1.1rem;
  align-items: start;
}

.opp-grid {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.opp-grid--page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.opp-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, #fcfcfd, var(--white));
  transition: border-color var(--ease), box-shadow var(--ease);
}
.opp-card:hover {
  border-color: var(--periwinkle-soft);
  box-shadow: var(--shadow-soft);
}

.opp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}

.opp-card__type {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--lavender);
  padding: .25rem .55rem;
  border-radius: 999px;
}

.opp-card--event .opp-card__type { background: #e8eef8; color: var(--info); }
.opp-card--lecture .opp-card__type { background: #efeaf8; color: #6b4f9a; }

.opp-card__score {
  font-size: .82rem;
  font-weight: 700;
  color: var(--success);
}

.opp-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .7rem;
}

.opp-card__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.opp-card__details li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.opp-card__details strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.opp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.schedule-item {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border-light);
}
.schedule-item:last-child { border-bottom: none; }

.schedule-item__date {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 10px;
  background: var(--lavender-soft);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.schedule-item__day {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--indigo);
}
.schedule-item__num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1;
}

.schedule-item__time {
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 600;
}
.schedule-item__title {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

.schedule-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.work-block { margin-top: 1.1rem; }
.work-block:first-of-type { margin-top: 0; }
.work-block__title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .55rem;
}

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.data-table th {
  text-align: left;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  padding: .45rem .5rem .55rem 0;
  border-bottom: 1px solid var(--border-light);
}
.data-table td {
  padding: .75rem .5rem .75rem 0;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.data-table td strong { display: block; color: var(--text); }
.data-table td .muted { display: block; margin-top: .1rem; }
.data-table tr:last-child td { border-bottom: none; }

.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.earnings-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.earnings-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.earnings-list dt { color: var(--text-muted); font-size: .92rem; }
.earnings-list dd {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--cobalt);
  font-size: 1.15rem;
}

.announce-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.announce-list li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-muted);
  font-size: .95rem;
}
.announce-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--periwinkle);
  font-size: .7rem;
  top: .2rem;
}

.page-header { margin-bottom: .25rem; }
.page-header__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--cobalt);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header__sub {
  color: var(--text-muted);
  margin-top: .35rem;
  max-width: 40rem;
}

.profile-form { display: flex; flex-direction: column; gap: 1rem; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.profile-qa { margin-bottom: 1rem; }
.profile-qa:last-child { margin-bottom: 0; }
.profile-qa__q { font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.profile-qa__a { color: var(--text-muted); }

.profile-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}
.profile-save__notice {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 34rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  padding: .75rem 1.15rem;
  border-radius: 999px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
  box-shadow: var(--shadow);
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-split { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 2rem;
  }
  .login-brand {
    padding: 1rem 0 0;
    min-height: auto;
  }
  .login-brand__title { font-size: 2.2rem; }
  .login-brand__lede br { display: none; }
  .decor-star { width: 180px; height: 180px; top: 0; right: 0; opacity: .35; }
  .login-nav { padding: 1rem 1.25rem; }
  .login-nav__by { display: none; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: translateX(0); }
  .topbar__menu { display: inline-flex; }
  .topbar { align-items: center; padding: 1rem 1.15rem; }
  .topbar__welcome { flex: 1; }
  .profile-menu__name { display: none; }
  .main__content { padding: 0 1.15rem 2rem; }
  .next-step {
    flex-direction: column;
    align-items: stretch;
  }
  .next-step .btn { width: 100%; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .profile-save {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-save .btn { width: 100%; }
}

@media (max-width: 640px) {
  .status-grid { grid-template-columns: 1fr; }
  .login-card { padding: 1.6rem 1.25rem 1.25rem; }
  .opp-card__details li { flex-direction: column; gap: .1rem; }
  .opp-card__details strong { text-align: left; }
  .opp-card__actions .btn { width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
  .login-brand__footer br { display: none; }
  .sm-card__actions { flex-direction: column; }
  .sm-card__actions .btn { width: 100%; }
  .sm-detail__actions { flex-direction: column; }
  .sm-detail__actions .btn { width: 100%; }
  .admin-filters { flex-direction: column; }
  .form-row { flex-direction: column; }
}

/* ========== STUDENT MATCHES ========== */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.sm-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.sm-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}

.sm-card__identity {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sm-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--periwinkle-soft));
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.sm-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sm-card__meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .1rem;
}

.sm-card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.sm-card__score {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--success);
}

.sm-card__score--lg { font-size: 1.35rem; }

.sm-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .75rem;
  font-size: .86rem;
}

.sm-card__facts dt {
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sm-card__facts dd {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.sm-card__why-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--indigo);
  margin-bottom: .4rem;
}

.sm-card__why ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.sm-card__why li {
  font-size: .88rem;
  color: var(--text-muted);
  padding-left: .9rem;
  position: relative;
}

.sm-card__why li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--periwinkle);
  font-size: .55rem;
  top: .25rem;
}

.sm-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  padding-top: .25rem;
}

.sm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ease);
}

.filter-chip:hover { border-color: var(--cobalt); color: var(--cobalt); }
.filter-chip.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.sm-sort {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
}

.sm-sort select { min-width: 180px; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.empty-state__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cobalt);
  margin-bottom: .5rem;
}

.empty-state__text { color: var(--text-muted); max-width: 28rem; margin: 0 auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--cobalt);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.sm-detail__header { margin-bottom: 1rem; }
.sm-detail__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.sm-detail__scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}

.sm-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sm-detail__note {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--lavender-soft);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text-muted);
}

.sm-detail__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.detail-dl {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.detail-dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .75rem;
  font-size: .92rem;
}

.detail-dl dt { color: var(--text-soft); font-weight: 600; }
.detail-dl dd { color: var(--text); margin: 0; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 36, 56, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.25rem;
}

.icon-btn__count {
  position: absolute;
  top: -.15rem;
  right: -.15rem;
  background: var(--cobalt);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== ADMIN ========== */
.app--admin { display: flex; min-height: 100vh; }

.admin-app {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
  margin-top: .5rem;
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
  background: var(--lavender-soft);
  color: var(--cobalt);
  text-decoration: none;
}

.admin-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--lavender-soft);
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(180deg, var(--lavender-soft) 70%, transparent);
}

.admin-topbar__label {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--cobalt);
  font-size: 1.1rem;
}

.admin-content {
  padding: 0 1.75rem 2rem;
  flex: 1;
}

.admin-stats-grid { margin-bottom: 0; }

.admin-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

.admin-filters .field__input { flex: 1; min-width: 140px; }

.admin-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.data-table--admin { font-size: .85rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .sm-detail__grid { grid-template-columns: 1fr; }
  .sm-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .detail-dl > div { grid-template-columns: 1fr; gap: .15rem; }
}
