/* ==========================================================================
   Psych Tutor — inner pages: tutor discovery, profiles, auth, applications
   ========================================================================== */

.page-shell { padding-top: 8px; }

/* ---------- search / filters ---------- */
.search-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    margin: 24px 0 20px;
}
.search-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 140px 160px 180px 160px;
    gap: 10px;
    align-items: end;
}
.search-grid .form-control { min-height: 48px; }
.search-grid .btn { min-height: 48px; width: 100%; }
.search-hint { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin: 10px 4px 0; }
.search-hint .icon { width: 14px; height: 14px; }
.result-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; margin: 4px 2px 14px;
}
.result-bar h2 { font-size: 18px; margin: 0; font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.result-bar p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sort-select { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sort-select select { min-height: 40px; padding: 8px 36px 8px 12px; font-size: 12px; border-radius: 10px; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); background: #fff;
    color: var(--muted); border-radius: 999px;
    padding: 6px 12px; font-size: 11.5px; font-weight: 600;
}
.filter-chip:hover { border-color: var(--pink-200); color: var(--berry); }
.filter-chip.is-active { background: var(--berry); border-color: var(--berry); color: #fff; }
.filter-chip .icon { width: 12px; height: 12px; }

.tutor-list { display: grid; gap: 13px; }
.tutor-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 210px 142px;
    gap: 22px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tutor-row:hover { border-color: var(--pink-200); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.tutor-row-avatar { position: relative; width: 84px; height: 84px; }
.tutor-row-avatar .avatar { width: 84px !important; height: 84px !important; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(64,12,38,.14); }
.tutor-row-avatar .online-dot {
    position: absolute; right: 4px; bottom: 6px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #23A26B; border: 2px solid #fff;
}
.tutor-row-main h3 { font-size: 17px; margin: 0 0 2px; }
.tutor-row-main h3 a { color: var(--plum-800); }
.tutor-row-main h3 a:hover { color: var(--berry); }
.tutor-row-level { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tutor-row-rating { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.tutor-row-rating .stars { font-size: 12px; }
.tutor-row-rating strong { font-size: 12px; }
.tutor-row-rating small { font-size: 10.5px; color: var(--muted); }
.tutor-row-about { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; max-width: 500px; }
.tutor-row-avail {
    border-left: 1px solid var(--line);
    padding-left: 22px;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.65;
}
.tutor-row-avail strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 7px; }
.tutor-row-avail .days { color: var(--ink-soft); font-weight: 600; }
.tutor-row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.tutor-row-actions .price { text-align: center; font-size: 11.5px; color: var(--muted); }
.tutor-row-actions .price strong { font-size: 15px; color: var(--plum-800); }
.tutor-row-actions .btn { padding: 10px 14px; font-size: 12.5px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 26px 0 6px; }
.page-num, .page-arrow {
    min-width: 38px; height: 38px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--line); background: #fff;
    color: var(--muted); font-size: 12px; font-weight: 600;
}
.page-num:hover, .page-arrow:hover { border-color: var(--pink-200); color: var(--berry); }
.page-num.is-active { background: var(--berry); border-color: var(--berry); color: #fff; box-shadow: 0 8px 18px rgba(166,25,79,.22); }
.page-arrow.is-disabled { opacity: .4; pointer-events: none; }
.page-arrow .icon { width: 15px; height: 15px; }

/* ---------- tutor profile ---------- */
.profile-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    background:
        radial-gradient(400px 200px at 90% 0%, rgba(244, 156, 193, .25), transparent 65%),
        linear-gradient(120deg, #fff, #FEF7FA);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
}
.profile-hero .avatar { width: 112px !important; height: 112px !important; border-width: 4px; box-shadow: 0 10px 26px rgba(64,12,38,.16); }
.profile-identity { flex: 1; min-width: 240px; }
.profile-identity h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 3px; }
.profile-subline { font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.profile-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.profile-rating strong { font-size: 14px; color: var(--ink); }
.profile-rating small { color: var(--muted); font-size: 11.5px; }
.profile-hero-side { text-align: right; min-width: 170px; }
.profile-price { font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--plum-800); line-height: 1.1; }
.profile-price small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.profile-hero-side .btn { margin-top: 11px; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.profile-main { display: grid; gap: 18px; }
.panel-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-card);
}
.panel-card h2, .panel-card h3 { font-size: 18px; margin-bottom: 12px; }
.panel-card .eyebrow { margin-bottom: 8px; }
.panel-card p { font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
.profile-side { display: grid; gap: 16px; position: sticky; top: 102px; }
.booking-side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.booking-side-card h3 { font-size: 17px; margin-bottom: 4px; }
.booking-side-card .side-price { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--plum-800); line-height: 1.1; margin: 8px 0 3px; }
.booking-side-card .side-price small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); }
.booking-side-card .btn { margin-top: 14px; }
.side-facts { display: grid; gap: 10px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.side-fact { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.side-fact .icon { width: 16px; height: 16px; color: var(--berry); margin-top: 2px; flex: none; }
.side-fact strong { color: var(--ink); font-weight: 600; }
.week-avail { display: grid; gap: 5px; }
.week-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 12px; }
.week-day:nth-child(odd) { background: #FCF7FA; }
.week-day strong { font-weight: 600; color: var(--ink-soft); }
.week-day span { color: var(--muted); font-size: 11.5px; }
.week-day.is-off span { color: var(--muted-light); }
.specialty-list { display: flex; flex-wrap: wrap; gap: 7px; }
.specialty-pill { background: var(--blush); border: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; font-weight: 500; border-radius: 999px; padding: 5px 10px; }
.review-list { display: grid; gap: 12px; }
.review-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #FFFBFC; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-head .avatar { width: 34px !important; height: 34px !important; font-size: 11px; }
.review-head-info { flex: 1; min-width: 0; }
.review-head strong { display: block; font-size: 12.5px; }
.review-head small { color: var(--muted); font-size: 10.5px; }
.review-card p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; }
.review-stars { display: flex; align-items: center; gap: 6px; }
.review-stars .stars { font-size: 12px; }

/* ---------- auth ---------- */
.auth-shell {
    display: grid;
    grid-template-columns: 1fr .93fr;
    max-width: 1060px;
    margin: 30px auto 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(64, 12, 38, .12);
    min-height: 580px;
}
.auth-art {
    position: relative; overflow: hidden;
    background:
        radial-gradient(420px 300px at 25% 20%, rgba(255,255,255,.65), transparent 65%),
        linear-gradient(160deg, #FDE9F3 0%, #F9CFE2 52%, #EAB7D8 100%);
    padding: 46px 44px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.auth-art::before {
    content: ""; position: absolute; left: -110px; bottom: -140px;
    width: 380px; height: 380px; border-radius: 48% 52% 55% 45%;
    background: linear-gradient(145deg, rgba(214,51,108,.36), rgba(123,90,166,.1));
    transform: rotate(-17deg);
}
.auth-art::after {
    content: ""; position: absolute; right: -90px; top: -110px;
    width: 300px; height: 300px; border-radius: 50%;
    border: 1px solid rgba(166,25,79,.16);
}
.auth-art-inner { position: relative; z-index: 1; max-width: 340px; }
.auth-brand-logo { width: 122px; height: 122px; margin: 0 auto 18px; filter: drop-shadow(0 16px 30px rgba(64,12,38,.2)); }
.auth-art h2 { font-size: 2.2rem; margin: 0 0 3px; color: var(--plum-900); }
.auth-art .auth-tag { font-size: 10px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; color: var(--berry); }
.auth-art p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; margin: 18px 0 0; }
.auth-art-quote {
    margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(166,25,79,.15);
    font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--plum-700);
}
.auth-art-quote span { display: block; font-family: var(--sans); font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.auth-panel { padding: 46px 46px 38px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 6px; text-align: center; }
.auth-panel .auth-intro { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }
.auth-panel .form-field > label { font-size: 12px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.auth-options a { font-size: 11.5px; font-weight: 600; }
.auth-footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; }
.auth-footer a { font-weight: 700; }
.auth-small-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 11px; color: var(--muted); }
.auth-demo-note { margin-top: 18px; }

/* ---------- become a tutor ---------- */
.apply-shell {
    position: relative; overflow: hidden;
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 34px;
    padding: 48px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(520px 340px at 8% 110%, rgba(214,51,108,.38), transparent 68%),
        radial-gradient(420px 300px at 92% -10%, rgba(123,90,166,.25), transparent 70%),
        linear-gradient(125deg, var(--plum-950), var(--plum-800) 65%, #511438);
    color: #fff;
    box-shadow: 0 26px 70px rgba(46, 10, 32, .22);
}
.apply-shell::after {
    content: ""; position: absolute; left: 43%; top: -100px;
    width: 330px; height: 330px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.09);
}
.apply-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; max-width: 540px; }
.apply-copy h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.03; margin: 12px 0 12px; }
.apply-copy h1 .accent { color: var(--pink); display: block; }
.apply-copy p { color: rgba(255,255,255,.68); font-size: 13.5px; line-height: 1.75; max-width: 460px; }
.apply-benefits { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.apply-benefits li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.apply-benefits .check {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
    background: var(--berry); color: #fff;
}
.apply-benefits .icon { width: 12px; height: 12px; }
.apply-note {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 12px 14px;
    font-size: 11.5px; color: rgba(255,255,255,.66); line-height: 1.6;
    margin-top: 24px; max-width: 440px;
}
.apply-note .icon { width: 16px; height: 16px; color: var(--pink-300); margin-top: 1px; flex: none; }
.apply-card {
    position: relative; z-index: 2;
    background: #fff; color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(23, 4, 15, .3);
    align-self: center;
}
.apply-card h2 { font-size: 21px; margin-bottom: 4px; }
.apply-card .form-intro { font-size: 11.5px; color: var(--muted); margin-bottom: 18px; }
.apply-card .form-field { margin-bottom: 13px; }
.apply-card .form-control { min-height: 44px; font-size: 12.5px; }
.apply-card textarea.form-control { min-height: 82px; }
.apply-card .btn { margin-top: 4px; }
.apply-status { padding: 30px 10px; text-align: center; }
.apply-status .status-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
    display: grid; place-items: center; background: var(--green-soft); color: var(--green);
}
.apply-status .status-icon .icon { width: 28px; height: 28px; }
.apply-status h3 { margin-bottom: 4px; }
.apply-status p { color: var(--muted); font-size: 12.5px; }

/* ---------- application steps strip ---------- */
.apply-steps { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 30px auto 0; font-size: 11.5px; color: var(--muted); }
.apply-steps .step { display: flex; align-items: center; gap: 6px; }
.apply-steps .step b { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--berry); font-size: 9.5px; }
.apply-steps .sep { color: var(--line-strong); }
