/*
 * pages.css — استایل تکمیلی نوبت 19
 * ---------------------------------------------------------------
 * فایل style.css قالب «دست‌نخورده» است. این فایل فقط چیزهایی را
 * اضافه می‌کند که قالب برایشان طرحی نداشت:
 *   ۱) صفحه‌های داخلی (پنل پزشک، فرم‌ها، جدول‌ها، پرداخت، ورود) — همه
 *      زیر کلاس .nb-page اسکوپ شده‌اند تا روی اجزای قالب اثری نگذارند.
 *   ۲) چند جزء کوچک با پیشوند nb- (خروج، صفحه‌بندی، ستاره‌های فرم نظر،
 *      پیام خالی بودن لیست) که در قالب وجود نداشتند.
 *   ۳) ثابت کردن ابعاد تصویر پزشکِ آپلودشده به همان ابعاد طرح قالب
 *      (۱۰۰×۱۵۰ روی کارت و ۱۳۵×۱۸۸ در صفحه پزشک)، تا عکس‌های واقعی با
 *      هر اندازه‌ای شکل قالب را به هم نریزند.
 * رنگ‌ها، فونت، گردی گوشه‌ها و سایه‌ها همه از خود قالب برداشته شده‌اند.
 */

:root {
    --nb-grad: linear-gradient(125deg, #70b2ff 0%, var(--clr-1) 55%, var(--clr-1) 100%);
    --nb-card: #fff;
    --nb-shadow: 0px 0px 20px rgb(34 48 85 / 6%);
    --nb-border: #e4e9ef;
    --nb-text: #222;
    --nb-muted: #555c68;
    --nb-red: #e5484d;
    --nb-green: #1fa463;
    --main-color: var(--clr-1); /* متغیر قالب قدیم که چند تمپلیت هنوز استفاده می‌کنند */
}

/* ───────────── ۳) تصویر پزشک با ابعاد ثابت طرح ───────────── */
.home-doctor-top > .home-doctor-img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}
.doctor-photo img {
    width: 135px;
    height: 188px;
    object-fit: cover;
}
.home-doctor-top > .home-doctor-img,
.doctor-photo img {
    object-position: center top; /* چهره پزشک بریده نشود */
}

/* ───────────── ۲) اجزای کوچک nb- ───────────── */
.nb-btn-reset {
    border: 0;
    cursor: pointer;
    line-height: inherit;
}
.nb-logout-form {
    display: inline;
    margin: 0;
}
.nb-logout-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    width: 100%;
    text-align: right;
}
.medical-submenu .nb-logout-link {
    display: block;
    padding: 8px 14px;
    color: var(--nb-red);
}
.menu-mobile .nb-logout-link {
    display: block;
    padding: 10px 15px;
    color: var(--nb-red);
}
.nb-empty-card {
    grid-column: 1 / -1;
    padding: 40px 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 0px 7px rgb(92 98 110 / 26%);
    text-align: center;
    color: var(--nb-muted);
    font-size: .95rem;
}
.nb-result-count {
    margin-top: 10px;
    color: var(--nb-muted);
    font-size: .9rem;
}
.nb-listing {
    padding: 30px 0 10px;
}
.nb-listing .doctor-search {
    top: 0;
    margin-bottom: 30px;
}
.nb-listing .categories {
    margin-bottom: 30px;
}
.doctors-head h1.nb-h2 {
    margin: 0 0 18px;
    font-size: 2rem;
    color: #111;
    font-weight: 600;
}
.doctors-head h1.nb-h2 b {
    color: transparent;
    background: var(--nb-grad);
    -webkit-background-clip: text;
    background-clip: text;
}
.nb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.nb-chips a {
    padding: 8px 18px;
    border-radius: 44px;
    background-color: #e5edf9;
    color: var(--clr-1);
    font-size: .9rem;
    transition: .3s;
}
.nb-chips a:hover {
    background: var(--nb-grad);
    color: #fff;
}
.nb-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 40px 0;
}
.nb-pagination a,
.nb-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 44px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--nb-border);
    color: #333;
    font-family: devix, serif;
    font-size: .9rem;
    transition: .3s;
}
.nb-pagination a:hover {
    box-shadow: 0 0 0 1px var(--clr-1);
    color: var(--clr-1);
}
.nb-pagination span.active {
    background: var(--nb-grad);
    color: #fff;
    box-shadow: none;
}
.nb-pagination span.dots {
    background: none;
    box-shadow: none;
}

/* صفحه پزشک */
.nb-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.nb-admin-actions form {
    margin: 0;
}
.big-btn-admin {
    display: inline-flex;
    align-items: center;
    padding: 9px 24px;
    border: 0;
    border-radius: 44px;
    background: var(--nb-grad);
    color: #fff;
    font-family: devix, serif;
    font-size: .9rem;
    cursor: pointer;
}
.big-btn-admin.danger {
    background: var(--nb-red);
}
.nb-doctor-alert {
    border: 1px solid #ffe1a8;
    background: #fffaf0;
}
.doctor-text-alert {
    margin-top: 15px;
    line-height: 1.9;
    font-size: .9rem;
    color: #6b4b00;
}
.doctor-text p,
.doctor-text li {
    line-height: 1.8;
}
.time-list button.nb-booked,
.time-list button:disabled {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}
.booking-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.nb-booking-empty,
.nb-no-review,
.nb-map-empty {
    padding: 20px;
    text-align: center;
    color: var(--nb-muted);
    font-family: devix, serif;
    font-size: .9rem;
}
.nb-review-reply {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f1f6fd;
    color: #33415c;
    font-size: .85rem;
    line-height: 1.8;
}
.nb-stars-input {
    display: flex;
    flex-direction: row;
    gap: 4px;
}
.nb-stars-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.nb-stars-input label {
    cursor: pointer;
    line-height: 1;
    color: inherit; /* رنگ و اندازه از .stars خود قالب */
    transition: transform .2s;
}
.nb-stars-input label:hover {
    transform: scale(1.15);
}
.nb-form-messages p {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .85rem;
    background: #eef6ff;
    color: #1d4f91;
}
.nb-form-messages p.error {
    background: #fdecec;
    color: #b42318;
}
.nb-form-messages p.success {
    background: #e8f7ef;
    color: #146c43;
}
.doctor-map iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 20px;
}
.nb-static-page .nb-section-title {
    margin: 0;
    font-size: 1.3rem;
    position: relative;
    padding-right: 20px;
}
.nb-static-page .nb-section-title::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 4px;
    height: 4px;
    border: 4px solid var(--clr-1);
    border-radius: 4px;
    transform: translateY(-50%);
}
.matn-single {
    margin-top: 20px;
    line-height: 2;
    color: var(--nb-muted);
    font-size: .95rem;
    text-align: justify;
}
.matn-single h2,
.matn-single h3,
.matn-single h4 {
    margin: 20px 0 10px;
    color: var(--nb-text);
}
.matn-single p {
    margin-bottom: 12px;
}
.matn-single ul,
.matn-single ol {
    padding-right: 20px;
    margin-bottom: 12px;
}
.matn-single ul li {
    list-style: disc;
}
.matn-single ol li {
    list-style: decimal;
}
.matn-single a {
    color: var(--clr-1);
}
.matn-single img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* ───────────── ۱) صفحه‌های داخلی (.nb-page) ───────────── */
.nb-page {
    color: var(--nb-text);
    font-family: devix, serif;
}
.nb-page > main,
.nb-page > .container {
    display: block;
    padding-top: 30px;
    padding-bottom: 50px;
}
.nb-page .container + .container {
    padding-top: 0;
}
.nb-page a {
    color: var(--clr-1);
}
.nb-page h1,
.nb-page h2,
.nb-page h3,
.nb-page h4 {
    color: var(--nb-text);
}
.nb-page .row > * {
    margin-bottom: 18px;
}

