:root {
  --white: #ffffff;
  --paper: #fbfaff;
  --ink: #1a1a2e;
  --ink-soft: #5b5a72;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --pink: #ff3d8a;
  --pink-deep: #db2777;
  --orange: #ff9f1c;
  --orange-deep: #ea7c00;
  --cyan: #06d6d6;
  --cyan-deep: #0891a8;
  --yellow: #ffe066;
  --chrome-bg: #0d0d16;
  --card: #ffffff;
  --line: #eae8f7;
  --radius: 20px;
  --shadow: 0 14px 34px -14px rgba(124, 58, 237, 0.28);
  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--pink) 55%, var(--orange) 100%);
  --grad-cool: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grad-brand);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--violet-deep); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  position: relative;
  z-index: 5;
  background: var(--chrome-bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .mark {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.35));
}
.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.75); }
.nav-links a:hover { color: #fff; }

/* HERO — vibrant photo background, brand-gradient scrim */
.hero {
  position: relative;
  padding: clamp(42px, 7vw, 90px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
  border-radius: 0 0 40px 40px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(155deg, rgba(124,58,237,0.88) 0%, rgba(255,61,138,0.82) 50%, rgba(255,159,28,0.85) 100%);
}
.hero-tutor { background-image: url("assets/photos/tutoring-hero.jpg"); }
.hero-family { background-image: url("assets/photos/classroom-hero.jpg"); }

.hero > * { position: relative; z-index: 1; }

/* PAGE BAND — compact brand-gradient title band for content-only pages
   (contact, privacy) that don't warrant a full photo hero */
.page-band {
  background: var(--grad-brand);
  border-radius: 0 0 40px 40px;
  padding: clamp(70px, 10vw, 110px) clamp(20px, 5vw, 48px) clamp(36px, 6vw, 56px);
  text-align: center;
  color: #fff;
}
.page-band .kicker { color: rgba(255,255,255,0.85); }
.page-band h2 { color: #fff; }
.page-band .section-note { color: rgba(255,255,255,0.9); margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero h1 .accent {
  color: var(--yellow);
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.94);
  font-size: 1.15rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
/* Body-lead text -- the longer descriptive sentence moved OUT of the hero/title
   area so the title area itself (eyebrow+h1 only) stays the same size on every
   page regardless of how much a given page has to say. Sits on the page's own
   gradient background, same light-text treatment as .hero-sub had. */
.page-lead {
  max-width: 640px;
  margin: clamp(28px, 5vw, 40px) auto clamp(10px, 2vw, 20px);
  text-align: center;
  color: rgba(255,255,255,0.94);
  font-size: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.cta-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cta-card {
  display: block;
  width: 300px;
  max-width: 100%;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cta-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px -16px rgba(124, 58, 237, 0.4);
}
.cta-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.cta-tutor { border-color: rgba(6, 214, 214, 0.35); }
.cta-tutor .icon { background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.cta-parent { border-color: rgba(255, 61, 138, 0.35); }
.cta-parent .icon { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.cta-card h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.cta-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.95rem; }
.cta-card .go {
  font-weight: 800;
  font-size: 0.9rem;
}
.cta-tutor .go { color: var(--cyan-deep); }
.cta-parent .go { color: var(--pink-deep); }

/* SECTIONS */
.section {
  padding: clamp(50px, 8vw, 80px) clamp(20px, 5vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.kicker {
  display: inline-block;
  background: var(--grad-cool);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-note { color: var(--ink-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
/* Fixed 3-across grid (district/county pills) -- auto-fit above spreads to as many
   columns as fit the viewport, which looks uneven for short pill-style cards. */
.steps-3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .steps-3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps-3col { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid transparent;
  border-image: var(--grad-brand) 1;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* MISSION */
.mission {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(155deg, #f3ecff 0%, #ffeef5 55%, #fff6e8 100%);
  border-radius: 28px;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid var(--line);
}
.mission h2 { font-size: 1.7rem; }
.mission p { color: var(--ink); }
.mission .note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid rgba(124, 58, 237, 0.15);
}
.mission .note h3 {
  font-size: 1.1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* FOOTER */
.footer {
  padding: 40px clamp(20px, 5vw, 48px) 50px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer a { color: var(--violet-deep); text-decoration: none; font-weight: 700; }
.footer .links { display: flex; gap: 18px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

/* INLINE FORMS (notify capture, contact) */
.mini-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mini-form input[type="email"],
.mini-form input[type="text"],
.mini-form textarea,
.mini-form select {
  flex: 1;
  min-width: 160px;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.mini-form textarea { min-height: 110px; resize: vertical; width: 100%; }
.mini-form input:focus,
.mini-form textarea:focus,
.mini-form select:focus {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}
.btn-grad {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--grad-brand);
  box-shadow: 0 8px 20px -8px rgba(255, 61, 138, 0.5);
  transition: transform 0.15s ease;
}
.btn-grad:hover { transform: translateY(-2px); }
.btn-grad:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }
.form-status { font-size: 0.9rem; font-weight: 700; margin-top: 10px; min-height: 1.2em; }
.form-status.ok { color: var(--cyan-deep); }
.form-status.err { color: var(--pink-deep); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.contact-card .field { margin-bottom: 16px; }
.contact-card label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.contact-card textarea { min-height: 140px; resize: vertical; }

/* COOKIE / PRIVACY NOTICE */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--chrome-bg);
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.88); flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--yellow); font-weight: 700; }
.cookie-banner button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--chrome-bg);
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--yellow);
}
.cookie-banner[hidden] { display: none; }

@media (max-width: 560px) {
  .nav-links { display: none; }
}

/* PRIVACY PAGE */
.legal {
  max-width: 720px; margin: 40px auto 60px; padding: clamp(24px,5vw,48px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul { padding-left: 22px; }

/* SIGNUP WIZARD */
.wiz-wrap { max-width: 640px; margin: 0 auto; padding: 44px clamp(20px,5vw,48px) 80px; }
.wiz-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.wiz-progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.wiz-progress span.done { background: var(--grad-brand); }
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-step .kicker { margin-bottom: 6px; }
.wiz-step h2 { font-size: 1.5rem; margin-bottom: 8px; }
.wiz-step .explain { color: var(--ink-soft); margin-bottom: 24px; line-height: 1.7; }
.wiz-step .explain strong { color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field .sub { font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }

.url-preview {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-top: 8px; font-family: "Baloo 2", sans-serif;
  font-weight: 700; text-align: center; color: var(--ink-soft);
}
.url-preview .slug-part { color: var(--violet-deep); }
.slug-status { font-size: 0.85rem; font-weight: 700; margin-top: 6px; min-height: 1.2em; }
.slug-status.ok { color: var(--cyan-deep); }
.slug-status.err { color: var(--pink-deep); }

.radio-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.radio-card {
  flex: 1; min-width: 160px; display: flex; align-items: flex-start; gap: 10px;
  border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer;
}
.radio-card.picked { border-color: var(--violet); background: rgba(124,58,237,0.05); }
.radio-card input { margin-top: 3px; }
.radio-card .t { font-weight: 800; font-size: 0.9rem; }
.radio-card .d { font-size: 0.8rem; color: var(--ink-soft); }

.subject-picker { position: relative; }
.subject-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  font-family: inherit; font-size: 0.95rem; text-align: left;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.subject-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 14px; max-height: 320px; overflow-y: auto;
}
.subject-group { margin-bottom: 12px; }
.subject-group:last-child { margin-bottom: 0; }
.subject-group-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.subject-group .options { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 10px; }
.subject-group label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; line-height: 1.2; padding: 6px 4px; cursor: pointer; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subject-group label:hover { background: var(--paper); }
.subject-group input[type="checkbox"] { flex-shrink: 0; margin: 0; width: 16px; height: 16px; accent-color: var(--violet); }
.subject-other-input { margin-top: 4px; width: 100%; font-family: inherit; font-size: 0.88rem; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-tag { display: flex; align-items: center; gap: 6px; background: rgba(124,58,237,0.08); color: var(--violet-deep); font-size: 0.82rem; font-weight: 700; padding: 6px 8px 6px 12px; border-radius: 999px; }

.addr-autocomplete { position: relative; }
.addr-suggestions { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 6; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.addr-suggestions button { display: block; width: 100%; text-align: left; border: none; background: none; font-family: inherit; font-size: 0.9rem; color: var(--ink); padding: 10px 14px; cursor: pointer; }
.addr-suggestions button:hover { background: var(--paper); }
.addr-suggestions button .city { color: var(--ink-soft); font-size: 0.82rem; }
.addr-suggestions .powered-by { font-size: 0.7rem; color: var(--ink-soft); padding: 6px 14px; border-top: 1px solid var(--line); }

.district-help {
  background: rgba(6,214,214,0.06); border: 1px solid rgba(6,214,214,0.2);
  border-radius: 12px; padding: 14px 16px; font-size: 0.85rem; color: var(--ink); margin-top: 10px;
}

.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 16px; }
.wiz-back { font-family: inherit; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); background: none; border: none; cursor: pointer; }
.wiz-error { color: var(--pink-deep); font-weight: 700; font-size: 0.88rem; margin-top: 12px; min-height: 1.2em; }

.review-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.review-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.review-list div:last-child { border-bottom: none; }
.review-list .k { color: var(--ink-soft); font-weight: 700; }
.review-list .v { text-align: right; }

.done-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--grad-cool); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.done-steps { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-top: 20px; }
.done-steps li { margin-bottom: 10px; }

/* TUTOR PUBLIC PROFILE PREVIEW (jdoe) */
.preview-banner {
  background: var(--grad-cool);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 16px;
}
.preview-banner a { color: #fff; text-decoration: underline; }
.back-link {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 700; font-size: 0.9rem;
}
.back-link:hover { color: #fff; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.save-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: inherit; font-weight: 800; font-size: 0.82rem;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.save-btn[aria-pressed="true"] { background: var(--grad-brand); color: #fff; border-color: transparent; }
.save-btn[aria-pressed="true"] svg { fill: #fff; }
.save-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.profile-hero {
  padding: clamp(40px, 7vw, 70px) clamp(20px, 5vw, 48px) 30px;
  background: linear-gradient(155deg, rgba(124,58,237,0.10) 0%, rgba(255,61,138,0.08) 55%, rgba(255,159,28,0.10) 100%);
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto;
}
.avatar {
  width: 92px; height: 92px; border-radius: 24px; flex-shrink: 0;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.9rem; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(124,58,237,0.5);
}
.profile-id h1 { font-size: 1.7rem; margin-bottom: 4px; }
.slug-line { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 12px; }
.slug-line strong { color: var(--violet-deep); font-weight: 800; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.badge.verified { background: rgba(6,214,214,0.14); color: var(--cyan-deep); }
.badge.subject { background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); }
.toggle-wrap { display: flex; justify-content: center; margin: 28px 0; }
.toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); gap: 4px; }
.toggle button { border: none; background: transparent; font-family: inherit; font-weight: 800; font-size: 0.88rem; color: var(--ink-soft); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--grad-brand); color: #fff; }
.profile-body { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) 60px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
@media (max-width: 700px) { .profile-body { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; }
.panel .label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.rate-figure { font-family: "Baloo 2", sans-serif; font-size: 1.7rem; color: var(--violet-deep); }
.rate-figure span { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.gated { position: relative; }
.gated .veil { position: absolute; inset: 0; background: rgba(251,250,255,0.85); backdrop-filter: blur(3px); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.lock-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; }
.veil p { font-size: 0.88rem; font-weight: 700; color: var(--ink); max-width: 22ch; margin: 0; }
.family-toast { display: none; align-items: center; gap: 10px; background: rgba(6,214,214,0.10); border: 1px solid rgba(6,214,214,0.3); border-radius: 12px; padding: 10px 16px; font-size: 0.86rem; font-weight: 700; color: var(--cyan-deep); max-width: 1080px; margin: 0 auto 18px; }

/* SIGNED-IN APP SHELL — shared by family dashboard + tutor edit-profile previews.
   Deliberately different from the public .nav header (dark chrome bar, session
   avatar) since these represent a logged-in experience, not a marketing page. */
.dash-header, .tutor-header {
  background: var(--chrome-bg);
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.dash-header { justify-content: space-between; }
.dash-brand, .tutor-brand { display: flex; align-items: center; gap: 9px; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.15rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-brand img, .tutor-brand img { width: 30px; height: 30px; }
.dash-nav { display: flex; gap: 22px; margin-right: auto; margin-left: 32px; }
.dash-nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.dash-nav a:hover, .dash-nav a.active { color: #fff; }
@media (max-width: 700px) { .dash-nav { display: none; } }
.session {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 6px 14px 6px 8px;
}
.session .av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-cool); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.72rem; }
.session span { color: #fff; font-size: 0.85rem; font-weight: 700; }
.session .plan { color: rgba(255,255,255,0.55); font-weight: 600; }

/* FAMILY DASHBOARD PREVIEW */
.dash-hero { max-width: 1080px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 48px) 10px; }
.dash-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.dash-hero p { color: var(--ink-soft); max-width: 60ch; }

.filters {
  max-width: 1080px; margin: 20px auto 30px; padding: 0 clamp(20px, 5vw, 48px);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filters input[type="search"] {
  flex: 1; min-width: 220px; font-family: inherit; font-size: 0.95rem;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.chip {
  font-family: inherit; font-weight: 700; font-size: 0.85rem;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--grad-brand); color: #fff; border-color: transparent; }
.tcard { position: relative; }
.save-heart {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft);
}
.save-heart[aria-pressed="true"] { background: rgba(255,61,138,0.12); color: var(--pink-deep); border-color: transparent; }
.save-heart[aria-pressed="true"] svg { fill: currentColor; }
.save-heart svg { pointer-events: none; }

.directory {
  max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) 70px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform 0.15s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.tcard:hover { transform: translateY(-3px); }
.tcard .top { display: flex; gap: 12px; align-items: center; }
.tcard .av2 {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; color: #fff; font-size: 1.1rem;
}
.tcard h3 { font-size: 1.1rem; margin: 0 0 3px; }
.tcard .district { font-size: 0.78rem; color: var(--cyan-deep); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.tcard .subjects { display: flex; gap: 6px; flex-wrap: wrap; }
.tcard .subjects span { font-size: 0.74rem; font-weight: 700; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; }
.tcard .bio { font-size: 0.88rem; color: var(--ink-soft); margin: 0; flex: 1; }
.tcard .rate { font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--violet-deep); font-size: 1rem; }
.tcard .rate span { font-size: 0.75rem; color: var(--ink-soft); font-weight: 600; }
.tcard .view { font-weight: 800; font-size: 0.85rem; color: var(--pink-deep); }

/* TUTOR APP SHELL — signed-in tutor nav (edit-profile, public-profile-preview toggle) */
.tutor-nav { display: flex; gap: 20px; margin-right: auto; }
.tutor-nav a { color: rgba(255,255,255,0.65); text-decoration: none; font-weight: 700; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.tutor-nav a:hover, .tutor-nav a.active { color: #fff; }
.tutor-nav .badge-count { background: var(--pink); color: #fff; font-size: 0.68rem; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
@media (max-width: 760px) { .tutor-nav { display: none; } }
.tutor-session { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 0.85rem; font-weight: 700; }
.tutor-session .av { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* TUTOR EDIT-PROFILE PREVIEW */
.edit-wrap { max-width: 760px; margin: 0 auto; padding: 44px clamp(20px, 5vw, 48px) 70px; }
.edit-head { margin-bottom: 30px; }
.edit-head p { color: var(--ink-soft); }
.edit-head .view-live { font-weight: 700; font-size: 0.9rem; }

.form-section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 20px;
}
.form-section h2 { font-size: 1.1rem; margin-bottom: 4px; }
.form-section .hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 18px; }

.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar-preview {
  width: 68px; height: 68px; border-radius: 20px; flex-shrink: 0;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; color: #fff; font-size: 1.3rem;
}
.upload-btn {
  font-family: inherit; font-weight: 800; font-size: 0.85rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
}

.verify-status {
  display: flex; align-items: center; gap: 12px;
  background: rgba(6,214,214,0.08); border: 1px solid rgba(6,214,214,0.25);
  border-radius: 14px; padding: 14px 16px; margin-top: 6px;
}
.verify-status .icon { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-cool); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.verify-status .t { font-weight: 800; font-size: 0.88rem; color: var(--cyan-deep); }
.verify-status .d { font-size: 0.8rem; color: var(--ink-soft); }
.reverify-row { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reverify-row .d { font-size: 0.8rem; color: var(--ink-soft); flex: 1; min-width: 220px; margin: 0; }
.reverify-btn {
  font-family: inherit; font-weight: 800; font-size: 0.85rem; white-space: nowrap;
  background: var(--paper); border: 1.5px solid var(--violet); color: var(--violet-deep);
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
}
.reverify-btn:hover { background: rgba(124,58,237,0.06); }
.reverify-btn.sent { border-color: var(--cyan); color: var(--cyan-deep); cursor: default; }

.address-verify {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700;
  padding: 10px 14px; border-radius: 10px; margin-top: 4px;
}
.address-verify.ok { background: rgba(6,214,214,0.08); color: var(--cyan-deep); }
.address-verify.checking { background: rgba(124,58,237,0.06); color: var(--violet-deep); }
.address-verify.err { background: rgba(255,61,138,0.08); color: var(--pink-deep); }

/* subject picker (edit-profile variant — same visual language as signup's) */
.subject-group .options { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 10px; }
.subject-group label {
  display: flex; align-items: center; gap: 8px; font-size: 0.9rem; line-height: 1.2;
  padding: 6px 4px; cursor: pointer; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip-tag button { border: none; background: none; color: inherit; cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 2px; }

/* vacation toggle */
.vacation-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.switch { position: relative; flex-shrink: 0; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.switch-track { display: block; width: 44px; height: 24px; border-radius: 999px; background: var(--line); transition: background 0.15s ease; }
.switch-thumb { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin: 3px; transition: transform 0.15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.switch input:checked + .switch-track { background: var(--orange); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.vacation-toggle .t { font-weight: 800; font-size: 0.92rem; }
.vacation-toggle .d { font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }

/* availability rows */
#availability-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.avail-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avail-row select, .avail-row input[type="time"], .avail-row input[type="date"] {
  font-family: inherit; font-size: 0.88rem; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.avail-row .to { font-size: 0.85rem; color: var(--ink-soft); }
.remove-row { margin-left: auto; border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 8px; }
.remove-row:hover { background: rgba(255,61,138,0.1); color: var(--pink-deep); }
.add-row-btn {
  font-family: inherit; font-weight: 800; font-size: 0.85rem;
  background: var(--paper); border: 1px dashed var(--line); color: var(--violet-deep);
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
}

.private-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.save-bar {
  position: sticky; bottom: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 20px; margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -10px 30px -14px rgba(20,16,40,0.2);
}
.save-bar .status { font-size: 0.85rem; color: var(--ink-soft); }
