@charset "UTF-8";
/* ============================================================
   کلینیک دندانپزشکی حضرت زهرا (س)
   استایل پنل کاربری / باشگاه مراجعین
   فایل: /Styles/UserPanel.css        نسخه: 1.0
   ------------------------------------------------------------
   • فقط در صفحات UserPanel بارگذاری شود
   • همه کلاس‌ها با پیشوند up- تا با قالب سایت تداخل نکنند
   • هیچ سلکتور سراسری (body/input/select/a/img) استفاده نشده
   • Mobile-First
   ============================================================ */

/* ── متغیرها ───────────────────────────────────────────── */
.up-page {
    --up-ink: #12333a;
    --up-ink2: #4a6570;
    --up-line: #dce7ea;
    --up-card: #ffffff;
    --up-brand: #037e96;
    --up-brand-deep: #0a6d80;
    --up-brand-wash: #e9f5f8;
    --up-gold: #8a6524;
    --up-gold-wash: #fbf4e6;
    --up-danger: #b3261e;
    --up-danger-wash: #fdf2f1;
    --up-ok: #1b7f5a;
    --up-ok-wash: #eef8f3;
    --up-r: 14px;

    max-width: 560px;
    margin: 0 auto;
    padding: 18px 14px 48px;
    color: var(--up-ink);
    line-height: 1.85;
    text-align: right;
}

/* ── سربرگ ─────────────────────────────────────────────── */
.up-head {
    margin: 0 0 18px;
}

.up-head .up-hi {
    font-size: 14px;
    color: var(--up-ink2);
    margin: 0 0 2px;
}

.up-head h1 {
    font-size: 21px;
    font-weight: 800;
    margin: 0;
    line-height: 1.5;
    color: var(--up-ink);
}

.up-head p {
    font-size: 14px;
    color: var(--up-ink2);
    margin: 4px 0 0;
}

/* ── کارت نوبت بعدی ────────────────────────────────────── */
.up-ticket {
    position: relative;
    background: var(--up-card);
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(18,51,58,.06);
}

.up-ticket-top {
    padding: 16px 16px 14px;
    border-inline-start: 5px solid var(--up-brand);
}

.up-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--up-brand-deep);
    background: var(--up-brand-wash);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.up-when {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.up-when .up-d { font-size: 30px; font-weight: 800; line-height: 1.1; }
.up-when .up-m { font-size: 17px; font-weight: 600; color: var(--up-ink2); }

.up-when .up-t {
    margin-inline-start: auto;
    font-size: 22px;
    font-weight: 800;
    color: var(--up-brand-deep);
    font-variant-numeric: tabular-nums;
}

.up-ticket-meta {
    font-size: 14px;
    color: var(--up-ink2);
    margin: 6px 0 0;
}

.up-ticket-meta b { color: var(--up-ink); font-weight: 600; }

.up-perf {
    position: relative;
    height: 1px;
    margin: 0 16px;
}

.up-perf::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 2px dashed var(--up-line);
}

.up-perf i {
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f2f6f7;
    border: 1px solid var(--up-line);
}

.up-perf i.up-r { inset-inline-end: -25px; }
.up-perf i.up-l { inset-inline-start: -25px; }

.up-ticket-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px 14px;
}

.up-ticket-foot a {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--up-line);
    color: var(--up-ink);
    background: #fbfdfd;
}

.up-ticket-foot a.up-warn {
    color: var(--up-danger);
    border-color: #f2d6d3;
    background: var(--up-danger-wash);
}

/* ── حالت خالی ─────────────────────────────────────────── */
.up-empty {
    background: var(--up-card);
    border: 1px dashed var(--up-line);
    border-radius: var(--up-r);
    padding: 26px 18px;
    text-align: center;
    margin-bottom: 14px;
}

