/* ============================================================
   TutorHabesha — design system
   Mostly white, pink CTAs, gold brand accent, deep purple for
   selected states. Glass only on: navbar, search bar, modals,
   floating cards.
   ============================================================ */

:root {
  --white: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-blush: #FFF3F8;
  --pink: #FF4FB8;
  --pink-soft: #F75EA8;
  --pink-deep: #EC2FA3;
  --purple: #3520C7;
  --gold: #FFD23F;
  --gold-soft: #FFE88A;
  --blue-accent: #4D8BFF;
  --ink: #111111;
  --muted: #666666;
  --border: #E8E8E8;

  --green: #1F9D5B;
  --green-bg: #E8F7EF;
  --blue: #2563C7;
  --blue-bg: #E9F1FC;
  --red: #D2384A;
  --red-bg: #FDECEE;
  --gold-bg: #FFF6DA;
  --purple-bg: #ECE9FB;
  --pink-bg: #FFE4F3;

  --font-display: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-review: "Fredoka", "Manrope", sans-serif;
  --font-ethiopic: "Noto Sans Ethiopic", "Nyala", "Ebrima", sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(17,17,17,.04), 0 10px 30px rgba(17,17,17,.06);
  --shadow-lift: 0 2px 6px rgba(17,17,17,.05), 0 18px 50px rgba(17,17,17,.10);
  --shadow-pink: 0 8px 22px rgba(255,79,184,.32), inset 0 1px 0 rgba(255,255,255,.55);

  --container: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.028em;
}
h1.display { font-size: clamp(2.45rem, 5.6vw, 4.1rem); line-height: 1.05; }
.section-title { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow .glyph-dot { width: 14px; height: 14px; color: var(--gold); flex: none; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 620px; }

/* ---------- Brand wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: 24px; letter-spacing: -0.035em; color: var(--ink);
  line-height: 1; white-space: nowrap;
}
.wordmark .glyph { width: .56em; height: .8em; align-self: center; margin: 0 .09em 0 .07em; transform: translateY(-.05em); color: var(--gold); }
.wordmark--lg { font-size: 34px; }
.wordmark--footer { font-size: 28px; }

/* Image logo (uploaded brand assets) */
.logo-link { display: inline-flex; align-items: center; flex: none; }
.logo-link img { height: 20px; width: auto; display: block; }
.logo-link--footer img { height: 23px; }

/* Ethiopic script always renders in Noto Sans Ethiopic */
:lang(am), :lang(ti) { font-family: var(--font-ethiopic); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  padding: 13px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #FF6FC6 0%, var(--pink) 52%, var(--pink-deep) 100%);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow-pink);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 1px 1px 55% 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events: none;
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255,79,184,.45), inset 0 1px 0 rgba(255,255,255,.55); transform: translateY(-1px); }

