@import url("nav.css");
:root {
  --g: #12b76a;
  --g-2: #16c47a;
  --g-deep: #00a75c;
  --g-panel: #1cb673;
  --g-soft: #e8f8ef;
  --g-line: #9ee0bd;
  --ink: #0f1115;
  --ink-2: #1d2433;
  --text: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #f3f4f6;
  --white: #fff;
  --red: #ef4444;
  --red-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fdf3e2;
  --p: #9b5de5;
  --p-btn: #a259e6;
  --p-deep: #7c3aed;
  --p-soft: #f4edfd;
  --p-line: #c9a7f2;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.04);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; font-size: 15px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 13px; height: 13px; }
.i-fill { fill: currentColor; stroke: none; }

.wrap { width: min(1190px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1260px, 100% - 40px); margin-inline: auto; }
.page { padding: 64px 0 96px; }

/* ---------- type ---------- */
.h1 { font-size: clamp(34px, 3.2vw, 46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.h1-xl { font-size: clamp(38px, 4.3vw, 62px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.h2 { font-size: clamp(24px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 16px; margin-top: 8px; }
.small { font-size: 13px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--faint); }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.link { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; font-size: 14px; }
.link:hover { color: var(--g); }

/* red hand-drawn underline (two variants: swoosh and wave) */
.sw { position: relative; display: inline-block; white-space: nowrap; }
.sw::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -0.16em; height: 0.2em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C50 3 140 3 197 7' fill='none' stroke='%23ef4444' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.sw.wave::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 6c20 6 30 6 49 1s30-5 49 0 30 5 49 0 30-5 47 1' fill='none' stroke='%23ef4444' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap; transition: transform .15s, background-color .15s, box-shadow .15s, border-color .15s, opacity .15s; border: 1.5px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .i { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover .i-go { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d35; }
.btn-green { background: var(--g); color: #fff; }
.btn-green:hover { background: #0ea660; }
.btn-purple { background: var(--p-btn); color: #fff; }
.btn-purple:hover { background: #8f45d6; }
.btn-white { background: #fff; color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-line-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-line-dark:hover { background: rgba(255,255,255,.08); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 13px; font-size: 12px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sq { border-radius: 8px; }
.btn[disabled], .btn.is-disabled { background: #d1d5db; color: #fff; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: border-color .15s, background-color .15s; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- pills / chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; color: var(--ink); transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip .i { width: 14px; height: 14px; display: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .i { display: block; }
.chip-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 11px; }
.chip:not(.on) .count { background: var(--bg); }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--g); color: #0a8f52; font-size: 12px; font-weight: 500; background: #fff; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-x { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.pill-x button { display: grid; place-items: center; color: #fff; }
.pill-x .i { width: 12px; height: 12px; stroke-width: 3; }
.super { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.super .i { width: 11px; height: 11px; fill: var(--g); stroke: var(--g); }
.status { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status.wait { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.status.wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g); }
.status.ok { background: var(--g); color: #fff; }
.status.ok .i { width: 13px; height: 13px; stroke-width: 3; }
.status.soft { background: var(--g-soft); color: #0a8f52; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge.p { background: var(--p-soft); color: var(--p-deep); }
.badge.p-line { border: 1px solid var(--p-line); color: var(--p-deep); background: #fff; }
.badge.g { background: var(--g-soft); color: #067a45; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red); color: #fff; }
.badge.grey { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.dot-red { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 28px; }
.pad-lg { padding: 36px 40px; }
.card-dark { background: var(--ink); color: #fff; border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 13px; }
.note.g { border: 1px solid var(--g-line); background: #f0fbf5; color: #0a7a46; }
.note.grey { background: var(--bg); color: var(--text); }
.note .i { width: 17px; height: 17px; margin-top: 1px; }

.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar.sq { border-radius: 10px; }
.initials { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.ini-p { background: #ead9fb; color: var(--p-deep); }
.ini-dark { background: var(--ink); color: #fff; }
.ini-grey { background: #e5e7eb; color: var(--text); }
.ini-g { background: #dcfce7; color: #15803d; }
.ini-amber { background: #fdecd5; color: #b45309; }
.ini-solid { background: var(--p-btn); color: #fff; }
.online-dot { position: relative; }
.online-dot::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--g); border: 2px solid #fff; }

/* ---------- forms ---------- */
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.input, .select, .textarea { width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,17,21,.06); }
.textarea { height: auto; min-height: 88px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.field { display: block; }
.field + .field { margin-top: 18px; }
.grid-2 > .field + .field { margin-top: 0; }
.input-group { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 0 14px; gap: 10px; transition: border-color .15s; }
.input-group:focus-within { border-color: var(--ink); }
.input-group input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; height: 100%; }
.input-group input::placeholder { color: var(--faint); }
.input-group .sep { width: 1px; align-self: stretch; margin: 8px 0; background: var(--line); }
.cc { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.verified { font-size: 11px; font-weight: 500; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.verified.p { color: var(--p-deep); background: var(--p-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 5px; margin: 0; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background-color .15s, border-color .15s; }
.check input:checked { background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px; border-color: var(--g); }

/* switch */
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 24px; border-radius: 999px; background: #e5e7eb; cursor: pointer; flex-shrink: 0; margin: 0; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch:checked { background: var(--g); }
.switch:checked::after { transform: translateX(20px); }
.switch.p:checked { background: var(--p-btn); }

/* range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(var(--fill, var(--g)), var(--fill, var(--g))) 0 / var(--pct, 50%) 100% no-repeat, var(--track, #e5e7eb); cursor: pointer; margin: 10px 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--thumb, var(--ink)); border: 3px solid var(--thumb-ring, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--thumb, var(--ink)); border: 3px solid var(--thumb-ring, #fff); }

/* segmented / tabs */
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg); border-radius: 999px; }
.seg button { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: var(--text); transition: background-color .15s, color .15s; }
.seg button.on { background: var(--ink); color: #fff; }
.seg.white { background: #fff; border: 1px solid var(--line); }

.progress { height: 8px; border-radius: 99px; background: #eceef1; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--g); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.progress.p > span { background: var(--p-btn); }

/* ---------- top bars ---------- */
.logo { font-family: var(--font); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; color: var(--ink); display: inline-flex; align-items: center; gap: 2px; }
.logo b { color: var(--g); }

.me { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 600; font-size: 14px; }
.me.p { background: var(--p-btn); }




/* ---------- subject tiles (shared with home look) ---------- */
.tile { position: relative; display: block; height: 144px; border-radius: 12px; padding: 18px 20px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.tile h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { font-size: 14px; margin-top: 3px; opacity: .8; }
.tile .glyph { position: absolute; right: 12px; bottom: -4px; font-size: 88px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.tile .glyph.serif { font-family: "Times New Roman", Georgia, serif; font-style: italic; font-size: 104px; bottom: -14px; }
.tile svg.glyph { width: 84px; height: 84px; right: 14px; bottom: 8px; }
.t-green { background: var(--g-2); color: var(--ink); }
.t-black { background: #0b0b0b; color: #fff; }
.t-white { background: #fbfaf8; color: var(--ink); border: 1px solid var(--line); }
.t-red { background: #fd433c; color: var(--ink); }
.tile.sel { outline: 3px solid var(--ink); outline-offset: 3px; }
.tile.t-black.sel { outline-color: var(--ink); }

/* ---------- tutor photo with baked overlays ---------- */
.photo { position: relative; border-radius: 14px; overflow: hidden; background: #e5e7eb; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.fav { position: absolute; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); opacity: 0; transition: opacity .15s; }
.fav .i { width: 55%; height: 55%; stroke-width: 2.2; }
.fav.on { opacity: 1; color: var(--red); }
.fav.on .i { fill: var(--red); stroke: var(--red); }
.fav .i { transition: fill .2s, stroke .2s, transform .15s; }
.fav:hover .i { transform: scale(1.12); }
.fav:active .i { transform: scale(.85); }
/* save: heart squashes, pops, and a red ring bursts out */
.fav.pop .i { animation: favPop .5s cubic-bezier(.2,.8,.3,1.4); }
.fav.pop::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--red); pointer-events: none; animation: favRing .55s ease-out forwards; }
@keyframes favPop { 0% { transform: scale(1); } 25% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes favRing { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fav.pop .i, .fav.pop::after { animation: none; } }
.fav.off-cover { opacity: 1; }

.pill-online { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--g); color: #fff; font-size: 11px; font-weight: 500; }
.pill-online::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.photo .fav { top: 9px; right: 9px; width: 28px; height: 28px; opacity: 1; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pill-intro { position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 12px; font-weight: 500; transition: transform .15s; }
.pill-intro .i { width: 22px; height: 22px; padding: 6px 5px 6px 7px; border-radius: 50%; background: var(--ink); color: #fff; }
.pill-intro:hover { transform: scale(1.04); }

/* ---------- tutor list card ---------- */
.tc { position: relative; display: grid; grid-template-columns: auto 1fr 256px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid #edeef0; }
.tc + .tc { margin-top: 40px; }
.tc-pop { position: absolute; top: -12px; left: 22px; z-index: 2; height: 25px; padding: 0 12px; display: inline-flex; align-items: center; background: var(--red); color: #fff; border-radius: 4px 4px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.tc-media { padding: 24px 0 18px 24px; text-align: center; }
.tc-media .photo { width: 208px; aspect-ratio: 1; }
.tc-media .link { display: inline-block; margin-top: 14px; font-size: 13px; }
.tc-body { padding: 26px 28px 20px 46px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head stats" "role stats" "speaks stats" "bio bio" "tags tags" "foot foot"; align-content: start; column-gap: 20px; min-width: 0; }
.tc-head { grid-area: head; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.tc-head h3 a:hover { color: var(--g); }
.super.up { text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; height: 22px; }
.tc-role { grid-area: role; font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.tc-city { display: inline-flex; align-items: center; gap: 4px; }
.tc-city .i { display: none; }
.tc-speaks { grid-area: speaks; font-size: 13.5px; margin-top: 6px; color: var(--text); }
.tc-speaks b { font-weight: 500; color: var(--ink); }
.tc-speaks i { font-style: normal; color: var(--faint); }
.tc-stats { grid-area: stats; display: flex; align-self: start; }
.tc-stats li { padding: 0 22px; border-left: 1px solid var(--line); }
.tc-stats li:first-child { border: 0; padding-left: 0; }
.tc-stats li:last-child { padding-right: 0; }
.tc-stats b { display: flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tc-stats b .i { display: none; width: 15px; height: 15px; color: #f5b301; }
.tc-stats span { display: block; font-size: 11.5px; color: var(--muted); }
.tc-bio { grid-area: bio; font-size: 13.5px; color: var(--text); margin-top: 16px; max-width: 540px; }
.tc-body .tag-row { grid-area: tags; margin-top: 14px; }
.tc-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.days { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; }
.days li { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 10px; color: var(--muted); }
.days li.on { background: var(--g); border-color: var(--g); color: #fff; font-weight: 600; }
.tc-next { font-size: 13px; color: var(--muted); }
.tc-next b { color: var(--ink); font-weight: 500; }
.tc-price { background: var(--ink); color: #fff; border-radius: 0 16px 16px 0; padding: 26px 25px 22px; }
.tc-price .amt { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tc-price .per { font-size: 12.5px; color: #c7cad1; }
.tc-price .btn { height: 40px; font-size: 13px; border-radius: 10px; }
.tc-price .btn-green { margin-top: 26px; }
.tc-price .trial { text-align: center; font-size: 12.5px; color: #e5e7eb; margin: 10px 0 14px; }
.tc-price .tc-profile { display: block; text-align: center; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; margin-top: 30px; }
.tc-price .tc-profile:hover { color: var(--g-2); }

/* variant b (find-tutor page): stats under the name, framed price box */
.list-b .tc { border-radius: 22px; padding: 22px; grid-template-columns: 260px 1fr 214px; border-color: #e7e8ea; }
.list-b .tc + .tc { margin-top: 24px; }
.list-b .tc-media { padding: 0; }
.list-b .tc-media .photo { width: 260px; border-radius: 12px; }
.list-b .tc-media .link { display: none; }
.list-b .tc-body { padding: 10px 24px 0 52px; grid-template-columns: 1fr; grid-template-areas: "head" "role" "speaks" "stats" "bio" "tags" "foot"; }
.list-b .tc-head h3 { font-size: 19px; font-weight: 500; }
.list-b .tc-city .i { display: block; }
.list-b .tc-stats { margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.list-b .tc-stats li { border: 0; padding: 0 36px 0 0; }
.list-b .tc-stats b { font-size: 15px; }
.list-b .tc-stats li:first-child b .i { display: block; }
.list-b .tc-stats span { color: var(--faint); }
.list-b .tc-foot { border: 0; padding-top: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.list-b .tc-pop { display: none; }
.list-b .tc-price { border-radius: 12px; padding: 20px 18px; }
.list-b .tc-price .btn-green { margin-top: 20px; }

@media (max-width: 1080px) {
  .tc, .list-b .tc { grid-template-columns: auto 1fr; }
  .tc-price, .list-b .tc-price { grid-column: 1 / -1; border-radius: 0 0 16px 16px; display: block; }
  .list-b .tc-price { border-radius: 12px; margin-top: 20px; }
  .tc-price-in { display: grid; grid-template-columns: auto 1fr 1fr; grid-template-areas: "amt book msg" "per trial prof"; align-items: center; gap: 4px 16px; }
  .tc-price .amt { grid-area: amt; } .tc-price .per { grid-area: per; }
  .tc-price .btn-green { grid-area: book; margin: 0; } .tc-price .btn-line-dark { grid-area: msg; }
  .tc-price .trial { grid-area: trial; margin: 0; } .tc-price .tc-profile { grid-area: prof; margin: 0; }
  .tc-body { grid-template-columns: 1fr; grid-template-areas: "head" "role" "speaks" "stats" "bio" "tags" "foot"; padding-left: 28px; }
  .tc-stats { margin-top: 12px; }
}
@media (max-width: 640px) {
  .tc, .list-b .tc { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .tc > * { min-width: 0; }
  .tc-price .btn { padding: 0 10px; }
  .list-b .tc { padding: 16px; }
  .tc-media { padding: 22px 18px 0; }
  .tc-media .photo, .list-b .tc-media .photo { width: 100%; aspect-ratio: 4 / 3; }
  .tc-body, .list-b .tc-body { padding: 18px 18px 18px; }
  .tc-stats li { padding: 0 14px; }
  .list-b .tc-stats li { padding-right: 24px; }
  .tc-price-in { grid-template-columns: 1fr 1fr; grid-template-areas: "amt amt" "per per" "book msg" "trial prof"; }
  .tc-price .btn-green, .tc-price .btn-line-dark { margin-top: 14px; }
  .tc-price .trial, .tc-price .tc-profile { margin-top: 4px; }
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(17,19,24,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; overflow-y: auto; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; width: min(1000px, 100%); background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.25); transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow: hidden; margin: auto; }
.modal.open .modal-box { transform: none; }
.modal-x { position: absolute; top: 20px; right: 20px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center; transition: background-color .15s; }
.modal-x:hover { background: #e5e7eb; }
body.lock { overflow: hidden; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--g); width: 18px; height: 18px; stroke-width: 3; }

/* reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive shell ---------- */
@media (max-width: 1080px) {
}
@media (max-width: 760px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .page { padding: 36px 0 64px; }
  .pad, .pad-lg { padding: 22px 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 94vh; overflow-y: auto; }
}

/* ---------- backend states ---------- */
.offline-note { position: sticky; top: 0; z-index: 90; margin: 0; padding: 10px 16px; background: #fdf3e2; color: #92400e; font-size: 13px; text-align: center; }
.me { overflow: hidden; }
.me img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph-ini { display: grid; place-items: center; width: 100%; height: 100%; background: var(--g-soft); color: #067a45; font-size: clamp(32px, 4vw, 54px); font-weight: 600; letter-spacing: -0.02em; }
.loading { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
