/*
 * پایه بصری اپ رسانا، برگرفته از طرح فیگما.
 * طرح با IRANSansX کار شده، اما فایل‌های آن در پروژه موجود نیست؛
 * بسته Vazirmatn که همه وزن‌های لازم را دارد جانشین آن است.
 * تعریف فونت از همین فایل بار می‌شود تا هر صفحه‌ای که این شیوه‌نامه را
 * می‌گیرد بی‌نیاز از لینک جداگانه، تایپوگرافی درست داشته باشد.
 */

@import url('/lib/vazirmatn/Vazirmatn-font-face.css');

:root {
    --r-font: 'Vazirmatn', Tahoma, sans-serif;

    /* سطوح */
    --r-page-bg: #F3F3F3;
    --r-surface: #FFFDF8;
    --r-card: #FFFFFF;

    /* رنگ پایه هر نقش */
    --r-coral: #F0535E;
    --r-navy: #1B314D;

    /* متن */
    --r-text: #000000;
    --r-text-strong: #111111;
    --r-text-body: #3C3C3C;
    --r-text-muted: #718095;
    --r-text-date: #425A7B;

    /* کاشی‌ها و سطوح تأکیدی */
    --r-cream: #F9ECE6;
    --r-sand: #F8F2D1;
    --r-tile: #F7F6F2;
    --r-track: #F1EEE8;
    --r-panel: #F4F2EE;

    /* وضعیت درخواست */
    --r-new-fg: #238B68;
    --r-new-bg: #EAF7F2;
    --r-pending-fg: #C48C0F;
    --r-pending-bg: #F8F2D1;
    --r-accepted-fg: #4088BF;
    --r-accepted-bg: #E0F1FF;
    --r-expired-fg: #000000;
    --r-expired-bg: #E6E6E6;

    /* پیام اطلاع‌رسانی و اطمینان */
    --r-info-fg: #238B68;
    --r-info-bg: #EEF7F4;

    /* خطوط */
    --r-border: #D4D4D4;
    --r-border-soft: rgba(212, 212, 212, 0.94);
    --r-hairline: #F2F2F2;

    /* هندسه */
    --r-radius-input: 10px;
    --r-radius-btn: 12px;
    --r-radius-card: 15px;
    --r-btn-height: 44px;

    /* رنگ اصلی تم فعال؛ پیش‌فرض مسیر کنشگر */
    --r-primary: var(--r-coral);

    /* نام‌های قدیمی که ویوهای موجود از آنها استفاده می‌کنند */
    --primary-color: var(--r-primary);
    --primary-light: var(--r-cream);
    --bg-color: var(--r-surface);
    --text-dark: var(--r-text);
    --text-light: var(--r-text-muted);
}

.theme-preacher {
    --r-primary: var(--r-coral);
}

.theme-school {
    --r-primary: var(--r-navy);
    --primary-light: #e8eef5;
}

/* --- لندینگ ثبت‌نام بر اساس دامنه (LOGIN 1 کنشگر / LOGIN 10 مدرسه) --- */

body.landing-page {
    --bg-color: var(--r-surface);
}

body.landing-page.theme-preacher {
    --bg-color: #f9ece6;
}

body.landing-page.theme-school {
    --bg-color: #1b314d;
}

body.landing-page .app-container {
    background: transparent;
    box-shadow: none;
    width: 100%;
    overflow-x: clip;
}

body.landing-page .content-area,
body.landing-page .step,
body.landing-page .landing-hero {
    min-width: 0;
    max-width: 100%;
}

body.landing-page .content-area {
    padding: 0;
}

body.landing-page .content-area,
body.landing-page .step,
body.landing-page .landing-hero {
    min-width: 0;
    max-width: 100%;
}

body.landing-page footer.site-foot,
body.reg-flow footer.site-foot {
    display: none;
}

.landing-hero__trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9px;
    background: var(--r-info-bg);
    color: var(--r-info-fg);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

.landing-hero__trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--r-info-fg);
    flex-shrink: 0;
}

.landing-hero__foot {
    margin-top: 20px;
    padding-bottom: 8px;
    font-size: 0.72rem;
    color: var(--r-text-muted);
    line-height: 1.9;
    text-align: center;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    overflow-wrap: anywhere;
}

