/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 750; }
p { margin: 0; }
.ic { flex: none; display: block; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* The app lives in a phone-width column; on desktop it's centred. */
.shell { position: relative; max-width: 480px; height: 100dvh; margin: 0 auto; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 540px) {
  body { background: var(--paper-2); }
  .shell { border-inline: 1.5px solid var(--line-strong); box-shadow: 0 0 60px -20px rgba(22,20,26,.25); }
}
.view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: calc(96px + env(safe-area-inset-bottom)); scroll-behavior: smooth; }
.view.no-tabs { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.view.bare { padding-bottom: 0; }
.view.full { padding-bottom: 0; overflow: hidden; }
.view.full > div { height: 100%; }
.screen { animation: enter .35s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.pad { padding-inline: 20px; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 14px; border: 2px solid var(--ink);
  font-weight: 650; font-size: 16px; white-space: nowrap; transition: transform .12s var(--ease), box-shadow .12s, background .2s, opacity .2s;
  user-select: none;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--pop-sm); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: var(--card); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn[disabled], .btn.disabled { opacity: .35; pointer-events: none; box-shadow: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; transition: background .15s; }
.icon-btn:active { background: rgba(22,20,26,.08); }
.icon-btn.outlined { border: 1.5px solid var(--line-strong); background: var(--card); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid var(--paper); }

/* ================= Top bars ================= */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: rgba(251,247,240,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); min-height: 60px; }
.topbar h1 { font-size: 20px; flex: 1; text-align: center; letter-spacing: -0.02em; }
.topbar .spacer { width: 44px; }
.topbar--float { position: absolute; left: 0; right: 0; top: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: space-between; }
.topbar--float .icon-btn { background: rgba(255,255,255,.92); border: 1.5px solid var(--ink); }
.page-head { padding: calc(20px + env(safe-area-inset-top)) 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 34px; }

/* ================= Tab bar ================= */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--line);
}
.tabbar.hidden { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); position: relative; }
.tab .ic-wrap { width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s var(--ease); }
.tab.on { color: var(--ink); }
.tab.on .ic-wrap { background: var(--brand); color: var(--ink); }
.tab .badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; }

/* ================= Chips & segmented ================= */
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 4px; margin-inline: -20px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .ic { width: 16px; height: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { height: 42px; border-radius: 11px; font-weight: 650; font-size: 15px; color: var(--ink-2); transition: all .2s var(--ease); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--line-strong), 0 2px 8px -4px rgba(0,0,0,.2); }
.seg button small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-top: -2px; }
.seg.tall button { height: 58px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--paper-2); }
.badge-top { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--sun); border: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; }
.badge-top .ic { width: 13px; height: 13px; }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--lilac); }

/* ================= Section heads ================= */
.sec { margin-top: 30px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px; margin-bottom: 12px; }
.sec-head h2 { font-size: 22px; }
.sec-head a, .link { font-weight: 650; font-size: 14px; border-bottom: 1.5px solid currentColor; }

/* ================= Welcome ================= */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; background: var(--brand); position: relative; overflow: hidden; }
.welcome-art { flex: 1; position: relative; min-height: 340px; }
.welcome-art .ring { position: absolute; border-radius: 50%; border: 2px solid var(--ink); overflow: hidden; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); animation: float-in .7s var(--ease) both, bob 6s ease-in-out infinite; }
.welcome-art .ring img { width: 100%; height: 100%; object-fit: cover; }
.welcome-art .word { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: 20px; background: var(--card); border: 2px solid var(--ink); padding: 6px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 3px 3px 0 var(--ink); animation: float-in .7s var(--ease) both, bob 7s ease-in-out infinite; }
@keyframes float-in { from { opacity: 0; transform: scale(.6); } }
@keyframes bob { 50% { translate: 0 -8px; } }
.welcome-copy { background: var(--paper); border-top: 2px solid var(--ink); border-radius: 32px 32px 0 0; padding: 30px 24px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.welcome-copy .logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; margin-bottom: 4px; }
.welcome-copy h1 { font-size: 52px; line-height: .92; letter-spacing: -0.045em; }
.welcome-copy p { color: var(--ink-2); margin-bottom: 10px; font-size: 17px; }
.welcome-copy .fine { font-size: 12px; color: var(--ink-3); text-align: center; margin: 4px 0 0; }