.up-empty p { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.up-empty small { color: var(--up-ink2); font-size: 13.5px; }

/* ── دکمه اصلی ─────────────────────────────────────────── */
.up-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    background: var(--up-brand);
    color: #fff;
    font: inherit;
    font-size: 16.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 2px 0 rgba(3,86,102,.9);
}

.up-primary:hover { color: #fff; background: var(--up-brand-deep); }
.up-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(3,86,102,.9); }
.up-primary svg { width: 20px; height: 20px; flex: 0 0 auto; }

.up-primary:focus-visible,
.up-row:focus-visible,
.up-ticket-foot a:focus-visible,
.up-logout:focus-visible {
    outline: 3px solid var(--up-brand-deep);
    outline-offset: 2px;
}

/* ── ردیف‌های منو ──────────────────────────────────────── */
.up-rows {
    background: var(--up-card);
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    overflow: hidden;
}

.up-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    text-decoration: none;
    color: var(--up-ink);
    border-bottom: 1px solid #eef4f5;
    min-height: 56px;
}

.up-row:last-child { border-bottom: 0; }
.up-row:hover { background: #fafdfd; color: var(--up-ink); }

.up-row .up-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-row .up-ic svg { width: 19px; height: 19px; }
.up-ic.up-b { background: var(--up-brand-wash); color: var(--up-brand-deep); }
.up-ic.up-g { background: var(--up-gold-wash); color: var(--up-gold); }
.up-ic.up-k { background: var(--up-ok-wash); color: var(--up-ok); }

.up-row .up-tx { flex: 1; min-width: 0; }
.up-row .up-tx b { display: block; font-size: 15.5px; font-weight: 600; }
.up-row .up-tx small { color: var(--up-ink2); font-size: 12.5px; }

.up-row .up-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--up-gold);
    font-variant-numeric: tabular-nums;
}

.up-row .up-chev { color: #a8bfc6; flex: 0 0 auto; }
.up-row .up-chev svg { width: 16px; height: 16px; }

/* ── خروج ──────────────────────────────────────────────── */
.up-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: var(--up-danger-wash);
    border: 1px solid #f2d6d3;
    color: var(--up-danger);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    min-height: 50px;
}