.landing-hero__foot a {
    color: var(--r-text-date);
    text-decoration: none;
}

body.landing-only .step:not(#step-0) {
    display: none !important;
}

/* ورود — پاورقی */
.au-foot {
    padding: 16px 18px 22px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--r-text-muted);
    line-height: 1.9;
}

.au-foot a {
    color: var(--r-text-date);
    text-decoration: none;
}

/* اعلان‌ها — نوار عمل */
.noti-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.noti-toolbar .btn-mark-all {
    border: 0;
    background: var(--r-panel);
    color: var(--r-navy);
    font-family: var(--r-font);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.landing-hero {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 48px 24px 28px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.landing-hero__glow {
    position: absolute;
    width: min(360px, 100%);
    height: 360px;
    max-width: 100%;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.45;
}

.landing-hero__brand {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
    flex-shrink: 1;
    min-height: 0;
}

.landing-hero__brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: auto;
}

.landing-hero__badge {
    width: 42px;
    height: 42px;
    margin: 0 0 16px auto;
    flex-shrink: 0;
}

.landing-hero__badge img {
    width: 42px;
    height: 42px;
    display: block;
}

.landing-hero__kicker {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.5;
    letter-spacing: -0.32px;
    width: 100%;
}

.landing-hero__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
    margin: 0 0 10px;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: auto;
}

.landing-hero__lead {
    font-size: 13px;
    font-weight: 300;
    line-height: 18px;
    margin: 0 0 18px;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: auto;
}

.landing-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    width: 100%;
    max-width: 100%;
}

.landing-hero__features li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 8px;
}

.landing-hero__check {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 9px;
}

.landing-hero__cta-row {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-hero__cta-row .landing-hero__cta {
    margin: 0;
    max-width: none;
}

.landing-hero__cta {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: var(--r-btn-height);
    margin: 0;
    border: none;
    border-radius: var(--r-radius-btn);
    padding: 0 16px;
    font-family: var(--r-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.landing-hero__cta--ghost {
    background: transparent;
    border: 1.5px solid currentColor;
}

.landing-hero__cta i {
    font-size: 11px;
}

/* کنشگر — کرم + مرجانی */
.landing-hero--preacher {
    background: #f9ece6;
}

.landing-hero--preacher .landing-hero__glow {
    right: -80px;
    top: 40px;
    background: #f0535e;
    opacity: 0.18;
}

.landing-hero--preacher .landing-hero__brand {
    width: 168px;
    height: 168px;
    margin-top: 12px;
}

.landing-hero--preacher .landing-hero__kicker {
    color: var(--r-coral);
    font-weight: 500;
}

.landing-hero--preacher .landing-hero__title {
    color: #111;
}

.landing-hero--preacher .landing-hero__lead {
    color: #3c3c3c;
}

.landing-hero--preacher .landing-hero__features li {
    color: #000;
}

.landing-hero--preacher .landing-hero__check {
    background: #eaf7f2;
    color: #238b68;
}

.landing-hero--preacher .landing-hero__cta {
    background: var(--r-coral);
    color: #fff;
}

.landing-hero--preacher .landing-hero__cta--ghost {
    background: transparent;
    border-color: var(--r-coral);
    color: var(--r-coral);
}

/* مسئول مدرسه — سرمه‌ای + کرم */
.landing-hero--school {
    background: linear-gradient(155deg, #25496f 1.7%, #1b314d 63%);
    color: #fff;
}

.landing-hero--school .landing-hero__glow {
    right: -40px;
    bottom: 80px;
    background: #4088bf;
    opacity: 0.35;
}

.landing-hero--school .landing-hero__brand {
    width: 118px;
    height: 186px;
    margin-top: 8px;
}

.landing-hero--school .landing-hero__kicker {
    color: #f8f2d1;
}

.landing-hero--school .landing-hero__title {
    color: #fff;
}

.landing-hero--school .landing-hero__lead {
    color: #f2f2f2;
}

.landing-hero--school .landing-hero__features li {
    color: #fff;
}

.landing-hero--school .landing-hero__check {
    background: #f8f2d1;
    color: #1b314d;
}

.landing-hero--school .landing-hero__cta {
    background: #f8f2d1;
    color: #1b314d;
}

.landing-hero--school .landing-hero__cta--ghost {
    background: transparent;
    border-color: #f8f2d1;
    color: #f8f2d1;
}

@media (max-height: 860px) {
    .landing-hero {
        padding-top: 36px;
        padding-bottom: 20px;
    }

    .landing-hero--preacher .landing-hero__brand {
        width: 112px;
        height: 112px;
        margin-top: 0;
    }

    .landing-hero--school .landing-hero__brand {
        width: 84px;
        height: 132px;
        margin-top: 0;
    }

    .landing-hero__features {
        margin-bottom: 14px;
    }

    .landing-hero__foot {
        margin-top: 14px;
    }
}

@media (min-width: 481px) {
    body.landing-page .app-container,
    body.landing-page .landing-hero {
        max-width: 480px;
    }

    .landing-hero__cta,
    .landing-hero__cta-row {
        width: 100%;
        max-width: 100%;
    }
}

body.theme-school:not(.landing-page) .app-container {
    background: #fff;
}

.au-ring {
    --pct: 33;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--r-primary) calc(var(--pct) * 1%), var(--r-track) 0);
}

.au-ring > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--r-card);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--r-primary);
}