/* عنوان صفحه — هم‌شکل تیتر بخش‌های صفحه پزشک */
.nb-page .title-ad,
.nb-page .title-main {
    margin-bottom: 18px;
}
.nb-page .title-ad h1,
.nb-page .title-ad h2,
.nb-page .title-main h1 {
    position: relative;
    padding-right: 20px;
    font-size: 1.35rem;
    font-weight: 700;
}
.nb-page .title-ad h2 {
    font-size: 1.1rem;
}
.nb-page .title-ad h1::before,
.nb-page .title-ad h2::before,
.nb-page .title-main h1::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 4px;
    height: 4px;
    border: 4px solid var(--clr-1);
    border-radius: 4px;
    transform: translateY(-50%);
}
.nb-page .title-ad p {
    margin-top: 10px;
    color: var(--nb-muted);
    font-size: .9rem;
}

/* کارت‌ها */
.nb-page .user-info,
.nb-page .wal-col,
.nb-page .form-base,
.nb-page .book-app,
.nb-page .pay-b,
.nb-page .edit-nobat,
.nb-page .doctor-detail,
.nb-page #filter-form {
    padding: 28px 30px;
    background: var(--nb-card);
    border-radius: 30px;
    box-shadow: var(--nb-shadow);
}
.nb-page .wal-col {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.nb-page .wal-col ul {
    width: 100%;
}
.nb-page .wal-col li,
.nb-page .edit-nobat li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 8px;
    line-height: 1.9;
    font-size: .9rem;
    color: var(--nb-muted);
}
.nb-page .wal-col li::before,
.nb-page .edit-nobat li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clr-1);
}
.nb-page .wal-col p {
    flex: 1 1 260px;
    line-height: 1.9;
    font-size: .95rem;
}
.nb-page .wal-col > a,
.nb-page .main-btn,
.nb-page .yes-b,
.nb-page .no-b,
.nb-page .btn,
.nb-page .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 22px;
    border: 0;
    border-radius: 44px;
    background: var(--nb-grad);
    color: #fff !important;
    font-family: devix, serif;
    font-size: .9rem;
    line-height: 1.6;
    cursor: pointer;
    transition: .3s;
    text-align: center;
}
.nb-page .btn {
    padding: 5px 16px;
    font-size: .82rem;
}
.nb-page .btn.red,
.nb-page .no-b,
.nb-page .logout-btn {
    background: var(--nb-red);
}
.nb-page .btn.green {
    background: var(--nb-green);
}
.nb-page .wal-col > a:hover,
.nb-page .main-btn:hover,
.nb-page .btn:hover,
.nb-page .yes-b:hover,
.nb-page .no-b:hover {
    opacity: .88;
}
.nb-page .inline-action,
.nb-page .logout-form {
    display: inline-block;
    margin: 0;
}
.nb-page .nb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.nb-page .user-info p {
    padding: 10px 0;
    border-bottom: 1px dashed var(--nb-border);
    font-size: .95rem;
    line-height: 1.8;
}
.nb-page .user-info p:last-child {
    border-bottom: 0;
}

/* منوی کاشی داشبورد */
.nb-page .dashboard-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}
.nb-page .dashboard-index li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--nb-shadow);
    color: #333;
    font-weight: 600;
    text-align: center;
    transition: .3s;
}
.nb-page .dashboard-index li a:hover {
    background: var(--nb-grad);
    color: #fff;
}

/* فرم‌ها */
.nb-page .form-base,
.nb-page .book-app,
.nb-page .edit-nobat {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.nb-page .form-base.nb-wide {
    max-width: none;
}
.nb-page .form-container {
    width: 100%;
}
.nb-page form p,
.nb-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.nb-page form label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #333;
}
.nb-page form input[type="text"],
.nb-page form input[type="number"],
.nb-page form input[type="password"],
.nb-page form input[type="email"],
.nb-page form input[type="tel"],
.nb-page form input[type="date"],
.nb-page form input[type="time"],
.nb-page form input:not([type]),
.nb-page form select,
.nb-page form textarea,
.nb-page .modal-content input,
.nb-page .modal-content select {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--nb-border);
    border-radius: 15px;
    background: #fbfcfe;
    color: #222;
    font-family: devix, serif;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.nb-page form textarea {
    min-height: 120px;
    resize: vertical;
}
.nb-page form input:focus,
.nb-page form select:focus,
.nb-page form textarea:focus,
.nb-page .modal-content input:focus,
.nb-page .modal-content select:focus {
    border-color: var(--clr-1);
    box-shadow: 0 0 0 3px rgb(16 117 236 / 12%);
    background: #fff;
}
.nb-page form input[type="checkbox"],
.nb-page form input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--clr-1);
}
.nb-page form ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.nb-page form ul li label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}
.nb-page form .helptext {
    font-size: .8rem;
    color: #8a93a3;
}
.nb-page .errorlist li,
.nb-page .error,
.nb-page .text-danger {
    color: #b42318;
    font-size: .85rem;
}
.nb-page form button,
.nb-page .modal-content button {
    min-height: 46px;
    padding: 8px 28px;
    border: 0;
    border-radius: 44px;
    background: var(--nb-grad);
    color: #fff;
    font-family: devix, serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}
.nb-page form button:hover,
.nb-page .modal-content button:hover {
    opacity: .9;
}
.nb-page .inline-action button,
.nb-page .logout-form button {
    min-height: 0;
}
.nb-page .inline-action button {
    padding: 5px 16px;
    font-size: .82rem;
    font-weight: 400;
}
.nb-page .form-base > a,
.nb-page .form-base > p {
    display: inline-block;
    margin-top: 14px;
    font-size: .9rem;
}
.nb-page .form-base > form > button + button {
    margin-right: 8px;
}
.nb-page .form-base h3 {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* فرم فیلتر تاریخ (نوبت‌های یک روز) */
.nb-page #filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.nb-page #filter-form .form-group {
    flex: 1 1 200px;
    margin: 0;
}
.nb-page #filter-form > input {
    flex: 1 1 220px;
    width: auto;
}

/* رزرو نوبت */
.nb-page .flex-center {
    display: flex;
    justify-content: center;
}
.nb-page .book-app {
    width: 100%;
}
.nb-page .doc-name,
.nb-page .name-m {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    background: #f4f8fe;
}
.nb-page .doc-name p,
.nb-page .name-m div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .95rem;
}
.nb-page .doc-name b,
.nb-page .name-m strong {
    color: var(--nb-muted);
    font-weight: 600;
}
.nb-page .price-b {
    margin: 16px 0;
    padding: 14px 18px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--nb-border);
    font-weight: 700;
    text-align: center;
}
.nb-page .book-app form > div {
    margin-bottom: 14px;
}
.nb-page .book-app form button {
    width: 100%;
}
.nb-page .link-safe {
    font-weight: 700;
}

