/*
 * site-v2.css — طرح جدید صفحه‌ها (مرحله ۱).
 * همه کلاس‌ها با پیشوند nbx- هستند تا روی style.css قالب و pages.css اثری نگذارند.
 * رنگ اصلی و فونت همان قالب است: var(--clr-1) و devix.
 */
:root {
    --nbx-blue: var(--clr-1, #1075ec);
    --nbx-blue-soft: #eef5ff;
    --nbx-ink: #1f2a3d;
    --nbx-muted: #7b8698;
    --nbx-line: #e7edf5;
    --nbx-bg: #f5f7fb;
    --nbx-green: #1a9b5b;
    --nbx-green-soft: #e9f8f0;
    --nbx-red: #d9363e;
    --nbx-radius: 16px;
    --nbx-shadow: 0 4px 20px rgba(28, 52, 84, .05);
}
.nbx-page { background: var(--nbx-bg); padding: 22px 0 48px; color: var(--nbx-ink); font-family: devix, serif; }
.nbx-page h1, .nbx-page h2, .nbx-page h3 { color: var(--nbx-ink); }
.nbx-page svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.nbx-card { background: #fff; border: 1px solid var(--nbx-line); border-radius: var(--nbx-radius); padding: 22px; box-shadow: var(--nbx-shadow); min-width: 0; }
.nbx-card + .nbx-card { margin-top: 0; }
.nbx-h2 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.nbx-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--nbx-muted); margin: 0 0 16px; }
.nbx-crumb a { color: var(--nbx-muted); }
.nbx-crumb b { color: var(--nbx-ink); }
.nbx-crumb svg { width: 9px; height: 9px; transform: rotate(-90deg); }
.nbx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--nbx-blue); background-image: var(--nb-grad); color: #fff !important; border-radius: 10px; padding: 9px 16px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 0; cursor: pointer; }
.nbx-btn svg { width: 12px; height: 12px; }
.nbx-btn-soft { background: var(--nbx-blue-soft); background-image: none; color: var(--nbx-blue) !important; }
.nbx-btn-wide { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 11px; border-radius: 12px; background: var(--nbx-blue-soft); color: var(--nbx-blue); font-weight: 700; font-size: 13px; }
.nbx-btn-wide:hover { background: #e2edff; }
.nbx-pill-muted { background: var(--nbx-bg); color: var(--nbx-muted); border-radius: 99px; padding: 3px 12px; font-size: 11px; }
.nbx-empty { color: var(--nbx-muted); text-align: center; padding: 18px 8px; margin: 0; font-size: 13px; }
.nbx-prose { color: #5a6578; font-size: 13px; line-height: 2.2; margin: 0; }
.nbx-prose p { margin: 0 0 8px; }

/* ───────── صفحه مرکز درمانی ───────── */
.nbx-center-grid {
    display: grid; gap: 18px; align-items: start;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas: "head docs" "about docs" "services docs" "contact docs" "map docs";
}
.nbx-center-docs { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.nbx-center-id { display: flex; align-items: center; gap: 16px; }
.nbx-center-logo { width: 84px; height: 84px; flex: none; border-radius: 16px; border: 1px solid var(--nbx-line); background: var(--nbx-blue-soft); display: grid; place-items: center; overflow: hidden; }
.nbx-center-logo img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.nbx-center-title h1 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.nbx-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; color: var(--nbx-muted); font-size: 12px; }
.nbx-meta span { display: inline-flex; align-items: center; gap: 4px; }
.nbx-meta svg { color: var(--nbx-blue); width: 14px; height: 14px; }
.nbx-badge-ok { display: inline-flex; align-items: center; gap: 6px; background: var(--nbx-green-soft); color: var(--nbx-green); border-radius: 99px; padding: 3px 12px; font-size: 11px; font-weight: 700; }
.nbx-badge-ok svg { width: 13px; height: 13px; }
.nbx-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 0; border: 1px solid var(--nbx-line); border-radius: 14px; }
.nbx-stats > div { text-align: center; padding: 12px 6px; }
.nbx-stats > div + div { border-right: 1px solid var(--nbx-line); }
.nbx-stats dd { margin: 0; font-size: 16px; font-weight: 800; order: -1; }
.nbx-stats dt { font-size: 11px; color: var(--nbx-muted); margin-top: 2px; }
.nbx-stats > div { display: flex; flex-direction: column; }
.nbx-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.nbx-card-head h2 { font-size: 15px; font-weight: 800; margin: 0; }
.nbx-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--nbx-line); margin-bottom: 14px; }
.nbx-tabs a { padding: 8px 2px; font-size: 12.5px; color: var(--nbx-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nbx-tabs a.on { color: var(--nbx-blue); border-color: var(--nbx-blue); font-weight: 700; }
.nbx-tools { display: flex; gap: 10px; }
.nbx-search { flex: 1; position: relative; display: block; }
.nbx-search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--nbx-muted); width: 15px; height: 15px; }
.nbx-search input, .nbx-tools select { width: 100%; height: 42px; border: 1px solid var(--nbx-line); border-radius: 12px; padding: 0 36px 0 12px; font: inherit; font-size: 12.5px; background: #fff; color: var(--nbx-ink); }
.nbx-tools select { width: auto; min-width: 140px; padding: 0 12px; }
.nbx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.nbx-chips button, .nbx-chips a, .nbx-chips span { border: 1px solid var(--nbx-line); background: #fff; color: #4b5668; border-radius: 99px; padding: 5px 14px; font: inherit; font-size: 12px; cursor: pointer; }
.nbx-chips button.on { background: var(--nbx-blue); border-color: var(--nbx-blue); color: #fff; }
.nbx-chips-static a, .nbx-chips-static span { background: var(--nbx-bg); }
.nbx-chips-static a:hover { border-color: var(--nbx-blue); color: var(--nbx-blue); }
.nbx-doc-list { display: grid; gap: 12px; margin-top: 12px; }
.nbx-doc { display: flex; gap: 14px; border: 1px solid var(--nbx-line); border-radius: 14px; padding: 12px; background: #fff; }
.nbx-doc[hidden] { display: none; }
.nbx-doc-photo img { width: 96px; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.nbx-doc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nbx-doc-body h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 800; }
.nbx-doc-body h3 a { color: var(--nbx-ink); }
.nbx-verify { color: var(--nbx-blue); width: 17px !important; height: 17px !important; }
.nbx-spec { display: inline-flex; align-items: center; gap: 5px; background: var(--nbx-blue-soft); color: var(--nbx-blue); border-radius: 99px; padding: 2px 10px; font-size: 11.5px; font-weight: 700; }
.nbx-city { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #4b5668; font-weight: 700; }
.nbx-city svg { color: var(--nbx-muted); width: 12px; height: 12px; }
.nbx-first { display: inline-flex; align-items: center; gap: 5px; background: var(--nbx-green-soft); color: var(--nbx-green); border-radius: 8px; padding: 2px 9px; font-size: 11px; }
.nbx-first svg { width: 12px; height: 12px; }
.nbx-doc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; flex-wrap: wrap; }
.nbx-rate { font-size: 11px; color: var(--nbx-muted); display: inline-flex; gap: 4px; align-items: center; }
.nbx-stars { color: #ffb800; letter-spacing: 1px; font-size: 12px; }
.nbx-services { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.nbx-services li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--nbx-line); border-radius: 12px; padding: 10px 14px; }
.nbx-services small { display: block; color: var(--nbx-muted); font-size: 11px; }
.nbx-contact { list-style: none; margin: 0; padding: 0; }
.nbx-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; font-size: 13px; color: #4b5668; line-height: 2; }
.nbx-contact li + li { border-top: 1px solid var(--nbx-line); }
.nbx-contact svg { color: var(--nbx-blue); margin-top: 6px; }
.nbx-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--nbx-line); }
.nbx-map iframe { display: block; width: 100% !important; height: 260px; border: 0; }

@media (max-width: 1100px) {
    .nbx-center-grid { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 900px) {
    .nbx-center-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "docs" "about" "services" "contact" "map"; }
    .nbx-center-docs { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 575px) {
    .nbx-page { padding-top: 14px; }
    .nbx-card { padding: 16px; border-radius: 14px; }
    .nbx-center-id { align-items: flex-start; }
    .nbx-center-logo { width: 68px; height: 68px; }
    .nbx-center-logo img { width: 60px; height: 60px; }
    .nbx-center-title h1 { font-size: 17px; }
    .nbx-tools { flex-direction: column; }
    .nbx-tools select { width: 100%; }
    .nbx-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .nbx-chips button { flex: none; }
    .nbx-chips-static { flex-wrap: wrap; overflow: visible; }
    .nbx-doc-photo img { width: 82px; height: 118px; }
    .nbx-doc-foot .nbx-btn { width: 100%; }
}

/* ───────── پنل پزشک / مدیر مرکز ───────── */
.nbx-dash-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.nbx-dash-aside { position: sticky; top: 14px; }
.nbx-side { background: #fff; border: 1px solid var(--nbx-line); border-radius: var(--nbx-radius); box-shadow: var(--nbx-shadow); padding: 14px 12px; max-height: calc(100vh - 28px); overflow: auto; }
.nbx-side-toggle { display: none; }
.nbx-side-profile { padding: 4px 4px 14px; border-bottom: 1px solid var(--nbx-line); margin-bottom: 10px; }
.nbx-side-id { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nbx-side-id b { display: block; font-size: 14px; }
.nbx-side-id small { color: var(--nbx-muted); font-size: 11.5px; }
.nbx-side-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--nbx-blue-soft); color: var(--nbx-blue); display: grid; place-items: center; overflow: hidden; }
.nbx-side-avatar img { width: 52px; height: 52px; object-fit: cover; }
.nbx-side-avatar svg { width: 24px; height: 24px; }
.nbx-progress-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--nbx-muted); margin-bottom: 6px; }
.nbx-progress-row b { color: var(--nbx-ink); }
.nbx-bar { height: 6px; background: #e7edf5; border-radius: 99px; overflow: hidden; }
.nbx-bar i { display: block; height: 100%; background: var(--nbx-blue); border-radius: 99px; }
.nbx-side-hint { font-size: 11.5px; color: var(--nbx-muted); line-height: 2; margin: 10px 0 12px; }
.nbx-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d5e3f5; color: var(--nbx-blue) !important; background: #fff; border-radius: 10px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nbx-btn-outline:hover { border-color: var(--nbx-blue); }
.nbx-btn-outline.sm { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.nbx-btn-outline svg { width: 14px; height: 14px; }
.nbx-side-profile > .nbx-btn-outline { width: 100%; margin-top: 4px; }
.nbx-block { display: flex; width: 100%; }
.nbx-side-nav a, .nbx-side-logout button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #3b4659; font-size: 13px; }
.nbx-side-nav a svg, .nbx-side-logout svg { width: 18px; height: 18px; color: #6b7a90; }
.nbx-side-nav a:hover { background: #f3f7fd; color: var(--nbx-blue); }
.nbx-side-nav a.on { background: var(--nbx-blue-soft); color: var(--nbx-blue); font-weight: 800; }
.nbx-side-nav a.on svg { color: var(--nbx-blue); }
.nbx-side-nav h6 { margin: 14px 12px 4px; font-size: 11px; color: #9aa4b5; font-weight: 600; }
.nbx-count { margin-inline-start: auto; background: var(--nbx-blue); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 20px; }
.nbx-side-logout { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--nbx-line); }
.nbx-side-logout button { width: 100%; background: none; border: 0; color: #d9363e; font-family: inherit; cursor: pointer; }
.nbx-side-logout button svg { color: #d9363e; }
.nbx-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.nbx-dash-head h1 { font-size: 24px; font-weight: 800; margin: 2px 0 6px; }
.nbx-dash-head p { margin: 0; color: var(--nbx-muted); font-size: 13px; }
.nbx-crumb-mini { font-size: 11.5px; color: var(--nbx-muted); }
.nbx-help { background: #fff; border: 1px solid var(--nbx-line); border-right: 4px solid var(--nbx-blue); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 12.5px; color: #4b5668; line-height: 2.1; }
.nbx-help ul { margin: 0; padding-inline-start: 18px; }
.nbx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.nbx-tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 108px; padding: 18px 22px 18px 44px; border-radius: 16px; color: #fff !important; background: #1b2b55; box-shadow: 0 10px 24px rgba(23, 41, 84, .14); }
.nbx-tile.primary { background: linear-gradient(110deg, #1075ec 0%, #3d8ff5 100%); }
.nbx-tile-chev { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 14px !important; height: 14px !important; color: #fff; opacity: .85; }
.nbx-tile b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.nbx-tile small { color: rgba(255, 255, 255, .82); font-size: 12px; }
.nbx-tile-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.nbx-tile-icon svg { width: 22px; height: 22px; color: #fff; }
.nbx-dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.nbx-dash-wide, .nbx-dash-narrow { display: grid; gap: 18px; min-width: 0; }
.nbx-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nbx-summary { display: flex; gap: 24px; background: var(--nbx-bg); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--nbx-muted); margin-bottom: 12px; }
.nbx-summary b { color: var(--nbx-ink); margin-inline-start: 6px; }
.nbx-table-wrap { overflow-x: auto; }
.nbx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nbx-table th { background: var(--nbx-bg); color: var(--nbx-muted); font-weight: 700; font-size: 12px; text-align: right; padding: 11px 12px; }
.nbx-table td { padding: 12px; border-bottom: 1px solid var(--nbx-line); vertical-align: middle; text-align: right; }
.nbx-table td small { display: block; color: var(--nbx-muted); font-size: 11px; }
.nbx-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.nbx-tag { display: inline-block; background: var(--nbx-blue-soft); color: var(--nbx-blue); border-radius: 99px; padding: 2px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.nbx-tag.ok { background: var(--nbx-green-soft); color: var(--nbx-green); }
.nbx-tag.warn { background: #fff4df; color: #986000; }
.nbx-tag.muted { background: #eef2f6; color: #5d6d80; }
.nbx-manage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nbx-manage-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 80px; padding: 12px; text-align: center; border: 1px solid var(--nbx-line); border-radius: 12px; background: #fafcff; color: var(--nbx-ink); font-size: 12.5px; font-weight: 700; }
.nbx-manage-grid a:hover { border-color: #b9d5fb; color: var(--nbx-blue); }
.nbx-manage-grid svg { width: 20px; height: 20px; color: var(--nbx-blue); }
.nbx-wallet-label { display: flex; align-items: center; gap: 6px; color: var(--nbx-muted); font-size: 12.5px; }
.nbx-wallet-amount { margin: 12px 0 14px; }
.nbx-wallet-amount b { font-size: 22px; font-weight: 800; }
.nbx-wallet-amount small { color: var(--nbx-muted); }
.nbx-kv { margin: 0 0 14px; }
.nbx-kv > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 5px 0; }
.nbx-kv dt { color: var(--nbx-muted); }
.nbx-kv dd { margin: 0; font-weight: 800; }
.nbx-cap-row { margin-bottom: 12px; }
.nbx-cap-row > div:first-child { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.nbx-cap-row small { color: var(--nbx-muted); }
.nbx-cap-row.today span { color: var(--nbx-blue); font-weight: 800; }
.nbx-alert { background: var(--nbx-blue-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.nbx-alert.error { background: #fff0ef; color: #b42318; }
.nbx-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nbx-stat-row > div { background: var(--nbx-bg); border-radius: 12px; padding: 12px; text-align: center; }
.nbx-stat-row b { display: block; font-size: 20px; color: var(--nbx-blue); }
.nbx-stat-row span { font-size: 11.5px; color: var(--nbx-muted); }

@media (max-width: 1200px) {
    .nbx-dash-cols { grid-template-columns: minmax(0, 1fr); }
    .nbx-dash-narrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .nbx-dash-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .nbx-dash-aside { position: static; }
    .nbx-side-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border: 1px solid var(--nbx-line); background: #fff; border-radius: 12px; font: inherit; font-weight: 700; color: var(--nbx-ink); cursor: pointer; }
    .nbx-side-toggle svg { width: 18px; height: 18px; }
    .nbx-side { max-height: none; margin-top: 10px; }
    .nbx-side.closed { display: none; }
}
@media (max-width: 640px) {
    .nbx-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .nbx-tile { min-height: 84px; padding: 14px 16px 14px 36px; }
    .nbx-tile b { font-size: 15px; }
    .nbx-dash-narrow { grid-template-columns: minmax(0, 1fr); }
    .nbx-manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nbx-dash-head { flex-direction: column; }
    .nbx-dash-head h1 { font-size: 21px; }
    .nbx-card-head { flex-wrap: wrap; }
    /* جدول به کارت در موبایل */
    .nbx-table thead { display: none; }
    .nbx-table, .nbx-table tbody, .nbx-table tr, .nbx-table td { display: block; width: 100%; }
    .nbx-table tr { border: 1px solid var(--nbx-line); border-radius: 12px; padding: 6px 10px; margin-bottom: 10px; }
    .nbx-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
    .nbx-table td::before { content: attr(data-label); color: var(--nbx-muted); font-size: 11.5px; flex: none; }
    .nbx-table td > b, .nbx-table td > small { text-align: left; }
    .nbx-actions { justify-content: flex-end; }
    .nbx-stat-row b { font-size: 17px; }
}
.nbx-table td > div { min-width: 0; }
@media (max-width: 640px) { .nbx-table td > div { text-align: left; } }
.nbx-dash-main .nbx-legacy { background: #fff; border: 1px solid var(--nbx-line); border-radius: var(--nbx-radius); box-shadow: var(--nbx-shadow); padding: 20px 8px; margin: 0; }
.nbx-dash-main .nbx-legacy table { width: 100%; }
.nbx-side .nbx-side-logout button { background: none !important; background-image: none !important; box-shadow: none !important; color: #d9363e !important; height: auto; min-height: 40px; justify-content: flex-start; font-size: 13px; font-weight: 600; }
.nbx-side .nbx-side-logout button:hover { background: #fff4f4 !important; }

/* ───────── پاپ‌آپ انتخاب شهر (تصویر مرجع) ───────── */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nbx-cm-wrap { background: rgb(60 66 80 / 55%); font-family: devix, serif; }
.nbx-cm { width: 100%; max-width: 750px; max-height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgb(0 0 0 / 22%); padding: 0 20px 14px; color: #222; }
.nbx-cm-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 14px; border-bottom: 1px solid #e9ecf1; }
.nbx-cm-head h2 { font-size: 17px; font-weight: 800; margin: 0; }
.nbx-cm-close { border: 0; background: none; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: #666; border-radius: 8px; padding: 0; }
.nbx-cm-close:hover { background: #f2f4f7; }
.nbx-cm-close svg { width: 20px; height: 20px; }
.nbx-cm-search { display: block; margin: 20px 0 14px; }
.nbx-cm-search input { width: 100%; height: 56px; border: 2px solid #4a7cf3; border-radius: 10px; padding: 0 16px; font: inherit; font-size: 15px; outline: none; background: #fff; color: #222; }
.nbx-cm-search input::placeholder { color: #9aa0aa; }
.nbx-cm-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.nbx-cm-all { height: 48px; padding: 0 18px; border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; font: inherit; font-weight: 800; font-size: 14px; color: #333; cursor: pointer; }
.nbx-cm-all:hover { border-color: var(--nbx-blue); color: var(--nbx-blue); }
.nbx-cm-current { font-size: 13px; color: #6b7380; }
.nbx-cm-back { display: flex; align-items: center; gap: 6px; border: 0; background: var(--nbx-blue-soft); color: var(--nbx-blue); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; cursor: pointer; margin: 4px 0 6px; }
.nbx-cm-back[hidden] { display: none; }
.nbx-cm-back svg { width: 16px; height: 16px; }
.nbx-cm-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; min-height: 120px; overscroll-behavior: contain; }
.nbx-cm-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; background: none; padding: 11px 4px; font: inherit; font-size: 15px; color: #333; cursor: pointer; text-align: right; border-radius: 8px; }
.nbx-cm-list button:hover, .nbx-cm-list button:focus-visible { background: #f5f8fd; color: var(--nbx-blue); outline: none; }
.nbx-cm-list button small { color: #9aa0aa; font-size: 12px; margin-inline-start: 6px; }
.nbx-cm-list svg { width: 18px; height: 18px; color: #555; flex: none; }
.nbx-cm-empty { text-align: center; color: #888; padding: 20px 0; margin: 0; }
.nbx-cm-form { margin: 0; text-align: center; }
.nbx-cm .nbx-cm-skip { background: none !important; background-image: none !important; color: #7b8698 !important; border: 0; box-shadow: none !important; font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; width: auto; height: auto; }
@media (max-width: 575px) {
    .nbx-cm-wrap { align-items: flex-end; padding: 0; }
    .nbx-cm { max-width: none; border-radius: 18px 18px 0 0; max-height: 88vh; padding: 0 16px 12px; }
    .nbx-cm-search input { height: 50px; }
    .nbx-cm-all { height: 44px; }
}

/* ───────── نوار جستجو (تصویر مرجع) ───────── */
.nbx-search-form { margin: 22px auto 10px; max-width: 1000px; font-family: devix, serif; }
.nbx-sbar { display: flex; align-items: center; height: 60px; background: #fff; border: 1px solid #dfe3ea; border-radius: 12px; padding: 0 6px 0 4px; box-shadow: 0 4px 18px rgb(28 52 84 / 5%); }
.nbx-sbar:focus-within { border-color: #9cc3f7; box-shadow: 0 0 0 3px #e8f2ff; }
.nbx-sbar-go { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none !important; background-image: none !important; box-shadow: none !important; color: #333 !important; cursor: pointer; padding: 0; }
.nbx-sbar-go svg { width: 22px; height: 22px; }
.nbx-sbar input[type=search] { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: #222; padding: 0 4px; }
.nbx-sbar input[type=search]::placeholder { color: #8a8f99; }
.nbx-sbar input[type=search]::-webkit-search-cancel-button { display: none; }
.nbx-sbar-city { flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border: 0; border-right: 1px solid #e1e5eb; border-radius: 0; background: none !important; background-image: none !important; box-shadow: none !important; color: #222 !important; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; max-width: 46%; }
.nbx-sbar-city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbx-sbar-city svg { width: 20px; height: 20px; flex: none; }
.nbx-sfilters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.nbx-sfilters select { flex: 1 1 180px; height: 44px; border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; padding: 0 12px; font: inherit; font-size: 13px; color: #333; }
.nbx-sfilters .nbx-btn { height: 44px; padding: 0 26px; }
.nbx-recent { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.nbx-recent[hidden] { display: none; }
.nbx-recent > b { flex: none; font-size: 14px; color: #333; }
.nbx-recent-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nbx-recent-chips::-webkit-scrollbar { display: none; }
.nbx-recent-chips a { flex: none; background: #efefef; color: #555; border-radius: 99px; padding: 5px 14px; font-size: 13px; white-space: nowrap; }
.nbx-recent-chips a:hover { background: #e4ebf6; color: var(--nbx-blue); }
@media (max-width: 575px) {
    .nbx-search-form { margin-top: 14px; }
    .nbx-sbar { height: 52px; }
    .nbx-sbar input[type=search] { font-size: 14px; }
    .nbx-sbar-city { font-size: 13px; padding: 0 10px 0 6px; }
    .nbx-recent { flex-direction: column; align-items: flex-start; gap: 8px; }
    .nbx-recent-chips { width: 100%; }
    .nbx-sfilters select { flex-basis: calc(50% - 5px); }
    .nbx-sfilters .nbx-btn { flex: 1 1 100%; }
}

/* ───────── منوی دسکتاپ/موبایل: برچسب و موارد مخصوص هر حالت ───────── */
.nb-mobile-label { display: none; }
.menu-mobile .nb-mobile-label { display: inline; }
.menu-mobile .nb-desktop-label { display: none; }
.menu-mobile .nb-desktop-only { display: none !important; }
.nbx-menu-ad { display: none; }
.nbx-msearch { display: none; }

@media (max-width: 991px) {
    /* ۱) هدر موبایل با اسکرول ثابت می‌ماند */
    header.header { position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .2s; }
    header.header.nbx-scrolled { box-shadow: 0 6px 18px rgb(28 52 84 / 10%); }
    /* ۱۴) جستجوی هدر موبایل در یک ردیف با شهر در انتها؛ دکمه شهر هدر حذف */
    .nbx-msearch { display: block; padding: 0 0 10px; margin: 0; }
    .nbx-msearch .nbx-sbar { height: 46px; border-radius: 12px; box-shadow: none; background: #f5f7fb; border-color: #e6eaf0; }
    .nbx-msearch .nbx-sbar input[type=search] { font-size: 13.5px; }
    .nbx-msearch .nbx-sbar-go { width: 40px; height: 40px; }
    .nbx-msearch .nbx-sbar-go svg { width: 19px; height: 19px; }
    .nbx-msearch .nbx-sbar-city { font-size: 12.5px; height: 30px; }
    .nbx-msearch .nbx-sbar-city svg { width: 17px; height: 17px; }
    .Log-Sign .nb-city-chip { display: none !important; }
    /* ۹) تبلیغ بالای منوی کشویی */
    .bazsho .nbx-menu-ad { display: block; margin: 12px 12px 4px; border-radius: 12px; overflow: hidden; }
    .bazsho .nbx-menu-ad img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
}

@media (max-width: 768px) {
    /* ۱۰) منوی کشویی میانبرهای پایین صفحه را نمی‌پوشاند */
    .bazsho, .back-c { height: auto !important; bottom: 65px; }
    .bazsho { box-shadow: -8px 0 24px rgb(0 0 0 / 12%); }
    .devix-mobile-nav { z-index: 10001; }
}

@media (max-width: 575px) {
    /* ۱۳) فونت موبایل کمی بزرگ‌تر: کف اندازه ریشه ۱۲px ⇐ ۱۴px (همه اندازه‌های rem قالب) */
    html { font-size: 14px; }

    /* ۲) تخصص‌ها: فقط ۴ مورد در دو ردیف، کوچک و داخل یک کادر */
    .categories.nbx-cats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible !important; background: #fff; border: 1px solid var(--nbx-line); border-radius: 16px; padding: 10px; box-shadow: var(--nbx-shadow); }
    .categories.nbx-cats > .category:nth-child(n+4):not(.ViewAll) { display: none !important; }
    .categories.nbx-cats > .category { width: auto !important; min-width: 0 !important; margin: 0 !important; flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px 10px !important; min-height: 0 !important; height: auto !important; border-radius: 12px; background: #f6f9ff; box-shadow: none !important; }
    .categories.nbx-cats > .category .dot { display: none; }
    .categories.nbx-cats > .category .category-icon { width: 38px !important; height: 38px !important; min-width: 38px; margin: 0 !important; flex: none; }
    .categories.nbx-cats > .category .category-icon img { width: 38px; height: 38px; }
    .categories.nbx-cats > .category h3 { margin: 0 !important; font-size: 1rem !important; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ۱۱) کادر مراکز درمانی جدا از بنر بالا و شکیل‌تر */
    .nbx-mc-wrap { margin-top: 22px; }
    .nbx-mc-wrap .medical-centers { background: #fff; border: 1px solid var(--nbx-line); border-radius: 16px; padding: 16px 12px; box-shadow: var(--nbx-shadow); }

    /* ۱۲) ارتفاع بنرهای تبلیغاتی صفحه اول کوتاه‌تر */
    .baner-one img, .baner-two img { width: 100%; height: auto; aspect-ratio: 2.4 / 1; object-fit: cover; border-radius: 14px; }
}
@media (max-width: 575px) { .row:has(.nbx-cats) .doctors-head { margin: 14px 0 10px !important; padding: 0 !important; } .row:has(.nbx-cats) + .container, .row:has(.nbx-cats) { margin-bottom: 0; } }