.au-progress {
    height: 3px;
    background: var(--r-track);
}

.au-progress > i {
    display: block;
    height: 100%;
    width: 33%;
    background: var(--r-primary);
    transition: width .3s ease;
}

.au-kicker {
    font-size: 0.78rem;
    color: var(--r-coral);
    margin-bottom: 8px;
    font-weight: 700;
}

/* ورود / ثبت‌نام — تم دامنه مطابق SVGهای LOGIN */
.theme-school .au-title {
    color: var(--r-navy);
}

.theme-school .au-kicker,
.theme-preacher .au-kicker {
    color: var(--r-coral);
}

.theme-school .au-ring,
.theme-school .au-ring > span {
    background: var(--r-sand);
    color: var(--r-navy);
}

.theme-school .au-ring {
    background: var(--r-sand);
}

.theme-school .au-ring > span {
    width: 100%;
    height: 100%;
}

.theme-preacher .au-ring,
.theme-preacher .au-ring > span {
    background: #fde8ea;
    color: var(--r-coral);
}

.theme-preacher .au-ring > span {
    width: 100%;
    height: 100%;
}

.theme-preacher .au-back {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fde8ea;
    color: var(--r-coral);
}

.theme-school .au-back {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--r-navy);
    box-shadow: 0 0 0 1px var(--r-border-soft);
}

.theme-school .btn-au {
    background: var(--r-navy);
}

.btn-au {
    width: 100%;
    height: var(--r-btn-height);
    border: 0;
    border-radius: var(--r-radius-btn);
    background: var(--r-primary);
    color: #fff;
    font-family: var(--r-font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-au-ghost {
    width: 100%;
    height: var(--r-btn-height);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius-btn);
    background: var(--r-card);
    color: var(--r-navy);
    font-family: var(--r-font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.r-success {
    text-align: center;
    padding: 36px 8px 12px;
}

.r-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #eaf7f2;
    color: #238b68;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}

.r-success__kicker {
    color: var(--r-coral);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.r-success__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.8;
}

.r-success__lead {
    font-size: 0.85rem;
    color: var(--r-text-muted);
    line-height: 1.9;
    margin: 0 0 36px;
}

.r-success__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.r-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.r-badge::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.r-badge-new {
    color: var(--r-new-fg);
    background: var(--r-new-bg);
}

.r-badge-pending {
    color: var(--r-pending-fg);
    background: var(--r-pending-bg);
}

.r-badge-accepted {
    color: var(--r-accepted-fg);
    background: var(--r-accepted-bg);
}

.r-badge-expired {
    color: var(--r-expired-fg);
    background: var(--r-expired-bg);
}

.r-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--r-radius-input);
    color: var(--r-info-fg);
    background: var(--r-info-bg);
    font-size: 0.8rem;
}

/* سردر پیشخوان: رنگ آن از تم نقش (--r-primary) گرفته می‌شود */
.r-head {
    background: var(--r-primary);
    color: #fff;
    padding: 14px 16px 18px;
    border-radius: 0 0 28px 28px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.r-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.r-brand {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.r-brand-sub {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 2px;
}

.r-head-actions {
    display: flex;
    gap: 8px;
}

.r-icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    cursor: pointer;
}

/* شمارشگر اعلان روی دکمه سردر */
.r-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 12px;
    background: var(--r-sand);
    color: var(--r-pending-fg);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.6;
}

/* کارت پایه فهرست‌ها؛ صفحه می‌تواند اندازه‌ها را برای طرح خودش بازنویسی کند */
.r-card {
    background: var(--r-card);
    border: 1px solid var(--r-border-soft);
    border-radius: var(--r-radius-card);
    padding: 14px;
    margin-bottom: 12px;
}

.r-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

/* کارت پیام تمام‌صفحه: صفحات خطا، ورود لازم و پایان جریان‌ها */
.state-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 22px;
}