/* پرداخت موفق/ناموفق و خطا */
.nb-page .pay-b {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.nb-page .pay-b img {
    width: 140px;
    height: auto;
}
.nb-page .pay-b p {
    line-height: 1.9;
    color: var(--nb-muted);
}
.nb-page .pay-b .no {
    color: var(--nb-red);
}

/* جدول‌ها */
.nb-page .doctor-detail {
    overflow-x: auto;
}
.nb-page .doctor-detail h3,
.nb-page .doctor-detail h4 {
    margin: 18px 0 12px;
    font-size: 1rem;
}
.nb-page .doctor-detail h3:first-child {
    margin-top: 0;
}
.nb-page .doctor-detail > ul li {
    padding: 4px 0;
    font-size: .9rem;
}
.nb-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 18px;
    font-size: .9rem;
    border: 0;
}
.nb-page table th {
    padding: 13px 12px;
    background: #f1f6fd;
    color: #33415c;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    border: 0;
}
.nb-page table th:first-child {
    border-radius: 0 14px 14px 0;
}
.nb-page table th:last-child {
    border-radius: 14px 0 0 14px;
}
.nb-page table td {
    padding: 12px;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
    line-height: 1.8;
}
.nb-page table tbody tr:hover td {
    background: #fafcff;
}
.nb-page table td ul {
    display: grid;
    gap: 6px;
}
.nb-page table td ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.nb-page .text-center {
    text-align: center !important;
}
.nb-page .mt-4 {
    margin-top: 18px;
}
.nb-page .mb-2 {
    margin-bottom: 10px;
}
.nb-page .list-unstyled {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

/* صفحه‌بندی صفحه‌های داخلی */
.nb-page .pagination-container {
    display: flex;
    justify-content: center;
}
.nb-page .pagination,
.nb-page .step-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.nb-page .page-link,
.nb-page .step-links a,
.nb-page .step-links .current {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 44px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--nb-border);
    color: #333;
    font-size: .9rem;
}
.nb-page .page-item.active .page-link {
    background: var(--nb-grad);
    color: #fff;
    box-shadow: none;
}
.nb-page .page-item.disabled .page-link {
    background: none;
    box-shadow: none;
}

/* پیام‌ها */
.nb-page .messages {
    display: grid;
    gap: 8px;
}
.nb-page ul.messages li,
.nb-page .alert {
    padding: 12px 18px;
    border-radius: 15px;
    background: #eef6ff;
    color: #1d4f91;
    font-size: .9rem;
    line-height: 1.8;
}
.nb-page .alert.success,
.nb-page .alert.alert-success {
    background: #e8f7ef;
    color: #146c43;
}
.nb-page .alert.error,
.nb-page .alert.alert-error,
.nb-page .alert.alert-danger {
    background: #fdecec;
    color: #b42318;
}
.nb-page .alert.warning,
.nb-page .alert.alert-warning {
    background: #fff6e5;
    color: #8a5a00;
}
.nb-page .alert a {
    font-weight: 700;
    margin-right: 6px;
}

/* تقویم ایجاد / ویرایش نوبت */
.nb-page .month-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-bottom: 14px;
}
.nb-page .month-btn {
    flex: 0 0 auto;
    padding: 9px 20px;
    border-radius: 44px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--nb-border);
    cursor: pointer;
    font-size: .9rem;
    white-space: nowrap;
    transition: .3s;
}
.nb-page .month-btn.active {
    background: var(--nb-grad);
    color: #fff;
    box-shadow: none;
}
.nb-page .calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--nb-shadow);
}
.nb-page .week-header {
    padding: 8px 2px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--nb-muted);
}
.nb-page .calendar-day {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f6f9fd;
    border: 1px solid #e8eef6;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}
.nb-page .calendar-day:empty,
.nb-page .calendar-day[data-date=""],
.nb-page .calendar-day[data-date="null"],
.nb-page .calendar-day[data-date="undefined"] {
    background: transparent;
    border-color: transparent;
    cursor: default;
}
.nb-page .calendar-day:not(.disabled):not(:empty):hover {
    border-color: var(--clr-1);
}
.nb-page .calendar-day.friday {
    color: var(--nb-red);
}
.nb-page .calendar-day.reserved {
    background: #e7f1fe;
    border-color: #b9d6fb;
    color: var(--clr-1);
}
.nb-page .calendar-day.active {
    background: var(--nb-grad);
    border-color: transparent;
    color: #fff;
}
.nb-page .calendar-day.disabled {
    opacity: .4;
    cursor: not-allowed;
}
.nb-page .calendar .loading,
.nb-page .calendar .no-data,
.nb-page .calendar .error {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    color: var(--nb-muted);
}

/* مودال ویرایش بازه */
.nb-page .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgb(15 23 42 / 45%);
}
.nb-page .modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 30px;
    background: #fff;
}
.nb-page .modal-content .form-base {
    padding: 0;
    box-shadow: none;
}
.nb-page .modal-close {
    position: absolute;
    top: 16px;
    left: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f7;
    cursor: pointer;
    font-size: .85rem;
}
.nb-page .modal-content button + button {
    margin-right: 8px;
}

/* ویرایش نوبت بیمار */
.nb-page .edit-nobat h2 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.nb-page .edit-nobat form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.nb-page .edit-nobat .wal-col {
    box-shadow: 0 0 0 1px #ffe1a8;
    background: #fffaf0;
}

/* نوار منشی */
.nb-page .alert.alert-info {
    margin-top: 20px;
}

/* صفحه ورود */
.nb-auth,
.nb-page > main.nb-auth {
    display: flex;
    justify-content: center;
    padding: 50px 16px 70px;
}
.nb-auth .login {
    width: 100%;
    max-width: 440px;
    padding: 36px 34px;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--nb-shadow);
    text-align: center;
}
.nb-auth .login > img {
    margin: 0 auto 20px;
}
.nb-auth .login h1 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}
.nb-auth .login > p {
    color: var(--nb-muted);
    font-size: .92rem;
    line-height: 1.9;
}
.nb-auth .login form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    text-align: right;
}
.nb-auth .login form label {
    margin-bottom: -4px;
}
.nb-auth .login form button {
    width: 100%;
}
.nb-auth .login form p {
    display: block;
    margin: 0;
}
.nb-auth .mini-p {
    margin-top: 14px;
    font-size: .8rem !important;
    color: #8a93a3;
    text-align: center;
}
.nb-auth .nb-home-link {
    display: block;
    font-weight: 700;
    color: #3f4064 !important;
}
.nb-auth .massage,
.nb-auth #msg:not(:empty) {
    padding: 10px 14px;
    border-radius: 12px;
    background: #eef6ff;
    color: #1d4f91;
    font-size: .85rem;
    text-align: center;
}
.nb-auth .massage.error,
.nb-auth #msg.error {
    background: #fdecec;
    color: #b42318;
}
.nb-auth .massage.success,
.nb-auth #msg.success {
    background: #e8f7ef;
    color: #146c43;
}
.nb-auth .massage.warning,
.nb-auth #msg.warning {
    background: #fff6e5;
    color: #8a5a00;
}