/* ================= Onboarding ================= */
.ob { min-height: 100dvh; display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-right: 14px; border: 1.5px solid var(--ink); }
.progress i { display: block; height: 100%; background: var(--brand); border-right: 1.5px solid var(--ink); transition: width .4s var(--ease); }
.ob-body { flex: 1; padding: 16px 20px 20px; }
.ob-body h1 { font-size: 34px; margin-bottom: 8px; }
.ob-body > p { color: var(--ink-2); margin-bottom: 22px; }
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-list { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line-strong); background: var(--card); text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s, transform .12s; }
.opt:active { transform: scale(.98); }
.opt.on { border: 2px solid var(--ink); box-shadow: var(--pop-sm); padding: 13.5px 15.5px; }
.opt b { display: block; font-size: 16px; }
.opt small { color: var(--ink-3); font-size: 13.5px; }
.opt .glyph { width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 750; font-size: 22px; flex: none; }
.opt .emoji { font-size: 26px; width: 36px; text-align: center; flex: none; }
.opt .radio { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.opt.on .radio { background: var(--ink); border-color: var(--ink); color: #fff; }
.ob-grid .opt { flex-direction: column; align-items: flex-start; gap: 18px; }
.ob-foot { position: sticky; bottom: 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, transparent); }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); padding: 0 16px; font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ================= Home ================= */
.home-head { display: flex; align-items: center; gap: 4px; padding: calc(18px + env(safe-area-inset-top)) 14px 6px 20px; }
.home-head > div { flex: 1; }
.home-head small { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.home-head h1 { font-size: 30px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 750; font-family: var(--font-display); font-size: 18px; flex: none; }
.avatar.lg { width: 76px; height: 76px; font-size: 32px; border-width: 2px; }

.next { margin: 16px 20px 0; background: var(--ink); color: #fff; border-radius: 24px; padding: 18px; position: relative; overflow: hidden; }
.next::after { content: ''; position: absolute; right: -56px; top: -64px; width: 130px; height: 130px; border-radius: 50%; background: var(--brand); opacity: .9; }
.next > * { position: relative; z-index: 1; }
.next-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.countdown { background: rgba(255,255,255,.14); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.next-row { display: flex; gap: 12px; align-items: center; margin: 14px 0 16px; }
.next-row img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; border: 2px solid #fff; }
.next-row b { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; display: block; line-height: 1.15; }
.next-row small { color: rgba(255,255,255,.7); }
.next-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.next .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.first { margin: 16px 20px 0; background: var(--sun); border: 2px solid var(--ink); border-radius: 24px; padding: 20px; box-shadow: var(--pop); }
.first h2 { font-size: 26px; margin-bottom: 6px; }
.first p { color: var(--ink-2); margin-bottom: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px; margin-top: 14px; }
.stat { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.stat .ic { color: var(--brand); margin-bottom: 6px; }
.stat b { font-family: var(--font-display); font-size: 24px; display: block; line-height: 1; letter-spacing: -0.03em; }
.stat small { color: var(--ink-3); font-size: 12.5px; }

.phrase { margin: 0 20px; border: 2px solid var(--ink); border-radius: 22px; padding: 18px; display: flex; gap: 12px; align-items: center; }
.phrase > div { flex: 1; }
.phrase small { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.phrase b { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0; }
.phrase span { color: var(--ink-2); font-size: 14.5px; }
.speak { width: 50px; height: 50px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: var(--pop-sm); flex: none; }
.speak:active { transform: translateY(2px); box-shadow: none; }

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 164px; scroll-snap-align: start; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.mini .ph { aspect-ratio: 1; background: var(--paper-2); position: relative; }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini .ph .badge-top { position: absolute; left: 8px; top: 8px; font-size: 11px; }
.mini .bd { padding: 10px 12px 12px; }
.mini b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ln { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.mini .ln .r { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--ink); }
.mini .ln .r .ic { color: var(--brand); }

.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.lang-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); font-weight: 600; font-size: 14px; }
.lang-chip span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 750; font-size: 14px; border: 1.5px solid var(--ink); }

.row-list { margin: 0 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
.row img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; flex: none; }
.row .grow { flex: 1; min-width: 0; }
.row b { display: block; font-size: 15.5px; }
.row small { color: var(--ink-3); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ic-box { width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.row .chev { color: var(--ink-3); }
.row a.grow { display: block; }
.fav.on { color: var(--brand); }
.fav.on .ic path { fill: currentColor; }

/* ================= Search ================= */
.search-head { position: sticky; top: 0; z-index: 20; background: rgba(251,247,240,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: calc(12px + env(safe-area-inset-top)) 20px 12px; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.search-head.stuck { border-bottom-color: var(--line); }
.search-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 750; font-size: 26px; letter-spacing: -0.03em; }
.lang-switch .g { width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 17px; }
.search-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line-strong); margin-bottom: 12px; transition: border-color .15s; }
.search-input:focus-within { border-color: var(--ink); }
.search-input input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; min-width: 0; }
.search-input .ic { color: var(--ink-3); }
.result-count { padding: 14px 20px 6px; font-size: 14px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; }
.tlist { display: grid; gap: 14px; padding: 6px 20px 0; }

.tcard { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 22px; padding: 14px; position: relative; animation: enter .35s var(--ease) both; }
.tcard-main { display: flex; gap: 14px; padding-right: 36px; }
.tcard-photo { position: relative; flex: none; }
.tcard-photo img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: var(--paper-2); }
.online { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); border: 3px solid var(--card); }
.tcard-name { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 20px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; flex-wrap: wrap; }
.tcard-sub { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13.5px; margin: 3px 0 8px; }
.tcard-sub .ic { width: 15px; height: 15px; }
.tcard-stats { display: flex; gap: 18px; }
.tcard-stats b { display: flex; align-items: center; gap: 3px; font-size: 17px; line-height: 1.2; }
.tcard-stats b .ic { width: 15px; height: 15px; color: var(--brand); }
.tcard-stats small { display: block; color: var(--ink-3); font-size: 12px; }
.heart { position: absolute; right: 8px; top: 8px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.heart.on { color: var(--brand); }
.heart.on .ic path { fill: currentColor; }
.heart.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.3); } }
.tcard-text { margin: 12px 0 10px; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-text b { color: var(--ink); }
.tcard-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.tcard-meta .ic { width: 16px; height: 16px; color: var(--ink-3); }
.tcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.empty { text-align: center; padding: 50px 30px; display: grid; justify-items: center; gap: 10px; }
.empty .blob { width: 96px; height: 96px; border-radius: 32px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--sun); transform: rotate(-6deg); margin-bottom: 8px; box-shadow: var(--pop-sm); }
.empty .blob .ic { width: 40px; height: 40px; }
.empty h2 { font-size: 24px; }
.empty p { color: var(--ink-2); max-width: 280px; margin-bottom: 8px; }