.state-card {
    background: var(--r-card);
    border: 1px solid var(--r-hairline);
    border-radius: var(--r-radius-card);
    padding: 34px 26px;
    text-align: center;
}

.state-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--r-cream);
    color: var(--r-primary);
    display: grid;
    place-items: center;
    font-size: 2.1rem;
}

.state-icon-warn {
    background: var(--r-pending-bg);
    color: var(--r-pending-fg);
}

.state-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--r-text-strong);
    margin: 0 0 10px;
}

.state-text {
    font-size: 0.86rem;
    color: var(--r-text-body);
    line-height: 2;
    margin-bottom: 20px;
}

.state-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.state-btn {
    display: grid;
    place-items: center;
    height: var(--r-btn-height);
    border-radius: var(--r-radius-btn);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.state-btn-primary {
    background: var(--r-primary);
    color: #fff;
}

.state-btn-ghost {
    height: var(--r-btn-height);
    background: var(--r-panel);
    color: var(--r-text-body);
    font-weight: 600;
}

.state-hint {
    margin: 20px 0 0;
    font-size: 0.75rem;
    color: var(--r-text-muted);
}

.state-hint a {
    color: var(--r-text-date);
    text-decoration: none;
}

/* اجزای فرم مشترک */
.r-field {
    margin-bottom: 15px;
    text-align: right;
}

.r-field > label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.r-input {
    width: 100%;
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius-input);
    padding: 12px 14px;
    font-family: var(--r-font);
    font-size: 0.88rem;
    background: var(--r-card);
    color: var(--r-text);
    outline: none;
}

.r-input:focus {
    border-color: var(--r-primary);
}

.r-input-center {
    text-align: center;
    direction: ltr;
    letter-spacing: 2px;
    font-weight: 700;
}

.r-field-hint {
    font-size: 0.72rem;
    color: var(--r-text-muted);
    margin-top: 6px;
}

.r-btn {
    width: 100%;
    height: var(--r-btn-height);
    border: 0;
    border-radius: var(--r-radius-btn);
    font-family: var(--r-font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.r-btn-primary {
    background: var(--r-primary);
    color: #fff;
}

.r-btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.r-btn-ghost {
    height: 46px;
    background: var(--r-panel);
    color: var(--r-text-body);
    font-weight: 600;
}

.r-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.r-captcha-row img {
    height: 42px;
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius-input);
    background: var(--r-card);
    padding: 2px 6px;
}

.r-captcha-refresh {
    border: 0;
    background: var(--r-panel);
    color: var(--r-text-body);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
}

/* ---------- پیشخوان و صفحات داخلی مطابق طرح UI ---------- */

body.dash-app {
    --r-page-bg: #F6F3EE;
}

body.dash-app .app-container {
    background: #FBF8F4;
}

.dash-head {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 10px;
    background: #FBF8F4;
}

.dash-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-logo {
    width: 28px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
}

.dash-brand-name {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--r-navy);
    line-height: 1.2;
}

.dash-brand-sub {
    font-size: 0.72rem;
    color: var(--r-text-muted);
    margin-top: 2px;
}

.dash-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: var(--r-cream);
    color: var(--r-navy);
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
}

.dash-icon-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
}

.theme-preacher .dash-icon-btn {
    background: #FDECEE;
    color: var(--r-coral);
}