/* موبایل */
@media (max-width: 767px) {
    .nb-page .user-info,
    .nb-page .wal-col,
    .nb-page .form-base,
    .nb-page .book-app,
    .nb-page .pay-b,
    .nb-page .edit-nobat,
    .nb-page .doctor-detail,
    .nb-page #filter-form {
        padding: 20px 16px;
        border-radius: 22px;
    }
    .nb-page .calendar {
        gap: 4px;
        padding: 12px 8px;
        border-radius: 20px;
    }
    .nb-page .week-header {
        font-size: .65rem;
    }
    .nb-page .calendar-day {
        min-height: 42px;
        border-radius: 10px;
        font-size: .85rem;
    }
    /* جدول‌ها روی موبایل کارت‌کارت نمایش داده می‌شوند (data-label هر ستون) */
    .nb-page .doctor-detail {
        overflow: visible;
        padding: 0;
        background: none;
        box-shadow: none;
    }
    .nb-page table thead {
        display: none;
    }
    .nb-page table,
    .nb-page table tbody,
    .nb-page table tr,
    .nb-page table td {
        display: block;
        width: 100%;
    }
    .nb-page table tr {
        margin-bottom: 12px;
        padding: 10px 14px;
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--nb-shadow);
    }
    .nb-page table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        text-align: left;
    }
    .nb-page table td:last-child {
        border-bottom: 0;
    }
    .nb-page table td[data-label]::before {
        content: attr(data-label);
        color: var(--nb-muted);
        font-weight: 600;
        text-align: right;
    }
    .nb-auth .login {
        padding: 28px 20px;
    }
}

/* فرم‌هایی که ورودی‌ها را بدون پوشش <p> پشت هم گذاشته‌اند */
.nb-page form > input + label,
.nb-page form > select + label {
    margin-top: 14px;
}
.nb-page form > label + input,
.nb-page form > label + select {
    margin-top: 6px;
}
.nb-page form > input + button,
.nb-page form > select + button,
.nb-page form > div + button {
    margin-top: 16px;
}
.nb-page .big-btn-admin,
.nb-page .big-btn-admin:hover {
    color: #fff;
    margin-left: 8px;
}
.nb-page form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--nb-border);
    border-radius: 15px;
    background: #fbfcfe;
    font-family: devix, serif;
}
.nb-page .nb-pay-icon {
    width: 110px;
    height: 110px;
}
.nb-page .nb-pay-icon.no {
    color: var(--nb-red);
}

/* ───────────── متن هدر صفحه اصلی (HTML روی تصویر بدون متن) ───────────── */
.hero-index {
    position: relative;
}
.nb-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 48%;
    padding: 0 16px;
    text-align: center;
    color: #fff;
    pointer-events: none;
}
.nb-hero-text h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(14px, 1.75vw, 38px);
    font-weight: 700;
    line-height: 1.6;
}
.nb-hero-text .nb-hero-sub {
    margin: .2em 0 .7em;
    color: #8dff8a;
    font-size: clamp(12px, 1.45vw, 30px);
    font-weight: 700;
    line-height: 1.6;
}
.nb-hero-text .nb-hero-desc {
    max-width: 34em;
    margin: 0 auto;
    color: rgb(255 255 255 / 92%);
    font-size: clamp(11px, .8vw, 17px);
    line-height: 1.9;
}
@media (max-width: 767px) {
    .hero-index .hero-img img {
        height: 180px;
        width: 100%;
        object-fit: cover;
        object-position: center top;
    }
    .nb-hero-text {
        top: 92px;
    }
}

/* صفحه‌های عمومی: درباره ما / تماس / ثبت نام پزشکان */
.nb-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.nb-two-col > .section-card {
    margin-top: 0;
}
.nb-mt {
    margin-top: 20px;
}
.nb-muted {
    color: var(--nb-muted);
    font-size: .9rem;
}
.section-card.nb-page {
    padding: 35px;
}
.nb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.nb-form-grid .nb-full {
    grid-column: 1 / -1;
}
.nb-page form p.nb-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.nb-req {
    color: var(--nb-red);
}
.nb-page .pay-b.nb-flat {
    max-width: none;
    box-shadow: none;
    padding: 20px 0 0;
}
.nb-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}
.nb-static-page .footer-contact .contact-item {
    margin-bottom: 12px;
}
@media (max-width: 991px) {
    .nb-two-col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575px) {
    .nb-form-grid {
        grid-template-columns: 1fr;
    }
    .section-card.nb-page {
        padding: 22px 16px;
    }
}
.big-btn-admin.success {
    background: var(--nb-green);
}
.nb-pending-alert {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 15px;
    background: #fff6e5;
    color: #8a5a00;
    font-size: .9rem;
}

/* صفحه پزشک: دکمه‌های تماس/اشتراک/اینستاگرام همیشه کنار هم در سمت راست کارت */
.doctor-actions {
    justify-content: flex-start;
}
.doctor-contact {
    transition: box-shadow .4s, background-color .4s;
}
.doctor-contact.nb-flash {
    background-color: #eef6ff;
    box-shadow: 0 0 0 3px rgb(16 117 236 / 25%);
}

/* انتخاب روش پرداخت (درگاه / کیف پول) */
.nb-page .nb-pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.nb-page .book-app form > .nb-pay-methods {
    margin-bottom: 16px;
}
.nb-page .nb-pay-method {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--nb-border);
    cursor: pointer;
    transition: box-shadow .2s, background .2s;
}
.nb-page .nb-pay-method:has(input:checked) {
    background: #f1f6fd;
    box-shadow: 0 0 0 2px var(--clr-1);
}
.nb-page .nb-pay-method.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}
.nb-page .nb-pay-method span {
    display: grid;
    gap: 2px;
}
.nb-page .nb-pay-method small {
    color: var(--nb-muted);
    font-weight: 400;
    font-size: .8rem;
}
@media (max-width: 575px) {
    .nb-page .nb-pay-methods {
        grid-template-columns: 1fr;
    }
}