/* ================= Tutor profile ================= */
.p-hero { position: relative; }
.video-cover {
  position: relative; height: 210px; border-bottom: 2px solid var(--ink);
  background: var(--paper-2); display: grid; place-items: center;
  padding-top: env(safe-area-inset-top);
}
.video-cover img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--ink); box-shadow: var(--pop);
}
.cover-tags { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.cover-tags .trust-chip { background: var(--card); border: 1.5px solid var(--line-strong); }
.p-head { padding: 18px 20px 4px; }
.p-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.p-name h1 { font-size: 30px; }
.p-name .flag { font-size: 24px; }
.p-headline { font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); }
.p-stats div { padding: 12px 6px; text-align: center; border-right: 1px solid var(--line); }
.p-stats div:last-child { border-right: 0; }
.p-stats b { display: flex; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.p-stats b .ic { color: var(--brand); width: 16px; height: 16px; }
.p-stats small { color: var(--ink-3); font-size: 12px; }
.p-tabs { position: sticky; top: 0; z-index: 15; display: flex; gap: 22px; padding: calc(4px + env(safe-area-inset-top)) 20px 0; background: var(--paper); border-bottom: 1.5px solid var(--line); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.p-tabs button { padding: 12px 0; font-weight: 650; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; }
.p-tabs button.on { color: var(--ink); border-color: var(--brand); }
.p-sec { padding: 26px 20px 0; scroll-margin-top: 60px; }
.p-sec h2 { font-size: 24px; margin-bottom: 12px; }
.p-sec h3 { font-size: 16px; font-family: var(--font-body); letter-spacing: 0; font-weight: 700; margin: 18px 0 8px; }
.bio { color: var(--ink-2); }
.bio.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { font-weight: 700; margin-top: 6px; border-bottom: 1.5px solid; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills .pill b { font-weight: 700; }
.pills .pill.lvl { background: var(--card); border: 1.5px solid var(--line-strong); }
.pills .pill.lvl em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--mint); }

.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 6px; margin: 0 -20px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 58px; padding: 10px 0; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--card); text-align: center; transition: all .15s var(--ease); }
.day small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.day b { font-family: var(--font-display); font-size: 22px; line-height: 1.15; }
.day i { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 3px auto 0; background: var(--ok); }
.day.none i { background: transparent; }
.day.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.on small { color: rgba(255,255,255,.7); }
.slot-group { margin-top: 16px; }
.slot-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--card); font-weight: 650; font-size: 15px; transition: all .15s var(--ease); }
.slot:active { transform: scale(.96); }
.slot.on { background: var(--brand); border: 2px solid var(--ink); box-shadow: var(--pop-sm); }
.no-slots { padding: 22px; border-radius: 16px; border: 1.5px dashed var(--line-strong); text-align: center; color: var(--ink-3); margin-top: 14px; }