.dash-bell-dot {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--r-coral);
    border: 2px solid #fff;
}

.dash-menu-btn {
    background: transparent;
    font-size: 1.2rem;
}

.dash-greet {
    padding: 4px 16px 8px;
}

.dash-date {
    color: var(--r-coral);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-hi {
    font-size: 1.22rem;
    font-weight: 900;
    color: var(--r-text-strong);
    line-height: 1.6;
}

.dash-sub {
    font-size: 0.8rem;
    color: var(--r-text-muted);
    margin-top: 4px;
    line-height: 1.9;
}

.dash-sec {
    margin: 18px 0 10px;
}

.dash-kicker {
    color: var(--r-coral);
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.dash-sec-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--r-navy);
}

.dash-sec-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin: 18px 0 10px;
}

.dash-sec-link {
    border: 0;
    background: none;
    color: var(--r-coral);
    font-family: var(--r-font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.hero-request {
    background: linear-gradient(135deg, #1B314D 0%, #3A2F62 100%);
    color: #fff;
    border-radius: 22px;
    padding: 16px 16px 14px;
}

.hero-request .hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hero-label {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: .9;
}

.hero-title {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.8;
    margin-top: 8px;
}

.hero-meta {
    font-size: 0.78rem;
    opacity: .8;
    margin-top: 4px;
}

.hero-chip {
    flex-shrink: 0;
    background: rgba(255,255,255,.14);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 700;
}

.hero-pipe {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
    margin: 16px 0 14px;
}

.hero-pipe-step {
    flex: 1;
    text-align: center;
    font-size: 0.62rem;
    opacity: .7;
}

.hero-pipe-step .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    margin: 0 auto 6px;
}

.hero-pipe-step.done .dot {
    background: #8EE0B8;
}

.hero-pipe-step.current .dot {
    background: var(--r-coral);
    box-shadow: 0 0 0 4px rgba(240,83,94,.28);
}

.hero-pipe-step.current {
    opacity: 1;
    font-weight: 800;
}

.hero-cta {
    width: 100%;
    border: 1px solid rgba(255,255,255,.45);
    background: transparent;
    color: #fff;
    border-radius: 14px;
    padding: 11px 14px;
    font-family: var(--r-font);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.hero-carousel {
    margin-bottom: 4px;
}

.hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hero-track::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.hero-dots button {
    width: 7px;
    height: 7px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #D5D8E0;
    cursor: pointer;
}

.hero-dots button.on {
    width: 16px;
    border-radius: 99px;
    background: var(--r-coral);
}

.note-ok {
    color: var(--r-info-fg);
    background: var(--r-info-bg);
}

.profile-map-wrap {
    position: relative;
    margin: 4px 0 8px;
}

.profile-map {
    height: 148px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.profile-map-full {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--r-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
}

.nudge-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FDECEE;
    border-radius: 20px;
    padding: 14px;
}

.nudge-ring {
    --pct: 72;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--r-coral) calc(var(--pct) * 1%), #F7D5D8 0);
}

.nudge-ring span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--r-coral);
}

.nudge-kicker {
    color: var(--r-coral);
    font-size: 0.74rem;
    font-weight: 800;
}

.nudge-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--r-navy);
    margin-top: 2px;
}

.nudge-sub {
    font-size: 0.74rem;
    color: var(--r-text-muted);
    line-height: 1.8;
    margin-top: 2px;
}

.nudge-go {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--r-coral);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--r-sand);
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 8px;
}

.event-datebox {
    width: 58px;
    min-height: 58px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #C49A2A;
    line-height: 1.5;
    padding: 6px 4px;
}

.event-row .event-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--r-navy);
    line-height: 1.7;
}

.event-row .event-desc {
    font-size: 0.74rem;
    color: var(--r-text-muted);
    line-height: 1.8;
    margin-top: 2px;
}

.event-go {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #C49A2A;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.stat-trio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.stat-mini {
    background: #fff;
    border-radius: 16px;
    padding: 12px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 18px rgba(27,49,77,.05);
}

.stat-mini .si {
    width: 32px;
    height: 32px;
    margin: 0 0 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.stat-mini .si i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
}

.stat-mini .sv {
    width: 100%;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--r-navy);
    text-align: center;
}