/* ═════════════════════ داشبورد پزشک (طرح جدید) ═════════════════════ */
.nb-dash {
    background: #f4f7fb;
}
.nb-dash-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.nb-dash-side,
.nb-dash-main,
.nb-dash-narrow {
    display: grid;
    gap: 20px;
    align-content: start;
}
.nb-card {
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px #eaeef4, 0 6px 20px rgb(34 48 85 / 4%);
}
.nb-page .nb-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
}
.nb-dash .nb-muted {
    color: #7b8494;
    font-size: .82rem;
}
.nb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.nb-badge svg {
    width: 13px;
    height: 13px;
}
.nb-badge.green { background: #e6f7ee; color: #12804a; }
.nb-badge.blue { background: #e8f1fe; color: #1660c9; }
.nb-badge.yellow { background: #fff4dc; color: #8a5a00; }
.nb-badge.gray { background: #f0f2f5; color: #5e6570; }

.nb-btn-primary,
.nb-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s;
}
.nb-page a.nb-btn-primary,
.nb-btn-primary {
    background: var(--clr-1);
    color: #fff;
    border: 1px solid var(--clr-1);
}
.nb-page a.nb-btn-outline,
.nb-btn-outline {
    background: #fff;
    color: #1d2b44;
    border: 1px solid #d6dde8;
}
.nb-btn-outline:hover {
    border-color: var(--clr-1);
    color: var(--clr-1) !important;
}
.nb-btn-primary:hover {
    opacity: .9;
}
.nb-btn-outline.sm {
    min-height: 36px;
    padding: 5px 14px;
    font-size: .8rem;
}
.nb-btn-outline svg,
.nb-btn-primary svg {
    width: 16px;
    height: 16px;
}
.nb-block {
    display: flex;
    width: 100%;
}
.nb-link-btn {
    border: 0;
    background: none;
    color: var(--clr-1);
    cursor: pointer;
    font-family: devix, serif;
    font-size: .8rem;
    margin-right: 6px;
}

/* کارت پروفایل */
.nb-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.nb-avatar {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f1fe;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nb-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.nb-avatar > span {
    color: var(--clr-1);
    font-size: 1.4rem;
    font-weight: 900;
}
.nb-avatar-cam {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--clr-1);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px #fff;
}
.nb-avatar-cam svg {
    width: 16px;
    height: 16px;
}
.nb-profile-name {
    display: grid;
    gap: 4px;
    justify-items: start;
}
.nb-page .nb-profile-name h2 {
    font-size: 1.1rem;
    font-weight: 900;
}
.nb-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    color: #5e6570;
    margin-bottom: 6px;
}
.nb-bar {
    height: 6px;
    border-radius: 6px;
    background: #e9eef5;
    overflow: hidden;
}
.nb-bar i {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: var(--clr-1);
    margin-right: 0;
}
.nb-hint {
    margin-top: 8px;
    font-size: .78rem;
    line-height: 1.8;
    color: #7b8494;
}
.nb-info-list {
    margin: 16px 0 0;
}
.nb-info-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eef1f5;
    font-size: .85rem;
}
.nb-info-list dt {
    color: #7b8494;
}
.nb-info-list dd {
    margin: 0;
    font-weight: 700;
    color: #1d2b44;
}
.nb-about-preview {
    padding: 12px 0 16px;
    border-top: 1px solid #eef1f5;
}
.nb-about-preview p {
    margin-top: 6px;
    font-size: .82rem;
    line-height: 1.9;
    color: #3d4656;
}
.nb-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}
.nb-security-row b {
    font-size: .88rem;
}
.nb-page .nb-card h3 svg {
    width: 20px;
    height: 20px;
    color: var(--clr-1);
}

/* عنوان و کارت‌های اقدام */
.nb-page .nb-dash-title h1 {
    font-size: 1.5rem;
    font-weight: 900;
}
.nb-dash-title p {
    margin-top: 6px;
    color: #5e6570;
    font-size: .9rem;
}
.nb-action-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.nb-page a.nb-action-card,
.nb-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    padding: 22px 24px;
    border-radius: 20px;
    color: #fff;
    transition: transform .25s, box-shadow .25s;
}
.nb-action-card.blue {
    background: linear-gradient(125deg, #2f8bff 0%, var(--clr-1) 60%);
    box-shadow: 0 14px 30px rgb(16 117 236 / 28%);
}
.nb-action-card.navy {
    background: linear-gradient(125deg, #12346f 0%, #0b2558 100%);
    box-shadow: 0 14px 30px rgb(11 37 88 / 28%);
}
.nb-action-card:hover {
    transform: translateY(-3px);
}
.nb-action-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgb(255 255 255 / 18%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nb-action-icon svg {
    width: 28px;
    height: 28px;
}
.nb-action-text {
    flex: 1;
    display: grid;
    gap: 6px;
}
.nb-action-text b {
    font-size: 1.25rem;
    font-weight: 900;
}
.nb-action-text small {
    font-size: .82rem;
    opacity: .9;
    line-height: 1.7;
}
.nb-chevron {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ستون‌ها */
.nb-dash-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.nb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.nb-appt-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 84px;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #eef1f5;
}
.nb-time-pill {
    min-width: 64px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #eef4fe;
    color: #1660c9;
    font-weight: 900;
    text-align: center;
}
.nb-appt-name {
    display: grid;
    gap: 2px;
}
.nb-appt-name b {
    font-size: .92rem;
}
.nb-appt-name small {
    color: #7b8494;
    font-size: .78rem;
}
.nb-appt-actions {
    display: flex;
    justify-content: flex-end;
}
.nb-empty {
    padding: 30px 0;
    text-align: center;
    color: #7b8494;
    font-size: .9rem;
}
.nb-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
    font-size: .8rem;
}

/* کیف پول و ظرفیت */
.nb-wallet-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nb-wallet-label svg {
    width: 16px;
    height: 16px;
}
.nb-wallet-amount {
    margin: 10px 0 16px;
}
.nb-wallet-amount b {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f1b33;
}
.nb-wallet-amount small {
    color: #7b8494;
}
.nb-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.nb-capacity h3 {
    margin-bottom: 10px;
}
.nb-cap-row {
    padding: 8px 0;
}
.nb-cap-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: .82rem;
}
.nb-cap-label small {
    color: #7b8494;
}
.nb-cap-row.is-today .nb-cap-label span {
    color: var(--clr-1);
    font-weight: 700;
}

@media (max-width: 1200px) {
    .nb-dash-cols {
        grid-template-columns: 1fr;
    }
    .nb-dash-narrow {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 991px) {
    .nb-dash-grid {
        grid-template-columns: 1fr;
    }
    .nb-dash-side {
        order: 2;
    }
}
@media (max-width: 767px) {
    .nb-action-cards,
    .nb-dash-narrow {
        grid-template-columns: 1fr;
    }
    .nb-appt-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .nb-appt-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

/* خلاصه کیف پول پزشک (کیف پول / درخواست برداشت) */
.nb-page .nb-wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.nb-page .nb-wallet-stats > div {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--nb-shadow);
}
.nb-page .nb-wallet-stats span {
    color: var(--nb-muted);
    font-size: .82rem;
}
.nb-page .nb-wallet-stats b {
    font-size: 1.25rem;
    font-weight: 900;
}
.nb-page .nb-wallet-stats small {
    color: #8a93a3;
    font-size: .75rem;
}
.nb-page .nb-wallet-stats .is-main {
    background: #eef5ff;
    box-shadow: 0 0 0 1px #cfe2fc;
}
.nb-page .nb-wallet-stats .is-main b {
    color: var(--clr-1);
}
.nb-wallet-sub {
    display: grid;
    gap: 6px;
    margin: -6px 0 16px;
    font-size: .8rem;
}
.nb-wallet-sub div {
    display: flex;
    justify-content: space-between;
    color: #5e6570;
}
.nb-wallet-sub b {
    color: #1d2b44;
}

/* داشبورد: کادر مجزای دسترسی به نوبت‌ها زیر «نوبت‌های امروز» */
.nb-dash-center {
    display: grid;
    gap: 20px;
    align-content: start;
}
.nb-appt-links h3 {
    margin-bottom: 14px;
}
.nb-appt-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.nb-page .nb-appt-links-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 14px 8px;
    border-radius: 14px;
    background: #f4f7fb;
    border: 1px solid #e6ebf2;
    color: #1d2b44;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    transition: .25s;
}
.nb-page .nb-appt-links-grid a:hover {
    background: #eef5ff;
    border-color: var(--clr-1);
    color: var(--clr-1);
}
.nb-appt-links-grid svg {
    width: 26px;
    height: 26px;
    color: var(--clr-1);
}
@media (max-width: 767px) {
    .nb-appt-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* تقویم ایجاد/ویرایش نوبت: آیکون دسترسی سریع، علامت روزهای دارای نوبت، راهنما */
.nb-page .calendar.nb-has-tool {
    position: relative;
    padding-top: 56px;
}
.nb-page .nb-cal-tool {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--nb-grad);
    color: #fff !important;
    box-shadow: 0 6px 14px rgb(16 117 236 / 25%);
    transition: transform .2s;
}
.nb-page .nb-cal-tool:hover {
    transform: scale(1.08);
}
.nb-page .nb-cal-tool svg {
    width: 18px;
    height: 18px;
}
.nb-page .calendar-day {
    position: relative;
}
.nb-day-mark {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nb-green, #1fa463);
    box-shadow: 0 0 0 2px #fff;
}
.nb-page .calendar-day.active .nb-day-mark {
    background: #fff;
    box-shadow: none;
}
.nb-page .nb-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: -8px 0 20px;
    font-size: .8rem;
    color: var(--nb-muted);
}
.nb-page .nb-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nb-page .nb-cal-legend .nb-day-mark {
    position: static;
    display: inline-block;
}
.nb-legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #e8eef6;
}
.nb-legend-box.is-selected {
    background: var(--clr-1);
    border-color: var(--clr-1);
}
.nb-legend-box.is-disabled {
    background: #e3e8ef;
    border-color: #d5dce6;
}
.nb-page .nb-amount-chips {
    margin: 0 0 16px;
}
.nb-page .nb-amount-chips button {
    min-height: 0;
    padding: 7px 16px;
    border-radius: 44px;
    background: #f1f6fd;
    color: var(--clr-1);
    font-weight: 600;
    font-size: .85rem;
}
.nb-page .nb-cancel-form button {
    min-height: 0;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 400;
    background: var(--nb-red);
}