.up-logout:hover { background: #fce8e6; color: #8f1d17; }
.up-logout svg { width: 18px; height: 18px; }

/* ── نشانگر مراحل ──────────────────────────────────────── */
.up-steps {
    display: flex;
    margin: 0 0 20px;
}

.up-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.up-step .up-n {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--up-line);
    color: #9db4bb;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.up-step .up-l { font-size: 12px; color: #9db4bb; font-weight: 600; }

.up-step::before {
    content: "";
    position: absolute;
    top: 15px;
    inset-inline-start: 50%;
    width: 100%;
    height: 2px;
    background: var(--up-line);
    z-index: 1;
}

.up-step:last-child::before { display: none; }
.up-step.up-done .up-n { background: var(--up-brand); border-color: var(--up-brand); color: #fff; }
.up-step.up-done .up-l { color: var(--up-brand-deep); }
.up-step.up-now .up-n { border-color: var(--up-brand); color: var(--up-brand-deep); }
.up-step.up-now .up-l { color: var(--up-ink); font-weight: 700; }

/* ── پنل و فرم ─────────────────────────────────────────── */
.up-panel {
    background: var(--up-card);
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    padding: 16px;
    margin-bottom: 14px;
}

.up-f { margin-bottom: 16px; }
.up-f:last-child { margin-bottom: 0; }

.up-f > label,
.up-f .up-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.up-f .up-hint {
    font-size: 12.5px;
    color: var(--up-ink2);
    font-weight: 400;
    margin-inline-start: 4px;
}

/* فیلدهای ورودی — فقط داخل پنل کاربری */
.up-page input[type="text"],
.up-page input[type="tel"],
.up-page input[type="number"],
.up-page input[type="password"],
.up-page select,
.up-page textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 13px 12px;
    border: 1.5px solid var(--up-line);
    border-radius: 11px;
    background: #fbfdfd;
    color: var(--up-ink);
    min-height: 50px;
    box-shadow: none;
    margin: 0;
}

.up-page textarea { min-height: 84px; line-height: 1.8; }

.up-page input[type="text"]:focus,
.up-page input[type="tel"]:focus,
.up-page input[type="number"]:focus,
.up-page select:focus,
.up-page textarea:focus {
    outline: none;
    border-color: var(--up-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(3,126,150,.14);
}

.up-page input[type="number"]::-webkit-outer-spin-button,
.up-page input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.up-page input[type="number"] { -moz-appearance: textfield; }

.up-page input[readonly],
.up-page input:disabled {
    background: #f1f5f6;
    color: var(--up-ink2);
}

/* پیام خطا */
.up-page .RedTitleSmall,
.up-error {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--up-danger);
    background: var(--up-danger-wash);
    border: 1px solid #f2d6d3;
    border-radius: 11px;
    padding: 11px 13px;
    margin-bottom: 14px;
}

.up-page .RedTitleSmall:empty,
.up-error:empty { display: none; }

/* نوار مراجعه‌کننده */
.up-who {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    background: var(--up-brand-wash);
    border-radius: 11px;
    font-size: 14px;
    margin-bottom: 16px;
}

.up-who svg { width: 17px; height: 17px; flex: 0 0 auto; }
.up-who b { font-weight: 700; }

/* ── شبکه انتخاب (مدت درمان و ساعت) ────────────────────
   #rblDuration : RadioButtonList با RepeatLayout="Table"
   #rblHours    : توسط loadDayFreeTimes() ساخته می‌شود
   ------------------------------------------------------ */
.up-page #rblDuration {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

.up-page #rblDuration td { padding: 0; width: 33.333%; }

.up-page #rblHours {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 0;
}

.up-page #rblHours .col { padding: 0; width: auto; }

.up-page #rblDuration input[type="radio"],
.up-page #rblHours input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.up-page #rblDuration label,
.up-page #rblHours label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 13px 4px;
    border: 1.5px solid var(--up-line);
    border-radius: 11px;
    background: #fbfdfd;
    color: var(--up-ink);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-height: 50px;
    text-align: center;
    line-height: 1.4;
    transition: background-color .15s ease, border-color .15s ease;
}

.up-page #rblDuration input:checked + label,
.up-page #rblHours input:checked + label {
    background: var(--up-brand);
    border-color: var(--up-brand);
    color: #fff;
}

.up-page #rblDuration input:focus-visible + label,
.up-page #rblHours input:focus-visible + label {
    outline: 3px solid var(--up-brand-deep);
    outline-offset: 2px;
}

.up-page #rblHours:empty::after {
    content: "ابتدا پزشک، مدت و تاریخ را انتخاب کنید";
    display: block;
    grid-column: 1 / -1;
    padding: 18px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--up-ink2);
    background: #f7fafb;
    border: 1px dashed var(--up-line);
    border-radius: 11px;
}

/* ── دکمه‌های حرکت بین مراحل ───────────────────────────── */
.up-nav {
    display: flex;
    gap: 9px;
    margin-top: 6px;
}

.up-nav .up-back,
.up-nav .up-next {
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    min-height: 52px;
}

.up-nav .up-back {
    flex: 0 0 34%;
    background: #fff;
    border: 1.5px solid var(--up-line);
    color: var(--up-ink2);
}

.up-nav .up-next {
    flex: 1;
    background: var(--up-brand);
    border: 0;
    color: #fff;
    box-shadow: 0 2px 0 rgba(3,86,102,.9);
}

.up-nav .up-next:hover { background: var(--up-brand-deep); }
.up-nav .up-next:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(3,86,102,.9); }

/* ── کد تایید پیامکی ───────────────────────────────────── */
.up-otp { text-align: center; }