.stat-mini .sl {
    width: 100%;
    font-size: 0.68rem;
    color: var(--r-text-muted);
    margin-top: 3px;
    line-height: 1.6;
    text-align: center;
}

.h-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
    display: none;
}

.mini-req {
    min-width: 240px;
    max-width: 260px;
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(27,49,77,.05);
    cursor: pointer;
}

.mini-req .mini-badge {
    display: inline-block;
    background: var(--r-sand);
    color: var(--r-pending-fg);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.66rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.mini-req .mini-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--r-navy);
    line-height: 1.7;
}

.mini-req .mini-meta {
    font-size: 0.74rem;
    color: var(--r-text-muted);
    margin-top: 6px;
}

.mini-req .mini-foot {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--r-hairline);
    font-size: 0.72rem;
    color: var(--r-text-muted);
}

.dash-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid var(--r-hairline);
    display: flex;
    box-shadow: 0 -6px 20px rgba(0,0,0,.05);
    z-index: 40;
}

.dash-nav .tab-btn,
.dash-nav .nav-btn {
    flex: 1;
    border: 0;
    background: none;
    padding: 10px 2px 12px;
    font-family: var(--r-font);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--r-text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    position: relative;
}

.dash-nav .nav-ico,
.dash-nav .tab-ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.dash-nav .nav-ico i,
.dash-nav .tab-ico i {
    font-size: 1.12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
}

.dash-nav .nav-label,
.dash-nav .tab-label {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.35;
}

.dash-nav .tab-btn.active,
.dash-nav .nav-btn.active {
    color: var(--r-coral);
}

.dash-nav .tab-btn.active .tab-ico::before,
.dash-nav .nav-btn.active .nav-ico::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--r-navy);
}

.nav-badge,
.tab-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -9px;
    background: var(--r-coral);
    color: #fff;
    border-radius: 20px;
    font-size: 0.58rem;
    min-width: 17px;
    padding: 1px 4px;
    line-height: 1.5;
}

.nav-dot {
    position: absolute;
    top: -3px;
    inset-inline-end: -6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--r-coral);
}

.page-lead {
    margin-bottom: 14px;
}

.page-lead h1 {
    font-size: 1.28rem;
    font-weight: 900;
    color: var(--r-navy);
    margin: 0 0 6px;
}

.page-lead p {
    font-size: 0.8rem;
    color: var(--r-text-muted);
    line-height: 1.9;
    margin: 0;
}

.seg-toggle {
    display: flex;
    background: #EEECE7;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 14px;
}

.seg-toggle button {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 11px;
    padding: 8px 6px;
    font-family: var(--r-font);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--r-text-muted);
    cursor: pointer;
}

.seg-toggle button.active {
    background: #fff;
    color: var(--r-navy);
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.req-card {
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 22px rgba(27,49,77,.05);
}

.req-card .req-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--r-sand);
    color: var(--r-navy);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.req-card .rt-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--r-navy);
    line-height: 1.8;
}

.req-card .rt-cat {
    color: var(--r-coral);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 2px;
}

.req-card .rt-school {
    font-size: 0.76rem;
    color: var(--r-text-muted);
    margin-top: 6px;
}

.meta-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin: 12px 0;
}

.meta-box {
    background: var(--r-tile);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.68rem;
    color: var(--r-text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.meta-box i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--r-coral);
}

.theme-school .meta-box i {
    color: var(--r-navy);
}

.meta-box b {
    display: block;
    width: 100%;
    color: var(--r-navy);
    font-size: 0.74rem;
    margin-top: 2px;
    text-align: center;
}

.pipe-bar {
    height: 4px;
    background: var(--r-track);
    border-radius: 99px;
    overflow: hidden;
    margin: 8px 0 6px;
}

.pipe-bar > span {
    display: block;
    height: 100%;
    background: var(--r-navy);
    border-radius: 99px;
}

.theme-preacher .pipe-bar > span {
    background: var(--r-coral);
}

.pipe-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--r-text-muted);
}

.pipe-labels .on {
    color: var(--r-navy);
    font-weight: 800;
}

.req-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.req-foot .cf-status {
    font-size: 0.76rem;
    color: var(--r-text-muted);
}