/* ═════════════ مرحله ۴ ═════════════ */

/* ───── تصویر پزشک در صفحه پزشک (موبایل) ─────
   قالب در ≤456px قاب عکس را 60px می‌کند و اندازه ثابت دسکتاپ، عکس را
   باریک و کشیده نشان می‌داد؛ در موبایل نسبت ۳:۴ حفظ می‌شود. */
@media (max-width: 456px) {
    .doctor-photo {
        width: 92px;
        height: auto;
        flex-shrink: 0;
    }
    .doctor-photo img {
        width: 92px;
        height: 123px;
    }
}

/* ───── فرم جستجو با فیلد «نوع مرکز» ───── */
.doctor-search.nb-has-center .select-field,
.doctor-search.nb-has-center .location-btn {
    width: 185px;
}
.doctor-search.nb-has-center .location-btn span {
    white-space: nowrap;
}
@media (min-width: 1201px) {
    .doctor-search.nb-has-center {
        width: min(1000px, 92%);
    }
}
@media (min-width: 457px) and (max-width: 991px) {
    .doctor-search.nb-has-center .search-field {
        flex: 1 1 100%;
    }
    .doctor-search.nb-has-center .location,
    .doctor-search.nb-has-center .select-field {
        flex: 1 1 0;
        min-width: 0;
    }
    .doctor-search.nb-has-center .search-btn {
        flex: 1 1 100%;
    }
    .doctor-search.nb-has-center .select-field,
    .doctor-search.nb-has-center .location-btn {
        width: 100%;
    }
}

/* ───── هدر موبایل: آیکن منو سمت راست لوگو ───── */
@media (max-width: 991px) {
    .header .baz {
        order: -1;
        margin-right: 0;
        margin-left: 10px;
    }
    .header .logo-img {
        margin-left: auto;
    }
}

/* ───── فوتر فشرده در موبایل (هیچ بخشی حذف نشده) ───── */
@media (max-width: 768px) {
    .footer {
        padding: 25px 0 15px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .footer-top > :first-child,
    .footer-top > :last-child {
        margin-top: 0;
    }
    .footer-logo {
        margin-bottom: 4px;
    }
    .footer-logo img {
        width: 130px;
    }
    .footer-about h3 {
        margin: 6px 0 10px 0;
        font-size: 1.05rem;
    }
    .footer-about p {
        max-width: 100%;
        font-size: .8rem;
        line-height: 1.95;
    }
    .footer-title {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    .footer-specialists ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 12px;
        margin: 0;
    }
    .footer-specialists li {
        margin-bottom: 0;
    }
    .footer-specialists a {
        font-size: .82rem;
    }
    .trust-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .trust-item {
        height: 64px;
        border-radius: 8px;
    }
    .trust-item img {
        width: 44px;
        height: 44px;
    }
    .contact-item {
        min-height: 0;
        margin-bottom: 8px;
        padding: 6px 10px;
        gap: 9px;
    }
    .contact-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    .contact-item b {
        font-size: .82rem;
        line-height: 1.6;
    }
    .contact-item small {
        font-size: .72rem;
        line-height: 1.4;
    }
    .footer-bottom {
        margin-top: 18px;
        padding-top: 14px;
        gap: 10px;
    }
    .footer-social a {
        width: 38px;
        height: 38px;
    }
    .footer-social svg {
        width: 18px;
        height: 18px;
    }
    .footer-bottom p {
        font-size: .78rem;
    }
}

/* ═════════════ مرحله ۵: درخواست عضویت (پزشک / مرکز درمانی) ═════════════ */
.nb-reg [hidden] { display: none !important; }
.nb-reg .nb-reg-title {
    margin: 0 0 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}
.nb-reg .nb-reg-label {
    margin: 0 0 18px;
    font-size: .9rem;
    font-weight: 700;
    color: #222;
}
.nb-reg-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
    gap: 22px;
    padding: 10px 0 20px;
}
.nb-reg-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 16px 16px;
    border: 1px solid #d9dde2;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow .3s ease, transform .3s ease;
}
.nb-reg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgb(30 45 75 / 12%);
}
.nb-reg-card img {
    display: block;
    width: 100%;
    height: auto;
}
.nb-reg-card-btn {
    display: block;
    margin-top: -4px;
    padding: 12px 10px;
    border-radius: 8px;
    background: #0d63d6;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
}
.nb-reg-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.nb-reg-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 18px;
    border: 1px solid #c9ced6;
    border-radius: 10px;
    background: #f5f6f8;
    font-size: .9rem;
    font-weight: 700;
    color: #222;
    cursor: pointer;
}
.nb-reg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nb-reg-radio {
    flex: none;
    width: 22px;
    height: 22px;
    border: 3px solid var(--clr-1);
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}
.nb-reg-option:has(input:checked) {
    border-color: var(--clr-1);
    background: #eaf3ff;
}
.nb-reg-option input:checked + .nb-reg-radio {
    background: radial-gradient(circle, var(--clr-1) 0 45%, #fff 50%);
}
.nb-reg-option input:focus-visible + .nb-reg-radio {
    outline: 2px solid var(--clr-1);
    outline-offset: 2px;
}
.nb-reg-sep {
    margin: 26px 2% 22px;
    border: 0;
    border-top: 1px solid #dfe3e8;
}
.nb-reg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}
.nb-reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.nb-reg-full {
    grid-column: 1 / -1;
}
.nb-reg-field > label {
    font-size: .85rem;
    font-weight: 700;
    color: #222;
}
.nb-reg .nb-reg-field input:not([type="checkbox"]),
.nb-reg .nb-reg-field select,
.nb-reg .nb-reg-field textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #c9ced6;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: .85rem;
    box-sizing: border-box;
    outline: 0;
    box-shadow: none;
}
.nb-reg .nb-reg-field textarea {
    height: 46px;
    min-height: 46px;
    resize: vertical;
}
.nb-reg .nb-reg-field.nb-reg-full textarea {
    height: 66px;
    min-height: 66px;
}
.nb-reg-field input::placeholder,
.nb-reg-field textarea::placeholder {
    color: #9aa1ab;
}
.nb-reg .nb-reg-field input:focus,
.nb-reg .nb-reg-field select:focus,
.nb-reg .nb-reg-field textarea:focus {
    border-color: var(--clr-1);
}
.nb-reg .nb-reg-field.has-error input,
.nb-reg .nb-reg-field.has-error select,
.nb-reg .nb-reg-field.has-error textarea {
    border-color: var(--nb-red);
}
.nb-reg-select {
    position: relative;
}
.nb-reg .nb-reg-select select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 34px;
    cursor: pointer;
}
.nb-reg-select::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 7px;
    height: 7px;
    border-left: 1.5px solid #8a929c;
    border-bottom: 1.5px solid #8a929c;
    transform: translateY(-70%) rotate(-45deg);
    pointer-events: none;
}
.nb-reg-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #333;
}
.nb-reg-field .error {
    color: var(--nb-red);
    font-size: .78rem;
}
.nb-reg .nb-reg-submit {
    display: block;
    margin-top: 18px;
    margin-right: auto; /* مثل طرح: سمت چپ فرم */
    min-width: 160px;
    min-height: 46px;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: var(--clr-1);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}