.up-page .up-otp input {
    width: 200px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 8px;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.up-resend {
    text-align: center;
    font-size: 13.5px;
    color: var(--up-ink2);
    margin: 10px 0 0;
}

/* ── کد تصویری ─────────────────────────────────────────── */
.up-captcha {
    display: flex;
    gap: 9px;
    align-items: stretch;
}

.up-captcha img {
    flex: 0 0 130px;
    height: 50px;
    border: 1.5px solid var(--up-line);
    border-radius: 11px;
    background: #eef3f4;
    object-fit: cover;
    display: block;
    margin: 0;
}

.up-captcha input { flex: 1; }

/* ── امتیاز ────────────────────────────────────────────── */
.up-score {
    background: linear-gradient(135deg, #0d6d81, #037e96);
    color: #fff;
    border-radius: var(--up-r);
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
}

.up-score .up-n {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.up-score .up-c { font-size: 13.5px; opacity: .88; margin-top: 6px; }

.up-score-sub {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.up-score-sub div {
    flex: 1;
    background: var(--up-card);
    border: 1px solid var(--up-line);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}

.up-score-sub b {
    display: block;
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.up-score-sub small { font-size: 12.5px; color: var(--up-ink2); }

/* ── فهرست رکوردها (سوابق / امتیاز / معرفی‌شدگان) ──────── */
.up-sec {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 9px;
    color: var(--up-ink2);
}

.up-list {
    background: var(--up-card);
    border: 1px solid var(--up-line);
    border-radius: var(--up-r);
    overflow: hidden;
}

.up-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border-bottom: 1px solid #eef4f5;
}

.up-item:last-child { border-bottom: 0; }

.up-item .up-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.up-item .up-ic svg { width: 18px; height: 18px; }
.up-item .up-body { flex: 1; min-width: 0; }

.up-item .up-body b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.up-item .up-body span {
    display: block;
    font-size: 13px;
    color: var(--up-ink2);
    line-height: 1.8;
}

.up-item .up-pt {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
    color: var(--up-ok);
}

.up-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: var(--up-brand-wash);
    color: var(--up-brand-deep);
    margin-top: 4px;
}

.up-list:empty::after,
.up-empty-list {
    display: block;
    padding: 30px 16px;
    text-align: center;
    font-size: 14.5px;
    color: var(--up-ink2);
}

/* ── برگشت ─────────────────────────────────────────────── */
.up-return {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--up-line);
    color: var(--up-ink2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    min-height: 46px;
}

.up-return:hover { color: var(--up-brand-deep); border-color: var(--up-brand); }
.up-return svg { width: 16px; height: 16px; }

/* ── ستاره امتیازدهی (فرم نظر) ─────────────────────────── */
.up-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    direction: ltr;
    margin-bottom: 6px;
}

.up-stars .star {
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #cfdadd;
    transition: color .15s ease, transform .1s ease;
    user-select: none;
}

.up-stars .star:active { transform: scale(.92); }
.up-stars .star.one { color: #d64545; }
.up-stars .star.two { color: #cc9a1f; }
.up-stars .star.three { color: #98b162; }
.up-stars .star.four { color: #4fa860; }
.up-stars .star.five { color: #1b9a4a; }

/* ── ریسپانسیو ─────────────────────────────────────────── */
@media (max-width: 360px) {
    .up-page #rblHours { grid-template-columns: repeat(2, 1fr); }
    .up-when .up-d { font-size: 26px; }
    .up-ticket-foot { flex-wrap: wrap; }
    .up-ticket-foot a { flex: 1 1 45%; }
}

@media (min-width: 768px) {
    .up-page { padding: 26px 16px 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .up-page * { transition: none !important; }
}

/* ── کمکی ──────────────────────────────────────────────── */
.up-hidden { display: none !important; }

.up-note {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--up-ink2);
    background: #f7fafb;
    border: 1px solid var(--up-line);
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