.link-coral {
    border: 0;
    background: none;
    color: var(--r-coral);
    font-family: var(--r-font);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

.noti-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--r-hairline);
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}

.noti-card.unread {
    background: #FFFCF6;
}

.noti-ico {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--r-sand);
    color: var(--r-navy);
    display: grid;
    place-items: center;
}

.noti-ico i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.noti-card .noti-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--r-navy);
    line-height: 1.7;
}

.noti-card .noti-body {
    font-size: 0.76rem;
    color: var(--r-text-muted);
    line-height: 1.8;
}

.noti-card .noti-time {
    font-size: 0.7rem;
    color: #B0B6C0;
    margin-top: 4px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-photo {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.profile-photo img,
.profile-photo .ph-fallback {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--r-cream);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--r-navy);
}

.profile-edit {
    position: absolute;
    left: -4px;
    bottom: -4px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--r-text-muted);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.profile-name {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--r-navy);
}

.profile-role {
    font-size: 0.8rem;
    color: var(--r-text-muted);
    margin-top: 2px;
}

.stat-bar {
    display: flex;
    background: #fff;
    border-radius: 18px;
    padding: 12px 6px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(27,49,77,.05);
}

.stat-bar .sb {
    flex: 1;
    text-align: center;
    border-left: 1px solid var(--r-hairline);
}

.stat-bar .sb:last-child {
    border-left: 0;
}

.theme-preacher .stat-bar .sb {
    border-left-color: #F7C9CD;
}

.stat-bar .sb-v {
    font-weight: 900;
    color: var(--r-navy);
}

.theme-preacher .stat-bar .sb-v {
    color: var(--r-coral);
}

.stat-bar .sb-l {
    font-size: 0.68rem;
    color: var(--r-text-muted);
    margin-top: 3px;
}

.info-card {
    background: #fff;
    border-radius: 18px;
    padding: 6px 12px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--r-hairline);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--r-sand);
    color: var(--r-navy);
    display: grid;
    place-items: center;
}

.info-ico i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-preacher .info-ico {
    background: #FDECEE;
    color: var(--r-coral);
}

.info-row .k {
    font-size: 0.72rem;
    color: var(--r-text-muted);
}

.info-row .v {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--r-navy);
    margin-top: 2px;
}

.edit-link {
    border: 0;
    background: none;
    color: var(--r-coral);
    font-family: var(--r-font);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.dash-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(17,17,17,.35);
    display: none;
}

.dash-drawer.open {
    display: block;
}

.dash-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(280px, 82vw);
    height: 100%;
    background: #fff;
    padding: 22px 16px;
    box-shadow: 8px 0 24px rgba(0,0,0,.08);
}

.dash-drawer-panel a,
.dash-drawer-panel button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: none;
    text-align: right;
    padding: 12px 6px;
    font-family: var(--r-font);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--r-navy);
    text-decoration: none;
    cursor: pointer;
}

.next-program {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1B314D 0%, #3A2F62 100%);
    color: #fff;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 14px;
    cursor: pointer;
}

.next-program .np-date {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--r-coral);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
}

.status-ok, .status-wait, .status-bad {
    display: flex;
    gap: 10px;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.status-ok { background: #EAF7F2; color: #1F6B4A; }
.status-wait { background: var(--r-sand); color: #8A6A12; }
.status-bad { background: #FDECEE; color: #A33A42; }

/* ویزارد ثبت درخواست / تکمیل پروفایل */

.wz-figma-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 8px;
    background: #FBF8F4;
    position: sticky;
    top: 0;
    z-index: 20;
}

.wz-square-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--r-border);
    border-radius: 12px;
    background: #fff;
    color: var(--r-navy);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.wz-figma-titles {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.wz-figma-title {
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--r-navy);
}

.wz-figma-step {
    font-size: 0.74rem;
    color: var(--r-text-muted);
    margin-top: 2px;
}

.wz-pct-chip {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--r-sand);
    color: var(--r-navy);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.theme-preacher .wz-pct-chip {
    background: #FDECEE;
    color: var(--r-coral);
}

.wz-figma-bar {
    height: 3px;
    background: #EDE8E2;
}

.wz-figma-bar > span {
    display: block;
    height: 100%;
    background: var(--r-navy);
}

.theme-preacher .wz-figma-bar > span {
    background: var(--r-coral);
}

.wz-kicker {
    color: var(--r-coral);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.wz-question {
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--r-navy);
    line-height: 1.8;
    margin-bottom: 8px;
}

.pick-card {
    position: relative;
}

.pick-card.selected {
    border-color: var(--r-navy);
    border-width: 2px;
    background: #fff;
}

.pick-card.selected .pick-check {
    display: grid;
}

.pick-check {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--r-navy);
    color: #fff;
    place-items: center;
    font-size: 0.58rem;
}

/* ورقه جزئیات (مدرسه) */
.sheet {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 49, 77, 0.45);
    z-index: 1050;
    overflow-y: auto;
}