.nb-reg .nb-reg-submit:disabled {
    background: #a9cbf2;
    cursor: not-allowed;
}
.nb-reg-benefits {
    margin-top: 24px;
}
@media (max-width: 576px) {
    .nb-reg-cards,
    .nb-reg-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nb-reg-cards {
        justify-content: stretch;
    }
    .nb-reg-switch {
        gap: 8px;
    }
    .nb-reg-option {
        padding: 8px 10px;
        gap: 8px;
        font-size: .8rem;
    }
    .nb-reg .nb-reg-submit {
        width: 100%;
    }
}

/* ═════════════ «شهر من»: دکمه هدر و پاپ‌آپ انتخاب شهر ═════════════ */
.nb-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 170px;
    padding: 8px 14px;
    border: 1px solid #d9dde2;
    border-radius: 28px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease;
}
.nb-city-chip:hover {
    border-color: var(--clr-1);
    color: var(--clr-1);
}
.nb-city-chip svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--clr-1);
}
.nb-city-chip span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nb-city-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* بالاتر از هدر و منوی پایین موبایل */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgb(15 25 45 / 55%);
    direction: rtl;
}
.nb-city-modal[hidden] {
    display: none;
}
body.nb-city-open {
    overflow: hidden;
}
.nb-city-modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
    text-align: center;
}
.nb-city-modal__close {
    position: absolute;
    top: 10px;
    left: 14px;
    border: 0;
    background: none;
    color: #888;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.nb-city-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(125deg, #70b2ff2b 0%, #1075ec38 100%);
}
.nb-city-modal__icon svg {
    width: 32px;
    height: 32px;
    color: var(--clr-1);
}
.nb-city-modal h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}
.nb-city-modal p {
    margin: 0 0 18px;
    font-size: .85rem;
    line-height: 1.9;
    color: #666;
}
.nb-city-form {
    display: grid;
    gap: 12px;
    text-align: right;
}
.nb-city-field {
    display: grid;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: #222;
}
.nb-city-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #c9ced6;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: .9rem;
    outline: 0;
}
.nb-city-field select:focus {
    border-color: var(--clr-1);
}
.nb-city-field select:disabled {
    background: #f3f5f8;
    color: #999;
}
.nb-city-submit,
.nb-city-skip {
    min-height: 46px;
    border-radius: 28px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}
.nb-city-submit {
    margin-top: 4px;
    border: 0;
    background: linear-gradient(125deg, #70b2ff 0%, var(--clr-1) 55%, var(--clr-1) 100%);
    color: #fff;
}
.nb-city-submit:disabled {
    background: #a9cbf2;
    cursor: not-allowed;
}
.nb-city-skip {
    border: 1px solid #d9dde2;
    background: #fff;
    color: #555;
}
@media (max-width: 768px) {
    .nb-city-chip {
        max-width: 110px;
        padding: 5px 10px;
        font-size: .78rem;
    }
    .nb-city-chip svg {
        width: 17px;
        height: 17px;
    }
}

/* ═════════════ منوی هدر: «همکاری با ما» کنار ورود ═════════════ */
.menu-top .nb-mobile-only {
    display: none;
}
.nb-coop {
    position: relative;
}
.nb-coop-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 44px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--clr-1);
    color: var(--clr-1);
    font-size: 1rem;
    transition: .5s;
}
.nb-coop:hover .nb-coop-btn,
.nb-coop:focus-within .nb-coop-btn {
    background: linear-gradient(125deg, #70b2ff 0%, var(--clr-1) 55%, var(--clr-1) 100%);
    color: #fff;
}
.nb-coop-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    min-width: 210px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .25s ease;
}
.nb-coop::after {
    /* پل نامرئی تا با رفتن ماوس از دکمه به منو، منو بسته نشود */
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 10px;
}
.nb-coop:hover .nb-coop-menu,
.nb-coop:focus-within .nb-coop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
}
.nb-coop-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 7px;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}
.nb-coop-menu li a:hover {
    background: #f4f9ff;
    color: var(--clr-1);
}
@media (max-width: 991px) {
    .nb-coop {
        display: none;
    }
}

/* زبانه‌های نوع مرکز در صفحه مراکز درمانی */
.nb-type-tabs {
    justify-content: center;
    margin: 0 0 26px;
}
.nb-type-tabs a.active {
    background: var(--nb-grad);
    color: #fff;
}

/* دسترسی سریع نوبت‌ها: دکمه صفحه فعلی غیرفعال */
.dashboard-index li .nb-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 14px;
    border-radius: 20px;
    background: #eef1f5;
    color: #8a929c;
    font-weight: 600;
    text-align: center;
    cursor: default;
}
/* هدر در عرض‌های میانی (۹۹۲ تا ۱۲۸۰) در یک خط بماند */
@media (min-width: 992px) and (max-width: 1280px) {
    .menu-top ul > li > a {
        padding: 8px 10px;
        font-size: .9rem;
    }
    .logo-img img {
        width: 140px;
    }
    .Log-Sign {
        gap: 8px;
    }
    .nb-city-chip {
        max-width: 120px;
        padding: 6px 10px;
        font-size: .8rem;
    }
    .nb-coop-btn,
    .Log-Sign .Sign-Up,
    .Log-Sign .Log {
        padding: 6px 12px;
        font-size: .88rem;
    }
}
@media (min-width: 992px) and (max-width: 1100px) {
    .nb-city-chip span {
        display: none;
    }
}