.rating-sum { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.rating-sum .big { font-family: var(--font-display); font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rating-sum .stars { display: flex; color: var(--brand); margin: 4px 0; }
.rating-sum .stars .ic { width: 15px; height: 15px; }
.bars { flex: 1; display: grid; gap: 4px; }
.bars div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.bars span { flex: 1; height: 6px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.bars span i { display: block; height: 100%; background: var(--ink); border-radius: 9px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-top .avatar { width: 38px; height: 38px; font-size: 15px; }
.review-top b { display: block; font-size: 15px; }
.review-top small { color: var(--ink-3); font-size: 12.5px; }
.review-top .stars { margin-left: auto; display: flex; color: var(--brand); }
.review-top .stars .ic { width: 13px; height: 13px; }
.review p { color: var(--ink-2); font-size: 15px; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: 6px; }
.timeline div { position: relative; padding: 0 0 18px 20px; }
.timeline div::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--ink); }
.timeline small { color: var(--ink-3); font-weight: 650; font-size: 13px; }
.timeline b { display: block; }
.timeline span { color: var(--ink-2); font-size: 14px; }

.actionbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1.5px solid var(--line); }
.actionbar .price { flex: 1; min-width: 0; }
.actionbar .price b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.actionbar .price small { color: var(--ink-3); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar .btn-primary { flex: none; }

/* ================= Booking & checkout ================= */
.tutor-mini { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
.tutor-mini img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.tutor-mini b { display: block; font-size: 16px; }
.tutor-mini small { color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.tutor-mini small .ic { width: 13px; height: 13px; color: var(--brand); }
.step-title { font-size: 18px; margin: 26px 0 12px; letter-spacing: -0.02em; }
.tz { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin: -4px 0 12px; }
.tz .ic { width: 15px; height: 15px; }
.summary { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 16px; margin-top: 16px; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary .line:last-child { border-bottom: 0; }
.summary .line span { color: var(--ink-2); }
.summary .line b { text-align: right; }
.summary .total { font-size: 18px; }
.summary .total span { color: var(--ink); font-weight: 700; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--card); width: 100%; text-align: left; margin-top: 10px; }
.pay.on { border: 2px solid var(--ink); padding: 13.5px 15.5px; }
.pay .cardart { width: 44px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, var(--ink), #3b3645); position: relative; flex: none; }
.pay .cardart::after { content: ''; position: absolute; left: 6px; top: 8px; width: 10px; height: 8px; border-radius: 2px; background: var(--sun); }
.pay .grow { flex: 1; }
.pay b { display: block; font-size: 15px; }
.pay small { color: var(--ink-3); font-size: 13px; }
.pay .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.pay.on .radio { border: 6px solid var(--ink); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sun-soft); font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }
.notice .ic { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.policy { display: grid; gap: 10px; margin-top: 16px; }
.policy div { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.policy .ic { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }

.done { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(60px + env(safe-area-inset-top)) 24px 30px; position: relative; overflow: hidden; }
.done-check { width: 110px; height: 110px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: var(--pop); animation: pop-in .6s var(--ease) both; margin-bottom: 24px; }
.done-check .ic { width: 54px; height: 54px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .5s .35s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-size: 38px; margin-bottom: 8px; }
.done > p { color: var(--ink-2); margin-bottom: 24px; max-width: 320px; }
.done .tutor-mini { width: 100%; text-align: left; }
.done .actions { display: grid; gap: 10px; width: 100%; margin-top: 20px; }
.confetti { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 2.4s var(--ease) forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ================= Lessons ================= */
.lesson { display: flex; gap: 14px; padding: 14px; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 20px; margin: 0 20px 12px; animation: enter .35s var(--ease) both; }
.datebox { width: 58px; flex: none; border-radius: 14px; border: 1.5px solid var(--ink); text-align: center; overflow: hidden; align-self: flex-start; background: var(--card); }
.datebox small { display: block; background: var(--brand); border-bottom: 1.5px solid var(--ink); font-size: 11px; font-weight: 750; text-transform: uppercase; padding: 3px 0; letter-spacing: .04em; }
.datebox b { display: block; font-family: var(--font-display); font-size: 24px; padding: 4px 0 2px; line-height: 1.1; }
.datebox span { display: block; font-size: 11px; color: var(--ink-3); padding-bottom: 5px; font-weight: 600; }
.lesson.past .datebox small { background: var(--paper-2); }
.lesson .grow { flex: 1; min-width: 0; }
.lesson-top { display: flex; align-items: center; gap: 8px; }
.lesson-top img { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; }
.lesson-top b { font-size: 15.5px; }
.lesson-time { font-size: 14px; color: var(--ink-2); margin: 6px 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lesson-actions { display: flex; gap: 8px; }
.lesson-actions .btn { flex: 1; padding: 0 10px; }
.mini-stars { display: inline-flex; color: var(--brand); }
.mini-stars .ic { width: 14px; height: 14px; }

/* ================= Classroom ================= */
.class { position: absolute; inset: 0; background: #0E0D11; color: #fff; display: flex; flex-direction: column; z-index: 40; }
.class-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.class-top .icon-btn { color: #fff; }
.class-top .grow { flex: 1; }
.class-top b { display: block; font-size: 16px; }
.class-top small { color: rgba(255,255,255,.6); font-size: 13px; font-variant-numeric: tabular-nums; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(229,56,59,.18); color: #FF8A8C; font-size: 12px; font-weight: 750; }
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.stage { flex: 1; position: relative; margin: 0 12px; border-radius: 26px; overflow: hidden; background: #1c1a21; }
.stage .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(28px) brightness(.55); }
.stage .face-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .face { width: 60%; max-width: 260px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.9); }
.name-tag { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.name-tag .ic { width: 15px; height: 15px; }
.self { position: absolute; right: 12px; top: 12px; width: 104px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #2b2833; border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.self .avatar { background: var(--lilac); color: var(--ink); }
.self .muted-ic { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--danger); display: grid; place-items: center; }
.self .muted-ic .ic { width: 14px; height: 14px; }
.caption { margin: 12px 12px 0; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.08); font-size: 15px; min-height: 64px; display: flex; gap: 10px; align-items: center; }
.caption small { display: block; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 650; }
.caption .txt { animation: enter .4s var(--ease); }
.controls { display: flex; justify-content: center; gap: 14px; padding: 16px 12px calc(18px + env(safe-area-inset-bottom)); }
.ctl { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; transition: background .2s, transform .12s; }
.ctl:active { transform: scale(.94); }
.ctl.off { background: #fff; color: var(--ink); }
.ctl.on { background: var(--brand); color: var(--ink); }
.ctl.end { background: var(--danger); width: 70px; border-radius: 999px; }
.panel { position: absolute; left: 8px; right: 8px; top: 16%; bottom: calc(92px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); border-radius: 26px; z-index: 5; transform: translateY(calc(100% + 140px)); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.panel.open { transform: none; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px 20px; }
.panel-head .seg { flex: 1; }
.panel-body { flex: 1; overflow-y: auto; padding: 12px 20px 20px; }
.notes { width: 100%; min-height: 220px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--card); padding: 14px; font-size: 15px; resize: vertical; outline: none; }
.notes:focus { border-color: var(--ink); }

/* ================= Messages ================= */
.thread { display: flex; gap: 12px; align-items: center; padding: 12px 20px; transition: background .15s; }
.thread:active { background: var(--paper-2); }
.thread .ph { position: relative; flex: none; }
.thread img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.thread .grow { flex: 1; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: -12px; }
.thread .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.thread b { font-size: 16px; }
.thread time { font-size: 12.5px; color: var(--ink-3); flex: none; }
.thread p { color: var(--ink-3); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; }
.thread.unread p { color: var(--ink); font-weight: 600; }
.thread .unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 1.5px solid var(--ink); flex: none; margin-top: 6px; margin-left: auto; }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 6px; border-bottom: 1.5px solid var(--line); background: var(--paper); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head b { display: block; font-size: 16px; line-height: 1.2; }
.chat-head small { color: var(--ink-3); font-size: 12.5px; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; animation: enter .25s var(--ease); white-space: pre-wrap; word-wrap: break-word; }
.msg.them { background: var(--card); border: 1.5px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: 11px; opacity: .55; margin-top: 3px; text-align: right; }
.day-sep { align-self: center; font-size: 12px; font-weight: 650; color: var(--ink-3); background: var(--paper-2); padding: 4px 12px; border-radius: 999px; margin: 8px 0; }
.typing { align-self: flex-start; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 16px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 0; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); }
.composer textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; border-radius: 23px; border: 1.5px solid var(--line-strong); background: var(--card); padding: 11px 16px; font-size: 16px; outline: none; line-height: 1.4; }
.composer textarea:focus { border-color: var(--ink); }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); border: 2px solid var(--ink); display: grid; place-items: center; flex: none; transition: transform .12s; }
.send:active { transform: scale(.92); }
.send[disabled] { opacity: .35; }

/* ================= Profile ================= */
.me { display: flex; align-items: center; gap: 16px; margin: 0 20px; padding: 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; }
.me .grow { flex: 1; min-width: 0; }
.me b { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.03em; }
.me small { color: var(--ink-2); font-size: 14px; }
.plan { margin: 12px 20px 0; padding: 18px; border: 2px solid var(--ink); border-radius: 22px; background: var(--sun); display: flex; align-items: center; gap: 14px; box-shadow: var(--pop-sm); }
.plan .grow { flex: 1; }
.plan small { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.plan b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.menu-title { padding: 0 20px; margin: 26px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }
.fine { text-align: center; color: var(--ink-3); font-size: 12.5px; margin: 26px 20px 0; }

.plans { display: grid; gap: 10px; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 18px; background: var(--card); width: 100%; text-align: left; }
.plan-opt.on { border: 2px solid var(--ink); padding: 15.5px; box-shadow: var(--pop-sm); }
.plan-opt .grow { flex: 1; }
.plan-opt b { display: block; font-size: 17px; }
.plan-opt small { color: var(--ink-3); font-size: 13px; }
.plan-opt .amt { font-family: var(--font-display); font-weight: 750; font-size: 20px; }
.plan-opt .save { font-size: 11px; font-weight: 750; background: var(--mint); padding: 2px 6px; border-radius: 6px; margin-left: 6px; }

/* ================= Bottom sheet ================= */
.sheet-root { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(22,20,26,.45); opacity: 0; transition: opacity .3s; }
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--paper); border-radius: 28px 28px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .35s var(--ease); border-top: 2px solid var(--ink); }
.sheet-root.open .sheet { transform: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: 4px auto 14px; }
.sheet h2 { font-size: 26px; margin-bottom: 6px; }
.sheet > p { color: var(--ink-2); margin-bottom: 18px; }
.sheet .foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; }
.sheet .foot.one { grid-template-columns: 1fr; }
.range { width: 100%; accent-color: var(--brand); height: 30px; }
.range-val { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; text-align: center; margin: 8px 0; }
.range-ends { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
.check-list { display: grid; gap: 8px; }
.stars-input { display: flex; justify-content: center; gap: 8px; margin: 18px 0 8px; }
.stars-input button { color: var(--line-strong); transition: transform .15s, color .15s; }
.stars-input button.on { color: var(--brand); }
.stars-input button:active { transform: scale(1.2); }
.stars-input .ic { width: 44px; height: 44px; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 36px; } }

/* ================= Toast ================= */
.toast { position: absolute; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; transition: all .3s var(--ease); width: max-content; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--soft); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ================= Somero additions ================= */

/* Exam countdown — the emotional centre of the home screen */
.countdown-card {
  margin: 16px 20px 0; display: flex; align-items: center; gap: 16px;
  background: var(--gold); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--pop);
}
.countdown-card > div:first-child { flex: 1; }
.countdown-card small { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.countdown-card b { display: block; font-family: var(--font-display); font-size: 38px; letter-spacing: -0.04em; line-height: 1.05; margin: 2px 0; }
.countdown-card span { font-size: 14px; color: var(--ink-2); }
.ring-stat {
  width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ink) calc(var(--p) * 1%), rgba(21,24,27,.15) 0);
  position: relative;
}
.ring-stat::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--gold); }
.ring-stat .ic { position: relative; z-index: 1; }