.sheet.open {
    display: block;
}

.sheet-inner {
    max-width: 480px;
    margin: 0 auto;
    background: var(--r-surface);
    min-height: 100vh;
}

.sheet-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--r-primary);
    color: #fff;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0 0 20px 20px;
}

.sheet-header .sh-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 800;
    min-width: 0;
}

.sheet-header .sh-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
}

.sheet-body {
    padding: 16px 16px 40px;
}

.sheet-inner.has-foot .sheet-body {
    padding-bottom: 110px;
}

.sheet-foot {
    display: none;
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: var(--r-card);
    border-top: 1px solid var(--r-hairline);
    padding: 12px 16px 16px;
    gap: 8px;
}

.sheet-inner.has-foot .sheet-foot {
    display: flex;
}

.sheet-foot .btn-r {
    flex: 1;
}

.cand-pick {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cand-pick .cand-radio {
    width: 22px;
    height: 22px;
    margin-top: 8px;
    flex-shrink: 0;
    accent-color: var(--r-primary);
}

.search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.search-row .input,
.search-row .input-custom {
    flex: 1;
    margin: 0;
}

.search-row .filter-fab {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--r-primary);
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
}

.chip-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.chip-scroll .chip,
.chip-scroll .f-chip {
    flex-shrink: 0;
}

.pf-wiz-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    background: var(--r-card);
}

.pf-wiz-head .au-back,
.pf-wiz-head .sh-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--r-cream);
    color: var(--r-primary);
    cursor: pointer;
}

.pf-wiz-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.pf-wiz-title {
    font-size: 1rem;
    font-weight: 800;
}

.pf-wiz-step {
    font-size: 0.75rem;
    color: var(--r-text-muted);
}

.pf-panel {
    display: none;
}

.pf-panel.active {
    display: block;
}

.jalali-row {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr 1.05fr;
    gap: 8px;
}

.jalali-col {
    min-width: 0;
}

.jalali-col span {
    display: block;
    font-size: 0.72rem;
    color: var(--r-text-muted);
    margin-bottom: 4px;
}

.jalali-row select.input {
    padding: 10px 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718095' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 10px;
}

.pf-nav {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: flex;
    gap: 10px;
    margin: 12px -14px 0;
    padding: 13px 14px 16px;
    background: var(--r-card);
    border-top: 1px solid var(--r-hairline);
}

.pf-nav .btn-au {
    flex: 1;
    width: auto;
}

.pf-nav .btn-au-ghost {
    display: none;
    flex: 0 0 40%;
    width: auto;
    height: var(--r-btn-height);
    margin-top: 0;
    align-items: center;
    justify-content: center;
}

.pf-nav .btn-au-ghost.is-on {
    display: inline-flex;
}

.pf-done {
    text-align: center;
    padding: 48px 22px 24px;
}

.pf-done .done-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #EAF7F2;
    color: #238B68;
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.pf-done .done-kicker {
    color: var(--r-coral);
    font-weight: 800;
    margin-bottom: 8px;
}

.pf-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pf-avatar img,
.pf-avatar .ph-fallback {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--r-cream);
}

.pf-avatar button {
    border: 0;
    background: transparent;
    color: var(--r-coral);
    font-family: var(--r-font);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

body.pf-editing .dash-nav,
body.pf-editing .dash-head,
body.pf-editing .dash-greet {
    display: none;
}

body.pf-editing .app-container {
    padding-bottom: 0;
}