/* راهنمای ایجاد نوبت زیر تقویم */
.nb-page .nb-cal-help {
    margin: 0 0 24px;
    padding: 18px 22px;
    border: 1px solid #e4e9ef;
    border-radius: 16px;
    background: #f8fbff;
    color: #333;
    font-size: .9rem;
    line-height: 2;
}
.nb-page .nb-cal-help h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}
.nb-page .nb-cal-help ol {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    counter-reset: nb-help;
}
.nb-page .nb-cal-help ol li {
    position: relative;
    padding-right: 26px;
    counter-increment: nb-help;
}
.nb-page .nb-cal-help ol li::before {
    content: counter(nb-help, persian);
    position: absolute;
    top: 6px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--clr-1);
    color: #fff;
    font-size: .72rem;
    line-height: 1;
}
.nb-page .nb-cal-help p {
    margin: 0;
}
.nb-page .nb-cal-help a {
    color: var(--clr-1);
    font-weight: 600;
}

/* دکمه جستجو وقتی چیزی وارد نشده */
.doctor-search .search-btn:disabled,
.devix-search-modal form button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ═════════════ صفحه «ارتباط با پشتیبانی» ═════════════ */
.nb-support-head {
    margin: 10px 0 24px;
    text-align: center;
}
.nb-support-head h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}
.nb-support-head p {
    margin: 0;
    font-size: .9rem;
    color: #555c68;
}
.nb-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.nb-support-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid #e3e7ec;
    border-radius: 14px;
    background: #fff;
    color: #333;
}
.nb-support-card h2,
.nb-support-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}
.nb-support-card h2 svg,
.nb-support-card h3 svg {
    width: 18px;
    height: 18px;
    flex: none;
}
.nb-support-card p {
    margin: 0;
    font-size: .88rem;
    line-height: 2;
    color: #444;
}
.nb-support-side {
    display: grid;
    gap: 14px;
}
.nb-support-form h2 svg {
    color: var(--clr-1);
}
.nb-support-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.nb-support-field > label {
    font-size: .88rem;
    color: #222;
}
.nb-support .nb-support-field input,
.nb-support .nb-support-field select,
.nb-support .nb-support-field textarea {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #c9ced6;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: .88rem;
    box-sizing: border-box;
    outline: 0;
}
.nb-support .nb-support-field textarea {
    min-height: 92px;
    resize: vertical;
}
.nb-support .nb-support-field input:focus,
.nb-support .nb-support-field select:focus,
.nb-support .nb-support-field textarea:focus {
    border-color: var(--clr-1);
}
.nb-support .nb-support-field.has-error input,
.nb-support .nb-support-field.has-error select,
.nb-support .nb-support-field.has-error textarea {
    border-color: var(--nb-red);
}
.nb-support-field small {
    font-size: .76rem;
    color: #777;
}
.nb-support-field .error {
    font-size: .78rem;
    color: var(--nb-red);
}
.nb-support-select {
    position: relative;
}
.nb-support .nb-support-select select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 34px;
    cursor: pointer;
}
.nb-support-select::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 15px;
    width: 7px;
    height: 7px;
    border-left: 1.5px solid #8a929c;
    border-bottom: 1.5px solid #8a929c;
    transform: translateY(-70%) rotate(-45deg);
    pointer-events: none;
}
.nb-support .nb-support-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #2f7be5;
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}
.nb-support .nb-support-submit:hover {
    background: var(--clr-1);
}
.nb-support-privacy {
    margin-top: 10px !important;
    text-align: center;
    font-size: .78rem !important;
    color: #888 !important;
}
.nb-support-urgent {
    border-color: #f1a9ae;
    background: #fbd9db;
}
.nb-support-urgent h2 {
    color: #8f1d24;
}
.nb-support-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: .9rem;
}
.nb-support-line svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: #333;
}
.nb-support-urgent small {
    display: block;
    font-size: .78rem;
    color: #555;
}
.nb-support-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--clr-1);
    font-size: .88rem;
    font-weight: 700;
}
.nb-support-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nb-support-track span {
    display: grid;
    gap: 2px;
}
.nb-support-track b {
    font-size: .95rem;
    color: #111;
}
.nb-support-track small {
    font-size: .8rem;
    color: #666;
}
.nb-support-track svg {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--clr-1);
}
.nb-support-success {
    margin: 18px 0 10px;
    padding: 16px 20px;
    border: 1px solid #8fd19e;
    border-radius: 14px;
    background: #d4edda;
    color: #155724;
}
.nb-support-success h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #155724;
}
.nb-support-success p {
    margin: 0;
    font-size: .9rem;
    line-height: 2;
}
.nb-support-success small {
    display: block;
    font-size: .8rem;
}
.nb-support-success a {
    color: #155724;
    font-weight: 700;
}
@media (max-width: 768px) {
    .nb-support-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nb-support-head h1 {
        font-size: 1.25rem;
    }
}
/* صفحه‌های جدای ثبت نام پزشکان / مراکز درمانی */
.nb-reg .nb-reg-switch-link {
    margin: -6px 0 0;
    font-size: .85rem;
    color: #555c68;
}
.nb-reg .nb-reg-switch-link a {
    color: var(--clr-1);
    font-weight: 700;
}
.nb-reg .nb-reg-help {
    font-size: .76rem;
    color: #777;
}
.nb-reg .nb-reg-field input[type="file"] {
    padding: 9px 12px;
    cursor: pointer;
}

/* ═════════════ جستجوی موبایل: تمام‌صفحه + نتایج زنده ═════════════ */
.devix-search-modal {
    padding: 0;
    background: #fff;
    align-items: stretch;
}
.devix-search-modal__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 12px 16px 90px;
    border-radius: 0;
    overflow-y: auto;
    box-sizing: border-box;
    direction: rtl;
}
.nb-msearch-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 12px;
    background: #fff;
}
.nb-msearch-bar form {
    flex: 1;
    min-width: 0;
}
.nb-msearch-bar .devix-search-close {
    position: static;
    flex: none;
    width: 40px;
    height: 50px;
    padding: 0;
    color: #555;
    line-height: 1;
}
body.nb-msearch-open {
    overflow: hidden;
}
.nb-msearch-results {
    flex: 1;
}
.nb-msearch-group {
    margin: 14px 0 6px;
    font-size: .8rem;
    font-weight: 700;
    color: #8a929c;
}
.nb-msearch-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    overflow: hidden;
}
.nb-msearch-list li + li {
    border-top: 1px solid #edf0f4;
}
.nb-msearch-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px;
    color: #222;
}
.nb-msearch-list a:active,
.nb-msearch-list a:hover {
    background: #f4f9ff;
}
.nb-msearch-list b {
    font-size: .92rem;
    font-weight: 700;
}
.nb-msearch-list small {
    font-size: .78rem;
    color: #777;
}
.nb-msearch-empty {
    margin: 18px 0;
    text-align: center;
    font-size: .88rem;
    color: #777;
}
.nb-msearch-all {
    display: block;
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #f1f6fd;
    color: var(--clr-1);
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}