.btn-secondary {
  color: var(--ink);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(17,17,17,.05);
}
.btn-secondary:hover { border-color: #d9d9d9; box-shadow: var(--shadow-soft); transform: translateY(-1px); }

.btn-ghost { color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-danger-soft { background: var(--red-bg); color: var(--red); border: 1px solid transparent; }
.btn-danger-soft:hover { border-color: #f2c4ca; }
.btn-success-soft { background: var(--green-bg); color: var(--green); border: 1px solid transparent; }
.btn-success-soft:hover { border-color: #bfe6d0; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
  line-height: 1.4; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; flex: none; }
.badge-verified { background: var(--purple-bg); color: var(--purple); }
.badge-skilled { background: var(--gold-bg); color: #8a6d00; }
.badge-format { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-new { background: var(--pink-bg); color: var(--pink-deep); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 12px;
  border-radius: var(--r-pill); white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-requested { background: var(--pink-bg); color: var(--pink-deep); }
.status-confirmed { background: var(--blue-bg); color: var(--blue); }
.status-paid, .status-approved { background: var(--green-bg); color: var(--green); }
.status-proof_submitted { background: var(--blue-bg); color: var(--blue); }
.status-released_to_tutor { background: var(--purple-bg); color: var(--purple); }
.status-completed { background: #DDF3E6; color: #157347; }
.status-cancelled { background: #F0F0F0; color: var(--muted); }
.status-refunded { background: var(--purple-bg); color: var(--purple); }
.status-pending { background: var(--gold-bg); color: #8a6d00; }
.status-rejected, .status-suspended { background: var(--red-bg); color: var(--red); }
.status-warning { background: var(--gold-bg); color: #8a6d00; }
.backend-note { display: block; margin: 10px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.backend-status { margin: -8px 0 22px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 800; }
.backend-status-loading { background: var(--bg-soft); color: var(--muted); }
.backend-status-success { background: var(--green-bg); color: var(--green); border-color: #bfe9d0; }
.backend-status-mock { background: var(--gold-bg); color: #8a6d00; border-color: #f1df96; }
.backend-status-error { background: var(--red-bg); color: var(--red); border-color: #f3b7c3; }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(232,232,232,.8);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: background .15s ease;
}
.nav-link:hover { background: var(--bg-soft); }
.nav-link.active { color: var(--pink-deep); background: var(--bg-blush); }
.nav .btn { margin-left: 6px; }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger:hover { background: var(--bg-soft); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 12px 24px 22px;
}
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu button.menu-item {
  display: block; width: 100%; text-align: left;
  padding: 13px 10px; font-size: 16px; font-weight: 500;
  border-radius: 12px; border-bottom: 1px solid #f2f2f2;
}
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu .btn { margin-top: 14px; width: 100%; }

/* Language selector */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  padding: 8px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: rgba(255,255,255,.7);
}
.lang-btn:hover { background: var(--bg-soft); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); padding: 6px;
  display: none; z-index: 99;
}
.lang-menu.open { display: block; }
.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; padding: 9px 12px;
  font-size: 14px; font-weight: 500; border-radius: 10px;
}
.lang-item:hover { background: var(--bg-soft); }
.lang-item.selected { background: var(--purple-bg); color: var(--purple); font-weight: 600; }
.lang-item .code { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.lang-item.selected .code { color: var(--purple); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 44px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-bg .blob {
  position: absolute; left: 50%; top: -140px; transform: translateX(-50%);
  width: 1050px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,79,184,.14), rgba(255,243,248,.55) 55%, rgba(255,255,255,0) 78%);
}
.hero-bg .arch-outline {
  position: absolute; left: 50%; bottom: -125px; transform: translateX(-50%);
  width: 780px; height: 420px;
  border: 1.5px solid rgba(255,79,184,.16);
  border-bottom: none;
  border-radius: 390px 390px 0 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero .lede { margin: 18px auto 0; }

/* ---------- Hero search bar ---------- */
.search-bar {
  margin: 36px auto 0; max-width: 780px;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(232,232,232,.9);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 24px 60px rgba(255,79,184,.13), 0 14px 34px rgba(17,17,17,.07);
  padding: 8px;
  gap: 2px;
  position: relative;
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 18px; min-width: 0;
  position: relative;
}
.search-field + .search-field { border-left: 1px solid var(--border); }
.search-field > svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search-field .field-stack { position: relative; flex: 1; min-width: 0; }
.search-field input {
  width: 100%; border: none; background: transparent; outline: none;
  font-size: 15.5px; font-weight: 500; padding: 6px 0;
  position: relative; z-index: 1;
}
.rotating-ph {
  position: absolute; inset: 0; display: flex; align-items: center;
  color: #9a9a9a; font-size: 15.5px; font-weight: 500;
  pointer-events: none; z-index: 0;
  white-space: nowrap; overflow: hidden;
}
.rotating-ph span {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
  opacity: 1; transform: translateY(0); filter: blur(0);
  will-change: opacity, transform;
}
.rotating-ph span.ph-below { opacity: 0; transform: translateY(12px); filter: blur(4px); }
.rotating-ph span.ph-above { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
.rotating-ph span.ph-still { transition: none; }
.rotating-ph.hidden { display: none; }

.search-bar .btn-search { flex: none; padding: 13px 30px; }
.search-bar--compact { margin: 0; max-width: none; box-shadow: var(--shadow-soft); }

/* ---------- Subject pills ---------- */
.subject-pills {
  margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 820px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--white);
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.pill svg { width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px; color: var(--muted); }
.pill:hover { border-color: var(--pink-soft); box-shadow: 0 6px 16px rgba(255,79,184,.12); transform: translateY(-1px); }
.pill:hover svg { color: var(--pink); }
.pill.selected { background: var(--purple); border-color: var(--purple); color: #fff; }
.pill.selected svg { color: var(--gold); }

/* ---------- Trust row ---------- */
.trust-row {
  margin: 46px auto 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 34px; color: var(--muted); font-size: 14px; font-weight: 500;
}
.trust-row .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; height: 17px; color: var(--pink); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.section-blush { background: linear-gradient(180deg, var(--white), var(--bg-blush) 55%, var(--white)); }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lede { margin-top: 12px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-blush); color: var(--pink-deep);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--muted); }
.step-card .step-icon { position: absolute; top: 26px; right: 22px; width: 22px; height: 22px; color: #d9c7d2; }

/* ---------- Tutor cards ---------- */
.tutor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tutor-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.tutor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #ddd; }
.tutor-card .card-photo { position: relative; padding: 18px 18px 0; }
.tutor-card .fav-btn {
  position: absolute; top: 28px; right: 28px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.tutor-card .fav-btn:hover { transform: scale(1.08); }
.tutor-card .fav-btn svg { width: 16px; height: 16px; color: var(--muted); }
.tutor-card .fav-btn.faved svg { color: var(--pink); fill: var(--pink); }
.tutor-card .card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tutor-card h3 { font-size: 16.5px; display: flex; align-items: center; gap: 6px; }
.tutor-card h3 svg { width: 15px; height: 15px; color: var(--purple); flex: none; }
.tutor-card .card-subject { font-size: 13.5px; color: var(--muted); }
.tutor-card .card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.rating svg { width: 13px; height: 13px; color: var(--gold); fill: var(--gold); }
.tutor-card .card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tutor-card .card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f3f3f3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.price { font-size: 13px; color: var(--muted); }
.price strong { font-size: 17px; color: var(--ink); font-weight: 700; }

/* Arch avatar */
.avatar-arch {
  width: 100%; aspect-ratio: 5 / 4.4;
  border-radius: 110px 110px 16px 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.avatar-arch .initials {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px); letter-spacing: .01em;
}
.avatar-arch .avatar-glyph {
  position: absolute; bottom: -8px; right: -6px; width: 54px; height: 66px; opacity: .16;
}
.avatar-sm {
  width: 52px; height: 52px; border-radius: 24px 24px 10px 10px;
  display: flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  overflow: hidden;
}

/* Tint pairs (bg / text) */
.tint-pink { background: linear-gradient(160deg, #FFE4F2, #FFD1E9); color: #C22B85; }
.tint-gold { background: linear-gradient(160deg, #FFF3D0, #FFE9AC); color: #8a6d00; }
.tint-purple { background: linear-gradient(160deg, #E9E5FB, #DCD5F8); color: var(--purple); }
.tint-blue { background: linear-gradient(160deg, #E2EFFC, #D2E5FA); color: #1d4f9c; }
.tint-green { background: linear-gradient(160deg, #E2F5EA, #D0EEDD); color: #157347; }

/* ---------- Listing page ---------- */
.listing-hero { background: linear-gradient(180deg, var(--bg-blush), var(--white)); padding: 40px 0 26px; border-bottom: 1px solid #f5e7ef; }
.listing-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: center; }
.listing-copy { min-width: 0; }
.listing-hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 8px; }
.listing-hero .sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.listing-hero-media {
  position: relative;
  min-height: 250px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(17,17,17,.13);
  background: var(--white);
}
.listing-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.listing-media-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(17,17,17,.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.listing-media-chip .chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(255,79,184,.15);
  flex: none;
}

.filters-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 18px 0 6px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--white);
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.filter-chip svg { width: 14px; height: 14px; color: var(--muted); }
.filter-chip:hover { border-color: #cfcfcf; }
.filter-chip.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.filter-chip.active svg { color: var(--gold); }
.filter-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); padding: 14px; min-width: 230px;
  display: none;
}
.filter-pop.open { display: block; }
.filter-pop .opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 10px; font-size: 14px; text-align: left;
}
.filter-pop .opt:hover { background: var(--bg-soft); }
.filter-pop .opt.selected { background: var(--purple-bg); color: var(--purple); font-weight: 600; }
.filters-reset { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 9px 12px; border-radius: var(--r-pill); }
.filters-reset:hover { background: var(--bg-soft); color: var(--ink); }

.listing-layout { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 26px 0 70px; }
.results-count { font-size: 14px; color: var(--muted); margin-bottom: 4px; }

.tutor-row {
  display: grid; grid-template-columns: 210px 1fr 218px; gap: 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.tutor-row:hover { box-shadow: var(--shadow-lift); border-color: #ddd; transform: translateY(-2px); }
.tutor-row .row-photo { position: relative; }
.tutor-row .avatar-arch { aspect-ratio: 1 / 1.05; border-radius: 100px 100px 14px 14px; }
.tutor-row .row-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tutor-row h3 { font-size: 19px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tutor-row h3 a:hover { color: var(--pink-deep); }
.tutor-row h3 svg { width: 16px; height: 16px; color: var(--purple); }
.tutor-row .row-sub { font-size: 14px; color: var(--muted); }
.tutor-row .row-bio { font-size: 14px; color: #444; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid #f0f0f0; color: var(--muted); }
.tutor-row .row-stats { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.tutor-row .row-side {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  border-left: 1px solid #f3f3f3; padding-left: 22px;
}
.tutor-row .side-price { text-align: right; }
.tutor-row .side-actions { display: flex; gap: 8px; justify-content: flex-end; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, border-color .15s ease;
}
.icon-btn:hover { transform: scale(1.06); border-color: #cfcfcf; }
.icon-btn svg { width: 17px; height: 17px; color: var(--muted); }
.icon-btn.faved svg { color: var(--pink); fill: var(--pink); }

.empty-state {
  text-align: center; padding: 70px 20px; border: 1px dashed var(--border);
  border-radius: var(--r-lg); background: var(--bg-soft);
}
.empty-state h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.empty-state.compact { padding: 24px; }
.empty-state.compact h3 { font-size: 18px; }
.empty-state.compact p { margin-bottom: 12px; }

/* ---------- Profile page ---------- */
.profile-layout { display: grid; grid-template-columns: 1fr 350px; gap: 34px; padding: 40px 0 80px; align-items: start; }
.profile-hero { display: flex; gap: 26px; align-items: flex-start; }
.profile-hero .avatar-arch { width: 190px; flex: none; aspect-ratio: 1 / 1.12; }
.profile-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-hero h1 svg { width: 22px; height: 22px; color: var(--purple); }
.profile-hero .p-sub { font-size: 15.5px; color: var(--muted); margin-top: 6px; }
.profile-hero .p-meta { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); align-items: center; }
.profile-hero .p-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.profile-section { padding: 30px 0; border-top: 1px solid #f0f0f0; margin-top: 30px; }
.profile-section h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.profile-section p { color: #444; font-size: 15px; }
.profile-section p + p { margin-top: 10px; }

.exp-item { display: flex; gap: 14px; padding: 12px 0; }
.exp-item .exp-dot { width: 34px; height: 34px; border-radius: 12px; background: var(--bg-blush); color: var(--pink-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.exp-item .exp-dot svg { width: 16px; height: 16px; }
.exp-item h4 { font-size: 15px; }
.exp-item p { font-size: 13.5px; color: var(--muted); }

.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.avail-day { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.avail-cell {
  height: 34px; border-radius: 9px; background: var(--bg-soft); border: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #bbb;
}
.avail-cell.on { background: var(--green-bg); border-color: #cdeedd; color: var(--green); font-weight: 600; }

/* Lesson rating cards */
.lesson-ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lr-card { background: var(--bg-soft); border: 1px solid #f0f0f0; border-radius: var(--r-md); padding: 16px; }
.lr-card .lr-score { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.lr-card .lr-label { font-size: 13px; font-weight: 600; margin-top: 2px; }
.lr-card .lr-bar { height: 5px; border-radius: 99px; background: #eee; margin-top: 10px; overflow: hidden; }
.lr-card .lr-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink-soft), var(--pink)); }

.review-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; margin-top: 12px; }
.review-card .rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card .rev-name { font-weight: 600; font-size: 14.5px; }
.review-card .rev-date { font-size: 12.5px; color: var(--muted); }
.review-card p { font-size: 14px; color: #444; }

/* Sticky booking card — floating glass card */
.booking-card {
  position: sticky; top: 92px;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(232,232,232,.9);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  padding: 26px;
}
.booking-card .bk-price { display: flex; align-items: baseline; gap: 6px; }
.booking-card .bk-price strong { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.booking-card .bk-price span { color: var(--muted); font-size: 14px; }
.booking-card .bk-trial {
  display: flex; align-items: center; gap: 9px; margin: 14px 0 18px;
  background: var(--gold-bg); border: 1px solid #f5e3a1; border-radius: var(--r-sm);
  padding: 10px 13px; font-size: 13.5px; font-weight: 500; color: #6d5600;
}
.booking-card .bk-trial svg { width: 16px; height: 16px; flex: none; color: #b08d00; }
.booking-card .bk-actions { display: flex; flex-direction: column; gap: 10px; }
.booking-card .bk-trust { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; justify-content: center; }
.booking-card .bk-trust svg { width: 14px; height: 14px; color: var(--pink); }

/* ---------- Phone mockup ---------- */
.phone-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.phone-wrap { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  width: 300px; height: 610px; flex: none;
  background: #0d0d0f;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(17,17,17,.25), 0 4px 12px rgba(17,17,17,.15);
  position: relative; z-index: 1;
}
.phone-screen {
  background: var(--bg-soft); width: 100%; height: 100%;
  border-radius: 39px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.phone-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 99px; background: #0d0d0f; z-index: 5;
}
.phone-home {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 4px; border-radius: 99px; background: rgba(17,17,17,.28); z-index: 5;
}
.ps-head { padding: 46px 16px 10px; background: #fff; border-bottom: 1px solid #f2f2f2; }
.ps-head .wordmark { font-size: 17px; }
.ps-search {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 99px;
  padding: 9px 14px; font-size: 12.5px; color: var(--muted);
}
.ps-search svg { width: 14px; height: 14px; flex: none; }
.ps-chips { display: flex; gap: 6px; padding: 10px 16px 4px; overflow: hidden; }
.ps-chip { font-size: 10.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.ps-chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.ps-cards { padding: 8px 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; flex: 1; }
.ps-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 11px;
  display: flex; gap: 10px; align-items: center;
}
.ps-card .avatar-sm { width: 44px; height: 44px; font-size: 15px; border-radius: 20px 20px 8px 8px; }
.ps-card .ps-name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.ps-card .ps-name svg { width: 11px; height: 11px; color: var(--purple); }
.ps-card .ps-sub { font-size: 10.5px; color: var(--muted); }
.ps-card .ps-row { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.ps-card .ps-row .rating { font-size: 10.5px; }
.ps-card .ps-row .rating svg { width: 10px; height: 10px; }
.ps-price { margin-left: auto; text-align: right; font-size: 9.5px; color: var(--muted); }
.ps-price b { display: block; font-size: 12.5px; color: var(--ink); }
.ps-sheet {
  background: #fff; border-radius: 22px 22px 0 0; border: 1px solid var(--border); border-bottom: none;
  padding: 14px 16px 24px; box-shadow: 0 -12px 30px rgba(17,17,17,.08);
}
.ps-sheet .ps-grab { width: 34px; height: 4px; border-radius: 99px; background: #e5e5e5; margin: 0 auto 10px; }
.ps-sheet h5 { font-size: 13px; font-weight: 700; margin: 0 0 2px; }
.ps-sheet p { font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.ps-sheet .ps-opts { display: flex; gap: 6px; margin-bottom: 10px; }
.ps-opt { flex: 1; text-align: center; font-size: 10.5px; font-weight: 600; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--border); }
.ps-opt.on { border-color: var(--purple); background: var(--purple-bg); color: var(--purple); }
.ps-cta {
  display: block; text-align: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #FF6FC6, var(--pink) 55%, var(--pink-deep));
  border-radius: 99px; padding: 10px; box-shadow: 0 6px 14px rgba(255,79,184,.3);
}

/* Floating glass chips near phone */
.float-chip {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(232,232,232,.9); border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 11px 15px; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.float-chip svg { width: 15px; height: 15px; flex: none; }
.float-chip .fc-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.float-chip--tl { top: 84px; left: 4px; }
.float-chip--br { bottom: 120px; right: 0; }

.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .fi-icon {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: var(--bg-blush); color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .fi-icon svg { width: 19px; height: 19px; }
.feature-item h3 { font-size: 16px; margin-bottom: 3px; }
.feature-item p { font-size: 14px; color: var(--muted); }

/* ---------- Library / map placeholder ---------- */
.library-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  background: var(--white);
}
.library-info { padding: 44px 42px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.library-info h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.library-info p { color: var(--muted); font-size: 15px; }
.library-locs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.map-ph { position: relative; min-height: 320px; background: #FDF6FA; }
.map-ph svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.map-pin .pin-head {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: linear-gradient(180deg, #FF6FC6, var(--pink));
  box-shadow: 0 6px 14px rgba(255,79,184,.4);
  display: flex; align-items: center; justify-content: center;
}
.map-pin .pin-head svg { width: 13px; height: 13px; color: #fff; transform: rotate(45deg); }
.map-pin--gold .pin-head { background: linear-gradient(180deg, #ffe28a, var(--gold)); box-shadow: 0 6px 14px rgba(255,210,63,.5); }
.map-pin--gold .pin-head svg { color: #6d5600; }
.map-pin--purple .pin-head { background: linear-gradient(180deg, #5a45e0, var(--purple)); box-shadow: 0 6px 14px rgba(53,32,199,.35); }

/* ---------- Become a tutor CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-blush) 0%, #FFE9F4 50%, #FDEFF8 100%);
  border: 1px solid #f8dcea;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band .cta-glyph { position: absolute; width: 220px; height: 270px; color: rgba(255,79,184,.07); right: -40px; bottom: -60px; transform: rotate(8deg); }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; max-width: 560px; margin: 0 auto 12px; }
.cta-band p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 60px 0 34px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact a:hover { color: var(--ink); }
.footer-contact svg { width: 15px; height: 15px; color: var(--pink); flex: none; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #444; padding: 5px 0; }
.footer-col a:hover { color: var(--pink-deep); }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-bottom .pay-methods { display: flex; align-items: center; gap: 8px; }
.pay-tag { font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: #fff; padding: 4px 11px; border-radius: var(--r-pill); color: var(--muted); }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17, 12, 24, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7);
  width: 100%; max-width: 470px;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(17,12,24,.35);
  max-height: min(92vh, 760px);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn .28s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { padding: 22px 26px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal-head h2 { font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.modal-head .modal-sub { color: var(--muted); font-size: 14px; margin-top: 5px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.modal-close:hover { background: #eee; }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { padding: 20px 26px 26px; overflow-y: auto; }

/* Tabs (auth) */
.tabs { display: flex; background: var(--bg-soft); border-radius: var(--r-pill); padding: 4px; margin-bottom: 20px; }
.tab {
  flex: 1; text-align: center; padding: 9px 10px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(17,17,17,.09); }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 15px; font-size: 15px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,79,184,.14);
}
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* Phone input with country selector */
.phone-input { display: flex; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; position: relative; }
.phone-input:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,79,184,.14); }
.country-btn {
  display: flex; align-items: center; gap: 7px; padding: 12px 12px 12px 14px;
  border-right: 1px solid var(--border); font-size: 14px; font-weight: 600;
  flex: none; border-radius: 14px 0 0 14px;
}
.country-btn:hover { background: var(--bg-soft); }
.country-btn .flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(17,17,17,.08); flex: none; }
.country-btn .flag svg { width: 100%; height: 100%; }
.country-btn svg.chev { width: 11px; height: 11px; color: var(--muted); }
.phone-input input { flex: 1; border: none; background: none; padding: 12px 14px 12px 10px; font-size: 15px; min-width: 0; }
.phone-input input:focus { outline: none; }
.country-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 80; width: min(300px, 90vw);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift); padding: 6px; max-height: 240px; overflow-y: auto;
  display: none;
}
.country-menu.open { display: block; }
.country-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px; font-size: 14px; }
.country-item:hover { background: var(--bg-soft); }
.country-item .flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(17,17,17,.08); flex: none; }
.country-item .dial { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }

/* Google button */
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--border); background: #fff; border-radius: var(--r-pill); padding: 12px; font-weight: 600; font-size: 14.5px; transition: box-shadow .15s ease; }
.btn-google:hover { box-shadow: var(--shadow-soft); }
.btn-google:disabled { cursor: not-allowed; opacity: .62; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--pink-deep); font: inherit; font-weight: 800; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 16px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Booking wizard */
.wizard-progress { display: flex; gap: 5px; margin: 16px 0 20px; }
.wizard-progress i { flex: 1; height: 4px; border-radius: 99px; background: #eee; }
.wizard-progress i.done { background: linear-gradient(90deg, var(--pink-soft), var(--pink)); }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option-card {
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 15px 16px; text-align: left; background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 3px;
}
.option-card:hover { border-color: #cfcfcf; }
.option-card.selected { border-color: var(--purple); background: var(--purple-bg); box-shadow: 0 0 0 3px rgba(53,32,199,.08); }
.option-card .oc-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.option-card .oc-title svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.option-card.selected .oc-title svg { color: var(--purple); }
.option-card .oc-sub { font-size: 12.5px; color: var(--muted); }
.option-card--row { flex-direction: row; align-items: center; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.wizard-nav .skip { color: var(--muted); font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: var(--r-pill); }
.wizard-nav .skip:hover { background: var(--bg-soft); color: var(--ink); }
.wizard-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; padding: 10px 14px 10px 8px; border-radius: var(--r-pill); }
.wizard-back:hover { background: var(--bg-soft); }
.wizard-back svg { width: 15px; height: 15px; }

.wizard-tutor { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid #f0f0f0; border-radius: var(--r-md); padding: 11px 13px; margin-bottom: 4px; }
.wizard-tutor .wt-name { font-weight: 700; font-size: 14px; }
.wizard-tutor .wt-sub { font-size: 12.5px; color: var(--muted); }
.wizard-tutor .wt-price { margin-left: auto; text-align: right; font-size: 11.5px; color: var(--muted); }
.wizard-tutor .wt-price b { display: block; font-size: 14px; color: var(--ink); }

.success-state { text-align: center; padding: 26px 6px 10px; }
.success-state .success-ring {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--green-bg); display: flex; align-items: center; justify-content: center;
  animation: popIn .4s cubic-bezier(.2,.9,.3,1.4);
}
.success-state .success-ring svg { width: 34px; height: 34px; color: var(--green); }
@keyframes popIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-state h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.success-state p { color: var(--muted); font-size: 14.5px; max-width: 320px; margin: 0 auto 22px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(17,17,17,.92); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .3s ease;
  max-width: min(92vw, 480px);
}
.toast svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Dashboards ---------- */
.dash-hero { background: linear-gradient(180deg, var(--bg-blush), var(--white)); border-bottom: 1px solid #f5e7ef; padding: 38px 0 30px; }
.dash-hero h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.dash-hero .sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.dash-hero .dash-tag { margin-bottom: 12px; }
.dash-main { padding: 30px 0 80px; }
.workspace-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 24px; }
.workspace-tabs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 9px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  color: var(--ink); font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(17,17,17,.05);
}
.workspace-tabs a:hover { border-color: var(--pink-soft); color: var(--pink-deep); transform: translateY(-1px); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.stat-card .stat-label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-top: 6px; }
.stat-card .stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat-card.accent { background: linear-gradient(150deg, #fff, var(--bg-blush)); border-color: #f8dcea; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.dash-card.full { grid-column: 1 / -1; }
.dash-card h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dash-card h2 .count-pill { font-size: 12px; font-weight: 700; background: var(--bg-blush); color: var(--pink-deep); border-radius: 99px; padding: 3px 10px; }

.list-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #f4f4f4; }
.list-item:first-of-type { border-top: none; }
.list-item .li-main { min-width: 0; flex: 1; }
.list-item .li-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.list-item .li-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.list-item .li-side { text-align: right; font-size: 13px; color: var(--muted); flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.li-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.progress-track { height: 8px; border-radius: 99px; background: #f0f0f0; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink-soft), var(--pink)); }
.checklist { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.checklist .chk { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.checklist .chk svg { width: 15px; height: 15px; flex: none; }
.checklist .chk.done { color: var(--ink); }
.checklist .chk.done svg { color: var(--green); }
.checklist .chk:not(.done) svg { color: #ccc; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td { padding: 13px 12px; border-bottom: 1px solid #f4f4f4; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data .cell-strong { font-weight: 600; }
table.data .cell-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: #fff; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.mini-btn:hover { border-color: #cfcfcf; background: var(--bg-soft); }
.mini-btn.approve { background: var(--green-bg); color: var(--green); border-color: transparent; }
.mini-btn.approve:hover { border-color: #bfe6d0; }
.mini-btn.reject, .mini-btn.danger { background: var(--red-bg); color: var(--red); border-color: transparent; }
.mini-btn.reject:hover, .mini-btn.danger:hover { border-color: #f2c4ca; }
.mini-btn.primary { background: var(--pink-bg); color: var(--pink-deep); border-color: transparent; }
.mini-btn.primary:hover { border-color: #f7c4e0; }

/* Rules card */
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule-card { background: var(--bg-soft); border: 1px solid #f0f0f0; border-radius: var(--r-md); padding: 18px; }
.rule-card h4 { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.rule-card h4 svg { width: 15px; height: 15px; color: var(--pink-deep); flex: none; }
.rule-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* ---------- Apply page ---------- */
.apply-hero { background: linear-gradient(180deg, var(--bg-blush), var(--white)); padding: 56px 0 36px; }
.apply-hero-media {
  position: relative;
  margin: 28px auto 0;
  max-width: 560px;
  aspect-ratio: 16 / 8.5;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(17,17,17,.13);
}
.apply-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}
.apply-media-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(17,17,17,.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.apply-media-chip .chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(255,79,184,.15);
  flex: none;
}
.apply-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.apply-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; }
.apply-form-card h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 4px; }
.apply-form-card .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.profile-photo-upload { align-items: center; }
.profile-photo-preview {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #eef7ff, #fff2fb);
  color: var(--pink);
  border: 1px solid rgba(255,79,184,.18);
}
.profile-photo-preview svg { width: 24px; height: 24px; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid #f2f2f2; display: flex; align-items: center; gap: 8px; }
.form-section-label:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.upload-ph {
  border: 1.5px dashed #ddd; border-radius: var(--r-md); padding: 22px;
  display: flex; align-items: center; gap: 14px; background: var(--bg-soft);
  transition: border-color .15s ease; cursor: pointer; width: 100%; text-align: left;
}
.upload-ph:hover { border-color: var(--pink-soft); }
.upload-ph .up-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex: none; }
.upload-ph .up-icon svg { width: 18px; height: 18px; color: var(--muted); }
.upload-ph .up-title { font-size: 14px; font-weight: 600; }
.upload-ph .up-sub { font-size: 12.5px; color: var(--muted); }
.upload-ph.uploaded { border-color: var(--green); border-style: solid; background: var(--green-bg); }
.upload-ph.uploaded .up-icon svg { color: var(--green); }

.aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h3 { font-size: 16px; margin-bottom: 14px; }
.aside-card .step-line { display: flex; gap: 12px; padding: 9px 0; font-size: 14px; }
.aside-card .step-line .sl-num { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-blush); color: var(--pink-deep); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.aside-card .step-line p { color: var(--muted); font-size: 13px; }
.aside-card .step-line h5 { font-size: 14px; margin: 2px 0 2px; }

.check-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill {
  border: 1px solid var(--border); border-radius: var(--r-pill); background: #fff;
  padding: 8px 15px; font-size: 13.5px; font-weight: 500;
  transition: all .15s ease;
}
.check-pill:hover { border-color: #cfcfcf; }
.check-pill.selected { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 50px; padding: 50px 0 90px; align-items: start; }
.legal-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 3px; }
.legal-nav a { font-size: 14px; padding: 9px 14px; border-radius: 11px; color: var(--muted); font-weight: 500; }
.legal-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.legal-nav a.active { background: var(--purple-bg); color: var(--purple); font-weight: 600; }
.legal-content h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 8px; }
.legal-updated { font-size: 13.5px; color: var(--muted); margin-bottom: 34px; display: inline-flex; align-items: center; gap: 7px; background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--r-pill); }
.legal-content h2 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.legal-content p, .legal-content li { font-size: 15px; color: #444; line-height: 1.65; }
.legal-content ul { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rotating-ph span { transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Section link rows ---------- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--pink-deep); padding: 8px 0; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .tutor-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .apply-layout { grid-template-columns: 1fr; }
  .phone-section-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 840px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .tutor-row { grid-template-columns: 120px 1fr; }
  .tutor-row .row-side { grid-column: 1 / -1; border-left: none; border-top: 1px solid #f3f3f3; padding: 14px 0 0; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .tutor-row .side-price { text-align: left; }
  .tutor-row .avatar-arch { aspect-ratio: 1 / 1; }
  .library-card { grid-template-columns: 1fr; }
  .map-ph { min-height: 260px; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .lesson-ratings { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { flex-direction: column; }
  .profile-hero .avatar-arch { width: 160px; }
}

@media (min-width: 841px) and (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 46px 0 36px; }
  .search-bar { flex-direction: column; border-radius: var(--r-xl); gap: 0; padding: 10px; }
  .search-field { padding: 13px 8px; }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--border); }
  .search-bar .btn-search { width: 100%; margin-top: 8px; }
  .tutor-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 46px 26px; }
  .phone-wrap { padding-top: 64px; }
  .float-chip--tl { left: 8px; top: 8px; max-width: 214px; }
  .float-chip--br { right: -6px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .workspace-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .workspace-tabs::-webkit-scrollbar { display: none; }
  .workspace-tabs a { flex: 0 0 auto; white-space: nowrap; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: none; border-radius: 26px 26px 0 0; max-height: 94vh; animation: sheetIn .3s cubic-bezier(.2,.9,.3,1.05); }
  @keyframes sheetIn { from { transform: translateY(60px); opacity: .6; } to { transform: none; opacity: 1; } }
  .trust-row { gap: 10px 20px; font-size: 13px; }
  .phone { width: 272px; height: 556px; }
}

/* ============================================================
   v2 polish layer — marketplace warmth, liquid glass, motion
   ============================================================ */

/* Tighter global rhythm */
.section { padding: 66px 0; }
.section-head { margin-bottom: 34px; }
.section-head-row { margin-bottom: 30px; }

/* ---------- Hero: bigger, warmer, busier ---------- */
.hero { padding: 54px 0 46px; }
.hero-bg .blob {
  width: 900px; height: 520px; top: -120px;
  background: radial-gradient(closest-side, rgba(255,79,184,.09), rgba(255,243,248,.5) 58%, rgba(255,255,255,0) 80%);
}
.hero .lede { margin-top: 14px; font-weight: 500; }
.hl-gold {
  background: linear-gradient(180deg, transparent 56%, var(--gold-soft) 56%, var(--gold-soft) 94%, transparent 94%);
  border-radius: 4px; padding: 0 .06em;
}

/* Bigger, more touchable search bar */
.search-bar { max-width: 880px; padding: 9px; }
.hero .search-bar { animation: riseIn .8s cubic-bezier(.16, .84, .28, 1) .05s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.search-field { padding: 13px 12px 13px 22px; }
.search-field > svg { width: 21px; height: 21px; }
.search-field input { font-size: 17px; }
.rotating-ph { font-size: 17px; }
.search-bar .btn-search { padding: 16px 38px; font-size: 16.5px; }

/* Gold shine sweep on pink liquid buttons */
.btn-primary::after {
  content: ""; position: absolute; top: -25%; bottom: -25%; left: -80%; width: 45%;
  background: linear-gradient(105deg, rgba(255,232,138,0) 0%, rgba(255,232,138,.55) 40%, rgba(255,255,255,.8) 55%, rgba(255,232,138,0) 100%);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-primary:hover::after { animation: shineSweep .85s ease forwards; }
@keyframes shineSweep { 0% { left: -80%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* Bigger subject pills with gold micro-accent */
.subject-pills { gap: 11px; margin-top: 32px; max-width: 880px; }
.pill { padding: 12px 21px; font-size: 15px; gap: 9px; box-shadow: 0 1px 2px rgba(17,17,17,.03); }
.pill svg { width: 18px; height: 18px; }
.pill:hover {
  background: var(--bg-blush); border-color: var(--pink-soft);
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,79,184,.14);
}
.pill:hover svg { color: var(--pink-deep); filter: drop-shadow(0 0 5px rgba(255,210,63,.95)); }
.trust-row { margin-top: 40px; }
.trust-row .trust-item:nth-child(2) svg { color: #C9A20A; }
.trust-row .trust-item:nth-child(3) svg { color: var(--blue-accent); }
.trust-row .trust-item:nth-child(4) svg { color: var(--green); }

/* Floating marketplace cards in the hero */
.hero .container { position: relative; }
.hero-float {
  position: absolute; z-index: 2; display: none;
  pointer-events: none;
  align-items: center; gap: 11px;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px; padding: 13px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 44px rgba(17,17,17,.11);
  animation: floatY 7s ease-in-out infinite;
  font-size: 13px;
}
@keyframes floatY { 0%, 100% { margin-top: 0; } 50% { margin-top: -11px; } }
.hero-float .hf-title { font-weight: 700; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.hero-float .hf-title svg { width: 14px; height: 14px; color: var(--purple); flex: none; }
.hero-float .hf-sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.hero-float .hf-icon { width: 38px; height: 38px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.hero-float .hf-icon svg { width: 18px; height: 18px; }
.hero-float .avatar-sm { width: 44px; height: 44px; font-size: 15px; border-radius: 20px 20px 9px 9px; }
.hero-float .hf-price { font-size: 12px; color: var(--muted); }
.hero-float .hf-price b { color: var(--ink); font-size: 13.5px; }
.hero-float--tutor { left: 8px; top: 116px; animation-delay: .3s; }
.hero-float--booked { right: 8px; top: 108px; animation-delay: 1.6s; }
.hero-float--trial { right: 34px; bottom: 116px; animation-delay: .9s; }
@media (min-width: 1120px) { .hero-float { display: flex; } }

/* ---------- Photo avatars (initials stay as instant fallback) ---------- */
.avatar-sm { position: relative; }
.avatar-arch img.ph, .avatar-sm img.ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.avatar-arch .avatar-glyph { z-index: 1; }

/* ---------- Richer tutor cards ---------- */
.tutor-card .card-bio {
  font-size: 13px; color: #555; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tutor-card .card-meta svg { width: 13px; height: 13px; flex: none; color: #b9b9b9; }
.tutor-card .card-meta .meta-chip { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- How it works: visual steps ---------- */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; top: 52px; left: 7%; right: 7%;
  border-top: 2px dashed #F3D9E8; z-index: 0; display: none;
}
@media (min-width: 1021px) { .steps::before { display: block; } }
.step-card { z-index: 1; }
.step-blob {
  width: 54px; height: 54px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 15px; position: relative;
}
.step-blob svg { width: 25px; height: 25px; }
.step-blob .mini-num {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff;
}
.blob-pink { background: var(--pink-bg); color: var(--pink-deep); }
.blob-gold { background: var(--gold-bg); color: #a8830a; }
.blob-blue { background: var(--blue-bg); color: var(--blue-accent); }
.blob-purple { background: var(--purple-bg); color: var(--purple); }

/* ---------- Study locations map ---------- */
.locmap-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.locmap-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid #f3f3f3;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  position: relative; z-index: 3;
}
.loc-chip {
  padding: 7px 15px; font-size: 13px; font-weight: 600; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.loc-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.loc-chip:hover { border-color: #cfcfcf; }
.loc-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.locmap-count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.locmap-body { display: grid; grid-template-columns: 1fr 322px; }
.locmap-canvas { position: relative; min-height: 460px; background: #FBF7F9; overflow: hidden; }
.locmap-canvas svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 21px; height: 21px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(17,17,17,.28);
  cursor: pointer; z-index: 2; transition: transform .15s ease; padding: 0;
}
.loc-pin:hover { transform: translate(-50%, -50%) scale(1.28); z-index: 4; }
.loc-pin.active { transform: translate(-50%, -50%) scale(1.32); z-index: 5; box-shadow: 0 0 0 3px rgba(53,32,199,.35), 0 3px 10px rgba(17,17,17,.3); }
.loc-pin::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0;
  animation: pinPulse 3s ease-out infinite;
}
@keyframes pinPulse { 0% { transform: scale(.55); opacity: .65; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.loc-public { background: var(--pink); color: var(--pink); }
.loc-university { background: var(--gold); color: #c9a20a; }
.loc-community { background: var(--blue-accent); color: var(--blue-accent); }
.loc-other { background: var(--purple); color: var(--purple); }
.loc-popup {
  position: absolute; z-index: 8; width: 246px;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lift); padding: 14px;
  transform: translate(-50%, calc(-100% - 17px));
  animation: popupIn .22s cubic-bezier(.2, .9, .3, 1.1);
}
.loc-popup.below { transform: translate(-50%, 20px); }
@keyframes popupIn { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
.loc-popup h4 { font-size: 14px; margin-bottom: 3px; }
.loc-popup .lp-meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.loc-popup .lp-hours { font-size: 11.5px; color: #a8830a; background: var(--gold-bg); border-radius: 8px; padding: 4px 8px; display: inline-block; margin: 5px 0 10px; }
.locmap-list { border-left: 1px solid #f3f3f3; max-height: 460px; overflow-y: auto; }
.loc-item {
  display: flex; gap: 10px; padding: 12px 16px; border: none;
  border-bottom: 1px solid #f6f6f6; cursor: pointer; align-items: flex-start;
  width: 100%; text-align: left; background: none; transition: background .12s ease;
}
.loc-item:hover { background: var(--bg-soft); }
.loc-item.active { background: var(--purple-bg); }
.loc-item .loc-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.loc-item .li-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.loc-item .li-area { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---------- Dark brand strip: particles + announcement stack ---------- */
.brand-strip {
  background: #0C0B10; border-radius: var(--r-xl);
  padding: 44px 44px 52px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  overflow: hidden; position: relative;
}
.brand-strip .bs-label {
  color: rgba(255,255,255,.5); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 14px;
  display: flex; gap: 9px; align-items: center;
}
.brand-strip .bs-label svg { width: 13px; height: 15px; color: var(--gold); }
.brand-strip canvas { width: 100%; height: auto; display: block; border-radius: 14px; }

.display-stack {
  display: grid; grid-template-areas: "stack"; place-items: center;
  padding: 24px 0 56px; transform: translateX(-2.6rem);
}
.dcard {
  grid-area: stack; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  width: min(20.5rem, 74vw); height: 8.6rem;
  transform: skewY(-8deg);
  border-radius: 16px; border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 13px 16px; color: #fff; user-select: none;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), background .7s ease, border-color .7s ease;
}
.dcard::after {
  content: ""; position: absolute; top: -5%; right: -6px; height: 110%; width: 82%;
  background: linear-gradient(to left, #0C0B10 6%, rgba(12,11,16,0));
  pointer-events: none; transition: opacity .7s ease;
}
.dcard:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); z-index: 3; }
.dcard:hover::after { opacity: 0; }
.dcard--1:hover { transform: skewY(-8deg) translateY(-2.2rem); }
.dcard--2 { transform: skewY(-8deg) translate(3.2rem, 2.4rem); }
.dcard--2:hover { transform: skewY(-8deg) translate(3.2rem, .5rem); }
.dcard--3 { transform: skewY(-8deg) translate(6.4rem, 4.8rem); }
.dcard--3:hover { transform: skewY(-8deg) translate(6.4rem, 3rem); }
.dcard .dc-head { display: flex; align-items: center; gap: 9px; }
.dcard .dc-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.dcard .dc-icon svg { width: 14px; height: 14px; }
.dcard .dc-title { font-weight: 700; font-size: 14.5px; }
.dcard .dc-desc { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard .dc-date { font-size: 12px; color: rgba(255,255,255,.42); }
.dc-pink .dc-title { color: #FF8AD1; } .dc-pink .dc-icon { background: rgba(255,79,184,.22); color: #FF8AD1; }
.dc-gold .dc-title { color: var(--gold); } .dc-gold .dc-icon { background: rgba(255,210,63,.18); color: var(--gold); }
.dc-blue .dc-title { color: #8FB7FF; } .dc-blue .dc-icon { background: rgba(77,139,255,.2); color: #8FB7FF; }

/* ---------- Balloons (first booking celebration) ---------- */
.balloons-layer { position: fixed; inset: 0; pointer-events: none; z-index: 700; overflow: hidden; }
.bl-rise { position: absolute; bottom: -20vh; animation: blRise linear forwards; }
@keyframes blRise { to { transform: translateY(-150vh); } }
.bl { position: relative; border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%; animation: blSway ease-in-out infinite alternate; box-shadow: inset -6px -8px 14px rgba(0,0,0,.08); }
@keyframes blSway { from { transform: translateX(-13px) rotate(-3.5deg); } to { transform: translateX(13px) rotate(3.5deg); } }
.bl::before {
  content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top: 8px solid currentColor;
}
.bl::after {
  content: ""; position: absolute; top: 100%; left: 50%; width: 1.5px; height: 10vh; margin-top: 6px;
  background: linear-gradient(rgba(17,17,17,.28), rgba(17,17,17,0));
}

/* ---------- Phone parallax hint ---------- */
.phone-wrap { will-change: transform; }

/* Heavier headings for the sans display face */
.listing-hero h1, .dash-hero h1, .profile-hero h1, .legal-content h1,
.cta-band h2, .library-info h3, .apply-form-card h2 { font-weight: 800; }

/* ---------- v2 responsive ---------- */
@media (max-width: 1020px) {
  .brand-strip { grid-template-columns: 1fr; padding: 34px 26px 46px; }
  .display-stack { transform: translateX(-2rem); }
}
@media (max-width: 840px) {
  .locmap-body { grid-template-columns: 1fr; }
  .locmap-canvas { min-height: 330px; }
  .locmap-list { max-height: 236px; border-left: none; border-top: 1px solid #f3f3f3; }
  .locmap-count { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 34px; }
  .subject-pills {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    margin-left: -24px; margin-right: -24px;
    padding: 6px 24px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .subject-pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .search-field { padding: 13px 8px 13px 14px; }
  .search-field input, .rotating-ph { font-size: 16px; }
  .dcard--2 { transform: skewY(-8deg) translate(1.7rem, 2.1rem); }
  .dcard--2:hover { transform: skewY(-8deg) translate(1.7rem, .4rem); }
  .dcard--3 { transform: skewY(-8deg) translate(3.4rem, 4.2rem); }
  .dcard--3:hover { transform: skewY(-8deg) translate(3.4rem, 2.6rem); }
  .display-stack { transform: translateX(-1.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float, .loc-pin::after { animation: none !important; }
  .hero .search-bar { animation: none; }
}

/* ============================================================
   v3 layer — brand assets, warmer type, product sections
   ============================================================ */

/* Playful review quotes (Fredoka, reviews only) */
.review-card p { font-family: var(--font-review); font-weight: 500; font-size: 15px; color: #3d3d3d; }

/* Manrope UI weights per brand spec */
.btn { font-weight: 700; }
.nav-link { font-weight: 600; }

/* Smaller, cleaner icons */
.step-blob { width: 48px; height: 48px; border-radius: 16px; }
.step-blob svg { width: 21px; height: 21px; }
.search-field > svg { width: 19px; height: 19px; }
.trust-row svg { width: 16px; height: 16px; }
.feature-item .fi-icon svg { width: 18px; height: 18px; }

/* Smoother, more premium modal glass */
.modal-overlay {
  background: rgba(20, 14, 26, .38);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
.wizard-progress i { height: 5px; }
.wizard-progress i.done {
  background: linear-gradient(90deg, var(--pink-soft), var(--pink) 70%, #FFB13F);
  box-shadow: 0 1px 4px rgba(255,79,184,.35);
}

/* ---------- Online lesson tools ---------- */
.tools-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tool-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-weight: 700; font-size: 13.5px;
  box-shadow: 0 1px 2px rgba(17,17,17,.04);
}
.tool-badge .tb-dot {
  width: 24px; height: 24px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.tool-badge .tb-dot svg { width: 13px; height: 13px; }

/* ---------- Telebirr trust card ---------- */
.telebirr-card {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 18px; padding: 17px 20px;
  border-radius: 18px; border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow-soft);
}
.telebirr-card img { height: 32px; width: auto; flex: none; }
.telebirr-card .tc-title { font-weight: 700; font-size: 14.5px; }
.telebirr-card .tc-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 330px; }
.telebirr-card .tc-statuses { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin-top: 2px; }
.telebirr-card .status { font-size: 11px; padding: 3px 10px; }

/* ---------- Example-pic product section ---------- */
.expic-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; }
.expic-figure {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lift); border: 1px solid #f0e2ea;
}
.expic-figure img.main {
  width: 100%; display: block;
  aspect-ratio: 10 / 7.2; object-fit: cover; object-position: center top;
}
.expic-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(17,17,17,.16);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.expic-badge svg { width: 14px; height: 14px; flex: none; }
.expic-badge--tl { top: 16px; left: 16px; }
.expic-badge--tr { top: 16px; right: 16px; }
.expic-badge--bl { bottom: 16px; left: 16px; }
.expic-badge--br { bottom: 16px; right: 16px; }
.expic-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Map popup photos ---------- */
.loc-popup img.lp-photo {
  width: 100%; height: 96px; object-fit: cover;
  border-radius: 10px; margin-bottom: 9px; display: block;
  background: var(--bg-soft);
}

@media (max-width: 1020px) {
  .expic-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .expic-badge { font-size: 11px; padding: 6px 11px; }
  .expic-badge--bl { bottom: 12px; left: 12px; }
  .expic-badge--br { bottom: 12px; right: 12px; }
}

/* ============================================================
   v4 layer — brand presence, settings, dark theme, launch polish
   ============================================================ */

/* Bigger, unmissable wordmark */
.logo-link img { height: 24px; }
.logo-link--footer img { height: 26px; filter: invert(1) brightness(1.6); }

/* Fix: meta icons must never render at natural SVG size */
.profile-hero .p-meta > span,
.tutor-row .row-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero .p-meta svg,
.tutor-row .row-stats svg { width: 15px; height: 15px; flex: none; }
.profile-hero .p-meta .rating svg,
.tutor-row .row-stats .rating svg { width: 13px; height: 13px; }
.bk-trust svg, .exp-item .exp-dot svg { flex: none; }

/* ---------- Dark footer (palette Text Black) ---------- */
.site-footer { background: #111111; border-top: 1px solid #222; }
.site-footer .footer-brand p, .site-footer .footer-contact { color: #9a97a2; }
.site-footer .footer-col h4 { color: #6f6c78; }
.site-footer .footer-col a { color: #cfccd6; }
.site-footer .footer-col a:hover { color: var(--pink); }
.site-footer .footer-contact a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid #232128; color: #8a8792; }
.site-footer .pay-tag { background: #1b1a20; border-color: #2b2933; color: #b5b2bd; }

/* ---------- Settings + account menus ---------- */
.settings-menu { min-width: 248px; }
.sm-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px 5px;
}
.sm-seg { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; margin: 3px 10px 4px; }
.sm-seg-btn { flex: 1; font-size: 12.5px; font-weight: 700; padding: 7px 4px; border-radius: 999px; color: var(--muted); transition: all .15s ease; }
.sm-seg-btn.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(17,17,17,.14); }
.sm-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 3px 10px 12px; }
.sm-row .check-pill { padding: 6px 13px; font-size: 12.5px; }
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid var(--gold); padding: 0; margin-left: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.avatar-btn:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(255,210,63,.5); }

/* ---------- Hero rotating word ---------- */
.rot-wrap { display: inline-block; position: relative; }
.rot-word { display: inline-block; transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1), filter .45s ease; will-change: transform, opacity; }
.rot-word.out { opacity: 0; transform: translateY(-16px); filter: blur(7px); }
.rot-word.pre { transition: none; opacity: 0; transform: translateY(16px); filter: blur(7px); }

/* ---------- University logo marquee ---------- */
.uni-strip {
  overflow: hidden; position: relative; padding: 10px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.uni-track { display: flex; gap: 58px; align-items: center; width: max-content; animation: uniScroll 32s linear infinite; }
.uni-strip:hover .uni-track { animation-play-state: paused; }
@keyframes uniScroll { to { transform: translateX(-50%); } }
.uni-logo {
  height: 52px; width: auto; max-width: 150px; object-fit: contain; flex: none;
  filter: grayscale(1) opacity(.5); transition: filter .25s ease, transform .25s ease;
}
.uni-logo:hover { filter: grayscale(0) opacity(1); transform: translateY(-3px) scale(1.06); }
.uni-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .uni-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .rot-word { transition: none; }
}

/* ---------- App coming soon ---------- */
.app-band {
  background: linear-gradient(135deg, #FFF7E6 0%, var(--bg-blush) 55%, #fff 100%);
  border: 1px solid #f6e4d4; border-radius: var(--r-xl);
  padding: 46px 44px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.app-band .ab-mark { position: absolute; right: -26px; top: -34px; width: 200px; opacity: .05; transform: rotate(-8deg); pointer-events: none; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #111; color: #fff; border-radius: 14px; padding: 9px 18px 9px 11px;
  transition: transform .15s ease, box-shadow .15s ease; text-align: left;
}
.store-badge img { height: 30px; width: 44px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; flex: none; }
.store-badge .sb-top { display: block; font-size: 10px; font-weight: 600; color: #b9b6c0; letter-spacing: .04em; }
.store-badge .sb-name { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(17,17,17,.28); }

/* ---------- Brand splash (once per session) ---------- */
.brand-splash {
  position: fixed; inset: 0; z-index: 999; background: #fff;
  display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
.brand-splash .bs-mark { width: 62px; animation: splashPop .55s cubic-bezier(.2, .9, .3, 1.4); }
.brand-splash .bs-word { height: 19px; opacity: .92; }
.brand-splash.out { opacity: 0; pointer-events: none; }
@keyframes splashPop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--white); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 21px; color: var(--pink-deep); font-weight: 600; transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 17px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Account page ---------- */
.account-card { max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; }
.account-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.account-photo .ap-preview {
  width: 86px; height: 86px; border-radius: 50%; overflow: hidden; flex: none;
  border: 3px solid var(--gold); background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 32px; color: var(--pink-deep);
}
.account-photo .ap-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Dark theme — homepage + core pages (listing, profile, apply,
   FAQ, subjects). Pages with body[data-no-dark] stay light.
   ============================================================ */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] {
  --white: #17161C;
  --bg-soft: #131217;
  --bg-blush: #1D1420;
  --ink: #F1EFF5;
  --muted: #9B97A5;
  --border: #2A2833;
  --pink-bg: #33192A;
  --purple-bg: #242045;
  --gold-bg: #2E2712;
  --green-bg: #12291C;
  --blue-bg: #16233B;
  --red-bg: #331A1E;
}
html[data-theme="dark"] body { background: #0F0E13; color: #E7E4EC; }
html[data-theme="dark"] .logo-link img { filter: invert(1) brightness(1.5); }
html[data-theme="dark"] .site-header { background: rgba(17,16,22,.78); border-bottom-color: rgba(42,40,51,.8); }
html[data-theme="dark"] .mobile-menu { background: rgba(17,16,22,.97); }
html[data-theme="dark"] .mobile-menu a, html[data-theme="dark"] .mobile-menu button.menu-item { border-bottom-color: #201e28; }
html[data-theme="dark"] .hero-bg .blob { opacity: .35; }
html[data-theme="dark"] .hero-bg .arch-outline { border-color: rgba(255,79,184,.1); }
html[data-theme="dark"] .hl-gold { background: linear-gradient(180deg, transparent 56%, rgba(255,210,63,.32) 56%, rgba(255,210,63,.32) 94%, transparent 94%); }
html[data-theme="dark"] .search-bar { background: rgba(23,22,28,.72); border-color: rgba(42,40,51,.9); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
html[data-theme="dark"] .search-field input { color: var(--ink); }
html[data-theme="dark"] .rotating-ph { color: #6d6a78; }
html[data-theme="dark"] .btn-secondary { background: rgba(30,29,37,.85); box-shadow: none; }
html[data-theme="dark"] .btn-google, html[data-theme="dark"] .tab.active, html[data-theme="dark"] .sm-seg-btn.active { background: #232129; color: var(--ink); }
html[data-theme="dark"] :is(.filter-pop, .country-menu, .icon-btn, .mini-btn, .loc-chip, .check-pill, .filter-chip, .locmap-card) { background: #17161C; }
html[data-theme="dark"] :is(.lang-menu, .modal, .loc-popup) { background: rgba(25,24,31,.96); border-color: #2A2833; }
html[data-theme="dark"] :is(.input, .select, .textarea, .phone-input) { background: #1B1A21; border-color: #302e3a; color: var(--ink); }
html[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,.6); }
html[data-theme="dark"] :is(.float-chip, .hero-float, .tool-badge, .telebirr-card, .expic-badge, .locmap-toolbar, .booking-card) { background: rgba(28,27,35,.78); border-color: rgba(48,46,58,.9); }
html[data-theme="dark"] .telebirr-card img { background: #fff; border-radius: 8px; padding: 4px; }
html[data-theme="dark"] :is(.listing-hero, .apply-hero, .dash-hero) { background: linear-gradient(180deg, #1D1420, #0F0E13); border-bottom-color: #241f2b; }
html[data-theme="dark"] :is(.listing-media-chip, .apply-media-chip) { background: rgba(25,24,31,.78); border-color: rgba(58,56,68,.9); color: var(--ink); }
html[data-theme="dark"] :is(.cta-band, .app-band) { background: linear-gradient(135deg, #241A24, #1D1420 60%, #17161C); border-color: #332a36; }
html[data-theme="dark"] .section-blush { background: linear-gradient(180deg, #0F0E13, #1D1420 55%, #0F0E13); }
html[data-theme="dark"] .uni-logo { filter: grayscale(1) invert(1) opacity(.55); }
html[data-theme="dark"] .uni-logo:hover { filter: grayscale(0) invert(0) opacity(1); background: #fff; border-radius: 10px; padding: 4px; }
html[data-theme="dark"] :is(.tutor-card .card-foot, .profile-section, .loc-item, .locmap-list, .tutor-row .row-side, .form-section-label, .list-item) { border-color: #232129; }
html[data-theme="dark"] .tag { border-color: #26242e; }
html[data-theme="dark"] .brand-splash { background: #0F0E13; }
html[data-theme="dark"] .brand-splash .bs-mark, html[data-theme="dark"] .brand-splash .bs-word { filter: invert(1); }
html[data-theme="dark"] .step-blob .mini-num { box-shadow: 0 0 0 2px #17161C; }
html[data-theme="dark"] .avail-cell { border-color: #26242e; }
html[data-theme="dark"] .lr-card, html[data-theme="dark"] .rule-card, html[data-theme="dark"] .wizard-tutor { border-color: #26242e; }
html[data-theme="dark"] .expic-figure { border-color: #2A2833; }
html[data-theme="dark"] table.data th { border-bottom-color: #2A2833; }
html[data-theme="dark"] .toast { background: rgba(240,238,245,.95); color: #17161C; }
html[data-theme="dark"] .toast svg { color: #a8830a; }

@media (max-width: 1020px) {
  .app-band { grid-template-columns: 1fr; }
  .store-badges { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .uni-logo { height: 40px; }
  .app-band { padding: 34px 24px; }
}

/* ============================================================
   v5 fixes — icon safety, light brand strip, lockup, mobile-first
   ============================================================ */

/* Never let an icon render at natural SVG size again */
.form-section-label svg, .legal-updated svg { width: 15px; height: 15px; flex: none; }

/* Navbar lockup: black logomark + bigger wordmark */
.logo-link { gap: 9px; }
.logo-link img { height: 27px; }
.logo-link img.lm { height: 25px; width: auto; }
.logo-link--footer img { height: 26px; }
.logo-link--footer img.lm { height: 24px; }

/* Brand strip matches the site: grey-white, light cards */
:root { --strip-bg: #F4F3F6; }
html[data-theme="dark"] { --strip-bg: #17161C; }
.brand-strip { background: var(--strip-bg); border: 1px solid var(--border); }
.brand-strip .bs-label { color: var(--muted); }
html[data-theme="dark"] .brand-strip .bs-label img { filter: invert(1); }
.brand-strip canvas { border: 1px solid var(--border); background: var(--strip-bg); }
.dcard {
  background: var(--white); border-color: var(--border); color: var(--ink);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 12px 28px rgba(17,17,17,.08);
}
.dcard:hover { background: var(--white); border-color: #d8d6de; }
.dcard::after { background: linear-gradient(to left, var(--strip-bg) 8%, rgba(244,243,246,0)); }
html[data-theme="dark"] .dcard::after { background: linear-gradient(to left, #17161C 8%, rgba(23,22,28,0)); }
.dcard .dc-date { color: var(--muted); }
.dc-pink .dc-title { color: var(--pink-deep); } .dc-pink .dc-icon { background: var(--pink-bg); color: var(--pink-deep); }
.dc-gold .dc-title { color: #A8830A; } .dc-gold .dc-icon { background: var(--gold-bg); color: #A8830A; }
.dc-blue .dc-title { color: #2F6BDF; } .dc-blue .dc-icon { background: var(--blue-bg); color: #2F6BDF; }

/* University logos in full color from the start */
.uni-logo { filter: none; opacity: 1; }
.uni-logo:hover { transform: translateY(-3px) scale(1.06); }
html[data-theme="dark"] .uni-logo { filter: none; background: #fff; border-radius: 10px; padding: 4px; }

/* Hero floats: extreme edges on wide screens only — never over pills */
.hero-float { display: none !important; }
@media (min-width: 1360px) {
  .hero-float { display: flex !important; }
  .hero-float--tutor { left: -6px; top: 112px; }
  .hero-float--trial { left: 18px; top: 208px; right: auto; bottom: auto; }
  .hero-float--booked { right: -6px; top: 128px; }
}

/* Rotating word hugs "Find the" and eases width per word */
.rot-wrap { text-align: left; vertical-align: bottom; transition: width .5s cubic-bezier(.22, 1, .36, 1); }

/* ---------- Mobile: app-grade hero + compact 2-up cards ---------- */
@media (max-width: 640px) {
  .apply-layout > *,
  .apply-form-card,
  .aside-card {
    min-width: 0;
    max-width: 100%;
  }
  .apply-form-card,
  .aside-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .logo-link img { height: 21px; }
  .logo-link img.lm { height: 19px; }
  .hero { padding: 32px 0 30px; }
  h1.display { font-size: clamp(2.05rem, 9vw, 2.6rem); }

  /* subject-only, single-row search */
  .search-bar { flex-direction: row; align-items: center; border-radius: var(--r-pill); padding: 7px; }
  .search-field { padding: 10px 6px 10px 15px; }
  .search-field.sf-location { display: none; }
  .search-field + .search-field { border-top: none; }
  .search-bar .btn-search { width: auto; margin-top: 0; padding: 13px 22px; font-size: 15px; flex: none; }

  /* compact marketplace cards, two across like desktop */
  .tutor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tutor-card .card-photo { padding: 10px 10px 0; }
  .tutor-card .avatar-arch { border-radius: 70px 70px 12px 12px; }
  .tutor-card .fav-btn { top: 17px; right: 17px; width: 30px; height: 30px; }
  .tutor-card .fav-btn svg { width: 14px; height: 14px; }
  .tutor-card .card-body { padding: 10px 12px 13px; gap: 5px; }
  .tutor-card h3 { font-size: 13.5px; }
  .tutor-card .card-subject { font-size: 11.5px; }
  .tutor-card .card-bio { display: none; }
  .tutor-card .card-badges { display: none; }
  .tutor-card .card-meta { font-size: 11.5px; gap: 7px; }
  .tutor-card .card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 9px; }
  .tutor-card .card-foot .btn { width: 100%; padding: 10px 6px; font-size: 12.5px; }
  .price strong { font-size: 15px; }

  .brand-strip { padding: 26px 18px 40px; }
  .section-head-row .badge { display: none; }
}

/* ============================================================
   v6 tweaks — bigger lockup, full example pic, social sign-in
   ============================================================ */

/* Bigger logo, nudged toward the screen edge (wider nav container) */
.site-header .container { max-width: 1340px; }
.logo-link { gap: 10px; margin-left: -2px; }
.logo-link img { height: 30px; }
.logo-link img.lm { height: 28px; }

/* Example pic: the original composition, only the white band cropped */
.expic-figure img.main { aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }

/* Social sign-in stack */
.social-stack { display: flex; flex-direction: column; gap: 8px; }
.btn-google svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; flex: none; }
.auth-provider-icon { width: 20px !important; height: 20px !important; object-fit: contain; display: block; flex: none; }
.auth-tabs { margin-bottom: 14px; overflow-x: auto; }
.auth-tabs .tab { white-space: nowrap; font-size: 12.5px; padding: 8px 9px; }
.auth-footnote { text-align: center; font-size: 13px; margin-top: 14px; }
.auth-code-input { letter-spacing: .24em; text-align: center; font-weight: 800; }
.modal .social-stack { gap: 9px; }
.modal .btn-google { min-height: 46px; padding: 11px 14px; }
.modal .backend-status { margin: 0 0 14px; }

@media (max-width: 640px) {
  .logo-link img { height: 23px; }
  .logo-link img.lm { height: 21px; }
}

/* ============================================================
   v7 — app-grade mobile pass: menu, listing cards, sticky bar,
   safe areas, and the after-booking flow components
   ============================================================ */

/* iPhone notch / home-bar safe areas */
.site-header { padding-top: env(safe-area-inset-top); }
.site-header .container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* ---------- Premium app-like mobile menu ---------- */
.mobile-menu { padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); max-height: calc(100vh - 70px); overflow-y: auto; }
.mobile-menu.open { animation: mmDrawerIn .34s cubic-bezier(.18, .9, .24, 1); }
@keyframes mmDrawerIn { from { opacity: 0; transform: translateX(26px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes mmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu-backdrop { display: none; }
.mm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  position: sticky; top: calc(-18px - env(safe-area-inset-top)); z-index: 3;
  margin: calc(-18px - env(safe-area-inset-top)) -18px 14px;
  padding: calc(16px + env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232,232,232,.78);
}
.mm-head .logo-link { min-width: 0; }
.mm-head .logo-link img { height: 22px; }
.mm-head .logo-link img.lm { height: 22px; }
.mm-card {
  background: rgba(250,250,250,.92); border: 1px solid rgba(232,232,232,.86);
  border-radius: 18px; padding: 6px; margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(17,17,17,.045);
  flex: none;
}
.mm-nav a, .mm-item {
  display: flex !important; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  min-height: 48px; padding: 13px 13px !important; border-radius: 13px;
  font-size: 15px; font-weight: 600; border-bottom: none !important;
  transition: background .16s ease, transform .16s ease, color .16s ease;
}
.mm-nav a:hover, .mm-item:hover { background: var(--white); transform: translateX(2px); }
.mm-nav a:active, .mm-item:active, .mm-pills .check-pill:active { transform: scale(.985); }
.mm-nav svg, .mm-item svg { width: 18px; height: 18px; flex: none; color: var(--pink-deep); }
.mm-nav .mm-chev, .mm-item .mm-chev { margin-left: auto; width: 15px; height: 15px; color: #c4c1cc; }
.mm-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); padding: 4px 8px 8px;
}
.mm-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.mm-pills .check-pill { min-height: 38px; padding: 9px 16px; font-size: 13.5px; transition: transform .16s ease, background .16s ease; }
html[data-theme="dark"] .mm-head { background: linear-gradient(180deg, rgba(25,24,31,.98), rgba(25,24,31,.94)); border-bottom-color: #2A2833; }
html[data-theme="dark"] .mm-card { background: rgba(23,22,28,.92); border-color: #2A2833; }
html[data-theme="dark"] .mm-nav a:hover, html[data-theme="dark"] .mm-item:hover { background: #201e28; }

@media (max-width: 900px) {
  body:has(.mobile-menu.open), body.drawer-open { overflow: hidden; touch-action: none; }
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0 calc(100vw - 100%) 0 0;
    z-index: 255;
    display: none;
    background: rgba(17,17,17,.34);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
  .mobile-menu-backdrop.open {
    display: block;
    animation: mmFadeIn .22s ease both;
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    right: calc(100vw - 100%);
    bottom: 0;
    left: auto;
    z-index: 260;
    width: min(360px, calc(88vw - (100vw - 100%)));
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    max-height: none;
    display: none;
    transform: translateX(104%);
    opacity: 0;
    pointer-events: none;
    border-top: 0;
    border-left: 1px solid var(--border);
    border-radius: 24px 0 0 24px;
    background: rgba(255,255,255,.97);
    box-shadow: -24px 0 60px rgba(17,17,17,.18), inset 1px 0 0 rgba(255,255,255,.7);
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-padding-top: 84px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-y;
    will-change: transform;
    transition: transform .34s cubic-bezier(.18,.9,.24,1), opacity .22s ease;
  }
  .mobile-menu::-webkit-scrollbar { display: none; }
  .mobile-menu::before { content: none; }
  .mobile-menu > * { position: relative; z-index: 1; }
  .drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    --drawer-close-shift: -36px;
    width: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    height: 40px;
    margin-left: auto;
    margin-right: 36px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(17,17,17,.08);
    transform: translateX(var(--drawer-close-shift));
    transition: transform .16s ease, background .16s ease;
  }
  .drawer-close:active { transform: translateX(var(--drawer-close-shift)) scale(.94); }
  .drawer-close svg { width: 18px; height: 18px; }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    animation: mmDrawerIn .34s cubic-bezier(.18, .9, .24, 1) both;
  }
  .mobile-menu.open::before { pointer-events: none; }
}

@media (max-width: 430px) {
  .mobile-menu { width: min(380px, calc(92vw - (100vw - 100%))); padding-left: 16px; padding-right: 16px; }
  .drawer-close { --drawer-close-shift: -32px; margin-right: 32px; }
  .mm-card { border-radius: 16px; margin-bottom: 10px; }
  .mm-nav a, .mm-item { min-height: 46px; padding: 12px !important; }
  .mm-pills { gap: 7px; }
  .mm-pills .check-pill { min-height: 36px; padding: 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu.open,
  .mobile-menu-backdrop.open {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Mobile listing cards: short, app-marketplace layout ---------- */
.tag-more { color: var(--pink-deep); background: var(--pink-bg); border-color: transparent; font-weight: 700; }
@media (max-width: 640px) {
  .listing-hero { padding: 24px 0 20px; }
  .listing-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .listing-hero .sub { margin-bottom: 16px; }
  .listing-hero-media {
    min-height: 152px;
    border-radius: 20px;
    order: -1;
  }
  .listing-hero-media img {
    min-height: 152px;
    max-height: 188px;
    object-position: center 36%;
  }
  .listing-media-chip {
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .apply-hero { padding: 34px 0 24px; }
  .apply-hero-media {
    margin-top: 22px;
    max-width: none;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }
  .apply-media-chip {
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .tutor-row {
    grid-template-columns: 78px 1fr; gap: 4px 10px; padding: 12px;
  }
  .tutor-row .row-photo { width: 78px; }
  .tutor-row .avatar-arch { aspect-ratio: 1 / 1; border-radius: 40px 40px 10px 10px; }
  .tutor-row h3 { font-size: 15px; gap: 5px; }
  .tutor-row h3 .badge { display: none; }
  .tutor-row .row-main { gap: 3px; }
  .tutor-row .row-sub { font-size: 12px; }
  .tutor-row .row-bio { font-size: 12.5px; -webkit-line-clamp: 1; margin-top: 1px; }
  .tutor-row .row-stats { font-size: 11.5px; gap: 8px; row-gap: 4px; margin-top: 2px; }
  .tutor-row .row-stats svg { width: 12px; height: 12px; }
  .tutor-row .row-stats .desktop-stat { display: none; }
  .tutor-row .row-side {
    grid-column: 1 / -1; flex-direction: row; align-items: center;
    justify-content: space-between; gap: 10px;
    border-top: 1px solid #f3f3f3; padding-top: 10px; margin-top: 3px;
  }
  .tutor-row .side-price { text-align: left; }
  .tutor-row .row-side .btn { padding: 10px 16px; font-size: 13px; flex: 1; max-width: 210px; }
  .tutor-row .side-actions .icon-btn[data-msg] { display: none; }
  .tutor-row .icon-btn { width: 38px; height: 38px; }
}

/* ---------- Sticky mobile booking bar (tutor profile) ---------- */
.mobile-book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid rgba(232,232,232,.9);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 34px rgba(17,17,17,.12);
}
.mobile-book-bar .mbb-price strong { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.mobile-book-bar .mbb-price span { font-size: 12.5px; color: var(--muted); }
.mobile-book-bar .btn { flex: none; padding: 13px 26px; }
html[data-theme="dark"] .mobile-book-bar { background: rgba(23,22,28,.85); border-top-color: #2A2833; }
@media (max-width: 840px) {
  .mobile-book-bar { display: flex; }
  body.has-book-bar { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body.has-book-bar .site-footer { padding-bottom: 60px; }
}

/* ---------- Booking modal: safe-area + always-visible actions ---------- */
@media (max-width: 640px) {
  .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .wizard-nav .btn { padding: 13px 22px; }
}

/* ---------- After-booking flow (booking-flow.html) ---------- */
.flow-wrap { max-width: 640px; margin: 0 auto; }
.flow-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; margin-bottom: 16px; }
.flow-title { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 6px; }
.flow-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 4px; }
.flow-card > .success-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-bg); display: flex; align-items: center; justify-content: center;
}
.flow-card > .success-ring svg { width: 28px; height: 28px; color: var(--green); }

.timeline { margin-top: 18px; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--pink); }
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%; flex: none; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 2px solid var(--border); color: #b9b6c0;
}
.tl-dot svg { width: 14px; height: 14px; }
.tl-step.done .tl-dot { background: var(--pink); border-color: var(--pink); color: #fff; }
.tl-step.now .tl-dot { background: var(--gold-bg); border-color: var(--gold); color: #a8830a; animation: pinPulse2 2.4s ease-out infinite; }
@keyframes pinPulse2 { 0% { box-shadow: 0 0 0 0 rgba(255,210,63,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,210,63,0); } }
.tl-step h4 { font-size: 14.5px; }
.tl-step p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pkg-card {
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--white);
  padding: 15px; text-align: left; transition: all .15s ease;
  display: flex; flex-direction: column; gap: 3px;
}
.pkg-card:hover { border-color: #cfcfcf; }
.pkg-card.selected { border-color: var(--purple); background: var(--purple-bg); box-shadow: 0 0 0 3px rgba(53,32,199,.08); }
.pkg-card .pk-name { font-weight: 700; font-size: 14.5px; }
.pkg-card .pk-sub { font-size: 12px; color: var(--muted); }

.calc-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f3f3f3; font-size: 14px; }
.calc-row:last-child { border-bottom: none; }
.calc-row.total { font-weight: 800; font-size: 16px; }
.calc-row .muted { font-size: 12.5px; }

.pay-method {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--white);
  padding: 14px 15px; margin-bottom: 9px; transition: all .15s ease;
}
.pay-method:hover { border-color: #cfcfcf; }
.pay-method.selected { border-color: var(--purple); background: var(--purple-bg); }
.pay-method img { height: 24px; width: auto; flex: none; }
.pay-method .pm-icon { width: 34px; height: 34px; border-radius: 11px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.pay-method .pm-icon svg { width: 16px; height: 16px; color: var(--muted); }
.pay-method .pm-name { font-weight: 700; font-size: 14px; }
.pay-method .pm-sub { font-size: 12px; color: var(--muted); }
.pay-method .pm-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.pay-method.selected .pm-check { border-color: var(--purple); background: var(--purple); box-shadow: inset 0 0 0 3px var(--white); }

.rate-stars { display: flex; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.rate-stars button { padding: 4px; }
.rate-stars svg { width: 34px; height: 34px; color: #ddd; fill: #ddd; transition: transform .12s ease; }
.rate-stars button:hover svg { transform: scale(1.15); }
.rate-stars button.on svg { color: var(--gold); fill: var(--gold); }

@media (max-width: 640px) {
  .flow-card { padding: 20px; border-radius: 20px; }
  .pkg-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v8 — launch polish: brand presence, white strip, slots,
   support float, solidarity note, mobile-first hero, tablet
   ============================================================ */

/* Logo: bigger, further left, logomark leads the lockup */
.site-header .container { max-width: 1520px; }
.logo-link { gap: 11px; }
.logo-link img { height: 32px; }
.logo-link img.lm { height: 35px; }

/* Brand strip: pure white to match the site */
:root { --strip-bg: #FFFFFF; }
.brand-strip { box-shadow: var(--shadow-soft); }
.dcard { box-shadow: 0 12px 30px rgba(17,17,17,.09); }
.dcard::after { background: linear-gradient(to left, #FFFFFF 8%, rgba(255,255,255,0)); }

/* Verified Tutor (entry tier) badge */
.badge-basic { background: var(--blue-bg); color: #2F6BDF; }

/* Slot picker (booking step 4) */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn {
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--white);
  padding: 12px 6px; font-weight: 700; font-size: 14px; transition: all .15s ease;
}
.slot-btn:hover { border-color: #cfcfcf; }
.slot-btn.selected { border-color: var(--purple); background: var(--purple-bg); color: var(--purple); }

/* Floating WhatsApp support — iOS-style liquid glass */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 140;
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: 56px; height: 56px; padding: 10px; border-radius: 999px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(17,17,17,.04), 0 14px 34px rgba(17,17,17,.16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 40px rgba(37,211,102,.3); }
.wa-float img { width: 36px; height: 36px; display: block; }
.wa-float .wa-text { display: none; font-size: 11px; color: var(--muted); line-height: 1.3; font-weight: 600; }
.wa-float .wa-text b { display: block; font-size: 13px; color: var(--ink); font-weight: 800; }
body.has-book-bar .wa-float { bottom: calc(98px + env(safe-area-inset-bottom)); }
html[data-theme="dark"] .wa-float { background: rgba(28,27,35,.65); border-color: rgba(58,56,68,.9); }
@media (max-width: 640px) {
  .wa-float { right: 12px; }
  .wa-float .wa-text { display: none; }
}

/* Palestine solidarity notice */
.ps-note {
  position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 139;
  display: flex; align-items: center; gap: 9px;
  max-width: min(72vw, 430px);
  padding: 9px 9px 9px 12px; border-radius: 14px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.4;
}
.ps-note span { min-width: 0; }
.ps-note .ps-flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(17,17,17,.08); }
.ps-note a { color: var(--pink-deep); text-decoration: underline; font-weight: 800; }
.ps-note button { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ps-note button:hover { background: var(--bg-soft); }
.ps-note button svg { width: 11px; height: 11px; }
body.has-book-bar .ps-note { bottom: calc(98px + env(safe-area-inset-bottom)); }
html[data-theme="dark"] .ps-note { background: rgba(25,24,31,.88); }
@media (max-width: 640px) { .ps-note { max-width: calc(100vw - 92px); font-size: 11px; } }

/* Mobile hero: shorter, action-first; pills = two-row rail (4+ visible) */
@media (max-width: 640px) {
  .hero { padding: 22px 0 24px; }
  .hero .search-bar { margin-top: 18px !important; }
  .subject-pills {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
    justify-content: flex-start; gap: 8px;
    overflow-x: auto; margin: 18px -24px 0; padding: 6px 24px 12px;
  }
  .pill { padding: 9px 13px; font-size: 12.5px; gap: 6px; }
  .pill svg { width: 14px; height: 14px; min-width: 14px; flex-basis: 14px; }
  .trust-row { margin-top: 22px; gap: 8px 14px; font-size: 12px; }
  .listing-hero .search-field.sf-location { display: none; }
  .search-bar .btn-search { padding: 12px 18px; font-size: 14px; }
}
@media (max-width: 640px) {
  .logo-link img { height: 24px; }
  .logo-link img.lm { height: 27px; }
}

/* Tablet: real two-column layouts, not stretched mobile */
@media (min-width: 641px) and (max-width: 1020px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-card.full { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .apply-layout aside { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .apply-layout aside .aside-card + .aside-card { margin-top: 0; }
}

/* Dashboard status legend */
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid #f4f4f4; }
.legend-row .status { font-size: 11px; padding: 3px 9px; }

/* ============================================================
   Market-ready QA layer — Palestine banner (dark slim bottom bar)
   + floating-button offsets
   ============================================================ */
.ps-note {
  left: 0; right: 0; bottom: 0;
  max-width: none; border-radius: 0;
  justify-content: center;
  background: rgba(17, 17, 17, 0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: none; border-top: 1px solid #2a2833;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  color: #cfccd6; font-size: 12px; font-weight: 600;
  padding: 8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 118;
}
.ps-note a { color: var(--gold); text-decoration: underline; font-weight: 800; }
.ps-note button { color: #9a97a2; }
.ps-note button:hover { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .ps-note { background: rgba(10, 10, 14, 0.97); }
@media (max-width: 640px) { .ps-note { max-width: none; font-size: 11px; } }

/* Keep floating controls clear of the banner and the mobile book bar */
body.has-ps-note .wa-float { bottom: calc(54px + env(safe-area-inset-bottom)); }
body.has-book-bar .ps-note { bottom: auto; display: none; } /* tutor profile mobile: book bar owns the bottom */
@media (min-width: 841px) { body.has-book-bar .ps-note { display: flex; bottom: 0; } }
body.has-ps-note.has-book-bar .wa-float { bottom: calc(98px + env(safe-area-inset-bottom)); }

/* Mobile polish: left-aligned brand, compact footer, footer-line donation */
@media (max-width: 640px) {
  .site-header .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .nav { height: 58px; gap: 10px; }
  .logo-link {
    gap: 8px;
    margin-left: -6px;
  }
  .logo-link img { height: 25px; }
  .logo-link img.lm {
    height: 34px;
    min-width: 34px;
  }
  .logo-link--footer {
    margin-left: 0;
    justify-content: flex-start;
  }
  .logo-link--footer img { height: 23px; }
  .logo-link--footer img.lm {
    height: 32px;
    min-width: 32px;
  }

  .site-footer {
    padding: 30px 0 20px;
  }
  .site-footer .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .footer-brand p,
  .footer-contact,
  .footer-col h4 {
    display: none;
  }
  .footer-col {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .footer-col a {
    display: inline-flex;
    padding: 3px 0;
    font-size: 13px;
    line-height: 1.4;
  }
  .footer-bottom {
    margin-top: 15px;
    padding-top: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }
  .footer-bottom .pay-methods {
    flex-wrap: wrap;
    gap: 5px;
  }
  .footer-bottom .pay-tag {
    padding: 3px 8px;
    font-size: 11px;
  }

  .ps-note,
  body.has-book-bar .ps-note {
    position: static;
    max-width: none;
    width: auto;
    margin: 0;
    padding: 7px 16px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #111111;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #cfcbd6;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ps-note::-webkit-scrollbar { display: none; }
  .ps-note .ps-flag {
    width: 18px;
    height: 12px;
  }
  .ps-note button {
    width: 22px;
    height: 22px;
    margin-left: auto;
  }

  .site-header .nav > .logo-link {
    gap: 3px;
    margin-left: -10px;
    max-width: 142px;
    overflow: hidden;
  }
  .site-header .nav > .logo-link img.lm {
    height: 36px;
    min-width: 36px;
  }
  .site-header .nav > .logo-link img:not(.lm) {
    height: 22px;
    max-width: 100px;
    margin-left: -3px;
    object-fit: contain;
    object-position: left center;
  }
}

.logo-link img:not(.lm) {
  margin-left: -5px;
}

@media (max-width: 640px) {
  .logo-link img:not(.lm),
  .site-header .nav > .logo-link img:not(.lm) {
    margin-left: -6px;
  }
}

/* ============================================================
   PWA mobile finish: iPhone home-screen safe areas + homepage polish
   ============================================================ */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overscroll-behavior-x: none;
  }

  body.pwa-standalone {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--white);
  }

  .site-header {
    top: 0;
    padding-top: env(safe-area-inset-top);
    transform: translateZ(0);
  }

  body.pwa-standalone .site-header {
    background: rgba(255,255,255,.92);
  }

  .nav {
    height: 56px;
  }

  .nav-burger {
    width: 42px;
    height: 42px;
    margin-right: -4px;
  }

  .hero {
    padding: 24px 0 26px;
    overflow: hidden;
  }

  body.pwa-standalone .hero {
    padding-top: 22px;
  }

  .hero .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  h1.display {
    font-size: clamp(2.18rem, 9.5vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: 0;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .search-bar {
    width: 100%;
    max-width: min(100%, 420px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 26px rgba(17,17,17,.08), 0 12px 34px rgba(255,79,184,.16);
  }

  .search-field,
  .field-stack,
  .search-bar input {
    min-width: 0;
  }

  .search-bar input {
    text-overflow: ellipsis;
  }

  .subject-pills {
    max-width: 100vw;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .subject-pills .pill {
    scroll-snap-align: start;
  }

  .trust-row {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-menu-backdrop {
    inset: 0;
  }

  .mobile-menu {
    right: 0;
    width: min(360px, 90vw);
    border-radius: 24px 0 0 24px;
  }

  .mobile-menu.open {
    display: block;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mm-head {
    top: calc(-18px - env(safe-area-inset-top));
  }

  .wa-float {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
  }

  .wa-float img {
    width: 31px;
    height: 31px;
  }

  .wa-float .wa-text {
    display: none;
  }
}

@media (display-mode: standalone) and (max-width: 640px) {
  .site-footer {
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .ps-note {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu.open,
  .mobile-menu-backdrop.open,
  .hero .search-bar {
    animation: none !important;
    transition: none !important;
  }
}