/* Trust signals — verified / UNEB examiner */
.trust-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px;
  font-size: 12px; font-weight: 700; background: var(--paper-2); color: var(--ink-2);
}
.trust-chip.ok { background: var(--ok-soft); color: var(--ok); }
.trust-chip.gold { background: var(--gold-soft); color: #8A5D08; }

.pill.sm { font-size: 12px; padding: 3px 8px; gap: 4px; }
.tcard-meta.modes { display: flex; gap: 6px; flex-wrap: wrap; }
.speak.static { pointer-events: none; }

/* Where lessons happen */
.mode-list { display: grid; gap: 8px; }
.mode-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); }
.mode-row .grow { flex: 1; min-width: 0; }
.mode-row b { display: block; font-size: 15px; }
.mode-row small { color: var(--ink-3); font-size: 13px; }
.mode-pick { display: grid; gap: 8px; }
.mode-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--r); width: 100%; text-align: left; transition: border-color .15s, box-shadow .15s; }
.mode-opt.on { border: 2px solid var(--ink); padding: 12.5px 13.5px; box-shadow: var(--pop-sm); }
.mode-opt b { display: block; font-size: 15px; }
.mode-opt small { color: var(--ink-3); font-size: 13px; }

/* Class picker in onboarding */
.ob-group { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 20px 0 8px; display: flex; gap: 8px; align-items: center; }
.ob-group span { background: var(--paper-2); color: var(--ink-2); padding: 2px 7px; border-radius: 6px; letter-spacing: 0; }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.class-btn { height: 56px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--card); font-family: var(--font-display); font-weight: 750; font-size: 20px; transition: all .15s var(--ease); }
.class-btn.on { background: var(--brand); color: #fff; border: 2px solid var(--ink); box-shadow: var(--pop-sm); }
.ob-list.compact .opt { padding: 11px 14px; }
.ob-list.compact .opt.on { padding: 10.5px 13.5px; }

/* Mobile Money */
.momo-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.momo-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--r); text-align: left; transition: all .15s; }
.momo-opt.on { border: 2px solid var(--ink); padding: 12px; box-shadow: var(--pop-sm); }
.momo-opt b { font-size: 14.5px; }
.momo-logo { display: inline-grid; place-items: center; height: 30px; padding: 0 10px; border-radius: 6px; font-weight: 800; font-size: 13px; letter-spacing: -0.02em; }
.momo-logo.mtn { background: #FFCB05; color: #16141A; }
.momo-logo.airtel { background: #E8112D; color: #fff; }

/* "Check your phone" — the state a card checkout never has */
.pay-wait { text-align: center; padding: 8px 0 4px; }
.pay-wait h2 { margin-bottom: 8px; }
.pay-wait p { color: var(--ink-2); margin-bottom: 20px; }
.pulse { width: 86px; height: 86px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; position: relative; }
.pay-timer { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-bottom: 10px; }
.pay-timer i { display: block; height: 100%; background: var(--brand); border-radius: 99px; animation: payfill 5.2s linear forwards; }
@keyframes payfill { from { width: 0; } to { width: 100%; } }

.receipt-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); background: var(--paper-2); padding: 8px 14px; border-radius: 99px; }
.lesson-actions .icon-only { flex: none; width: 42px; padding: 0; }
.panel-head h3 { flex: 1; font-size: 17px; }
