/* =========================================================
   Sara Nail Arts — استایل مینیمال سفید / متن تیره / RTL
   ========================================================= */

/* ---------- فونت‌ها ---------- */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('../fonts/Estedad-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('../fonts/Estedad-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* ---------- توکن‌ها ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --card: #ffffff;
    --text: #1f2430;
    --muted: #6f7683;
    --line: #e9e9ee;
    --accent: #b76e79;
    --accent-soft: #f8f0f1;
    --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
    --ok: #2e9e6b;
    --warn: #d99a1c;
    --err: #d64545;
    --radius: 14px;
    --shadow: 0 2px 16px rgba(20, 20, 40, .05);
    --wa: #25d366;
}

/* ---------- تم‌های رنگی (همه ملایم) ---------- */
/* کرم گرم */
html[data-theme="cream"] {
    --bg: #faf6ef;
    --bg-soft: #f3ede2;
    --card: #fffdf8;
    --text: #33302a;
    --muted: #857c6d;
    --line: #e8e0d2;
}
/* سبز مریم‌گلی */
html[data-theme="sage"] {
    --bg: #f7faf7;
    --bg-soft: #eef3ee;
    --card: #ffffff;
    --text: #26302b;
    --muted: #71817a;
    --line: #dfe8e1;
}
/* آبی مه‌آلود */
html[data-theme="sky"] {
    --bg: #f7fafc;
    --bg-soft: #eef3f7;
    --card: #ffffff;
    --text: #252c33;
    --muted: #6f7d8a;
    --line: #dfe6ec;
}
/* یاسی ملایم */
html[data-theme="lilac"] {
    --bg: #faf9fc;
    --bg-soft: #f2f0f7;
    --card: #ffffff;
    --text: #2a2733;
    --muted: #7a7488;
    --line: #e5e1ee;
}
/* شب آرام — تیره ملایم */
html[data-theme="night"] {
    --bg: #171a1f;
    --bg-soft: #21252c;
    --card: #1e2229;
    --text: #e7e5e1;
    --muted: #9aa2ad;
    --line: #2c313a;
    --shadow: 0 2px 18px rgba(0, 0, 0, .35);
    --accent-soft: color-mix(in srgb, var(--accent) 20%, #1e2229);
}
html[data-theme="night"] .tbl tr:hover td { background: var(--bg-soft); }
html[data-theme="night"] .badge.pending,
html[data-theme="night"] .badge.confirmed,
html[data-theme="night"] .badge.done,
html[data-theme="night"] .badge.canceled,
html[data-theme="night"] .badge.salon,
html[data-theme="night"] .badge.dup { filter: saturate(.75) brightness(.92); }
html[data-theme="night"] .cal-day { border-color: var(--line); }
html[data-theme="night"] input[type=text], html[data-theme="night"] input[type=tel],
html[data-theme="night"] input[type=number], html[data-theme="night"] input[type=password],
html[data-theme="night"] input[type=time], html[data-theme="night"] input[type=date],
html[data-theme="night"] input[type=email], html[data-theme="night"] select,
html[data-theme="night"] textarea { background: var(--bg-soft); border-color: var(--line); color: var(--text); }
html[data-theme="night"] .btn.ghost { background: var(--card); color: var(--text); }
html[data-theme="night"] .btn.danger { background: var(--card); }
html[data-theme="night"] .jcal-mini-head button { background: var(--card); }
html[data-theme="night"] .error-box { background: color-mix(in srgb, var(--err) 12%, var(--card)); border-color: color-mix(in srgb, var(--err) 35%, var(--card)); }
html[data-theme="night"] .wa-panel { background: color-mix(in srgb, var(--wa) 7%, var(--card)); }
html { font-size: 16px; }
html.size-s { font-size: 14.5px; }
html.size-l { font-size: 17.5px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}
body.font-estedad { font-family: 'Estedad', Tahoma, sans-serif; }
body.font-shabnam { font-family: 'Shabnam', Tahoma, sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: .4em 0; }

/* ---------- چیدمان کلی ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 232px; flex: 0 0 232px;
    border-left: 1px solid var(--line);
    background: var(--bg);
    padding: 20px 14px;
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto; /* روی نمایشگرهای کوتاه هم «خروج» همیشه در دسترس است */
}
.main { flex: 1; min-width: 0; padding: 22px 26px 90px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.topbar h1 { font-size: 1.25rem; }

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.logo-fallback {
    width: 38px; height: 38px; border-radius: 10px; background: var(--accent);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.brand b { font-size: 1rem; line-height: 1.4; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px;
    color: var(--text); font-weight: 500; font-size: .95rem;
}
.nav-item svg { width: 20px; height: 20px; stroke: var(--muted); flex: 0 0 auto; }
.nav-item:hover { background: var(--bg-soft); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active svg { stroke: var(--accent); }
.sidebar .spacer { flex: 1; }
.side-user { border-top: 1px solid var(--line); padding-top: 12px; font-size: .85rem; color: var(--muted); }
.side-user b { display: block; color: var(--text); font-size: .95rem; }

/* ---------- ناوبری موبایل ---------- */
.bottom-nav { display: none; }
@media (max-width: 1023px) {
    .sidebar { display: none; }
    .main { padding: 16px 14px 96px; }
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; width: 100%;
        background: var(--card); border-top: 1px solid var(--line);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        z-index: 90; will-change: transform;
        box-shadow: 0 -2px 12px rgba(0,0,0,.05);
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: .66rem; color: var(--muted); padding: 6px 2px; border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav a svg { width: 22px; height: 22px; stroke: var(--muted); }
    .bottom-nav a.active { color: var(--accent); }
    .bottom-nav a.active svg { stroke: var(--accent); }
    .bottom-nav a.nav-logout { color: var(--err); }
    .bottom-nav a.nav-logout svg { stroke: var(--err); }
}

/* ---------- کارت‌ها و آمار ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card > h2 { font-size: 1.02rem; margin-bottom: 12px; }
.card .sub { color: var(--muted); font-size: .85rem; margin-top: -10px; margin-bottom: 10px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .lbl { color: var(--muted); font-size: .8rem; }
.stat .val { font-size: 1.3rem; font-weight: 700; margin-top: 2px; }
.stat .val small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.stat.accent { border-color: var(--accent); background: var(--accent-soft); }
.stat.accent .val, .stat.accent .lbl { color: var(--accent); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--accent); color: #fff; border: 1px solid var(--accent);
    border-radius: 11px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .9rem;
    cursor: pointer; text-decoration: none; transition: filter .15s;
}
.btn:hover { filter: brightness(.94); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.danger { background: var(--card); color: var(--err); border-color: #f0cfcf; }
.btn.danger:hover { background: #fdf5f5; }
.btn.ok-btn { background: var(--ok); border-color: var(--ok); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: .8rem; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 1rem; border-radius: 13px; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- فرم‌ها ---------- */
label.fld { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.fld .hint { font-weight: 400; color: var(--muted); font-size: .75rem; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=time], input[type=date], input[type=email], select, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 11px;
    padding: 10px 13px; font: inherit; color: var(--text); background: var(--card);
    outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-row { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar input { flex: 1; }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); }
.tbl th { background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: .78rem; text-align: right; padding: 10px 12px; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fcfcfd; }
.tbl .num { white-space: nowrap; }
.tbl .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- نشان وضعیت ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge.pending   { background: #fdf4e0; color: #9a6b06; }
.badge.confirmed { background: #e5f6ee; color: #1d7a4f; }
.badge.done      { background: #eeeef1; color: #555c68; }
.badge.canceled  { background: #fdeaea; color: #b23a3a; }
.badge.salon     { background: #eef2fd; color: #3b5bdb; }
.badge.dup       { background: #fdf4e0; color: #9a6b06; margin-inline-start: 6px; }

/* ---------- تقویم شمسی ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-size: 1.1rem; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: .72rem; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal-day {
    position: relative; min-height: 62px; border: 1px solid var(--line); border-radius: 12px;
    padding: 6px 8px; font-size: .85rem; text-decoration: none; color: var(--text); display: block;
    background: var(--card); transition: border-color .12s;
}
.cal-day:hover { border-color: var(--accent); }
.cal-day .d { font-weight: 700; }
.cal-day.off { background: var(--bg-soft); color: #b6bac2; }
.cal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day.holiday { background: color-mix(in srgb, #c0392b 6%, var(--card)); }
.cal-day.holiday .d { color: #c0392b; }
.hol-tag { display: block; font-size: .58rem; color: #c0392b; line-height: 1.5; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hol-lg { color: #c0392b; }
.cal-dots { position: absolute; bottom: 6px; right: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.pending { background: var(--warn); }
.dot.confirmed { background: var(--ok); }
.dot.done { background: #b0b4bd; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; color: var(--muted); margin-top: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
    .cal-grid { gap: 4px; }
    .cal-day { min-height: 48px; padding: 4px 6px; border-radius: 9px; }
    .cal-day .d { font-size: .78rem; }
}

/* ---------- ردیف نوبت ---------- */
.app-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); }
.app-row:first-of-type { border-top: 0; }
.app-time { flex: 0 0 auto; text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 6px 10px; min-width: 64px; }
.app-time b { display: block; font-size: 1rem; }
.app-time .dur { font-size: .68rem; color: var(--muted); }
.app-info { flex: 1; min-width: 0; }
.app-info .name { font-weight: 700; }
.app-info .meta { color: var(--muted); font-size: .8rem; }
.app-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 640px) {
    .app-row { flex-wrap: wrap; }
    .app-side { flex-direction: row; width: 100%; justify-content: flex-start; }
}

/* ---------- واتساپ پنل ---------- */
.wa-panel {
    border: 1px dashed var(--wa); background: #f2fbf5; border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 14px;
}
.wa-panel .msg-preview {
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 14px; font-size: .85rem; white-space: pre-wrap; margin: 10px 0;
}

/* ---------- تقویم ورودی (پاپ‌آپ) ---------- */
.jcal-pop {
    position: absolute; z-index: 80; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,.13); padding: 12px; width: 292px;
    display: none;
}
.jcal-pop.open { display: block; }
.jcal-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.jcal-mini-grid button {
    border: 0; background: none; font: inherit; font-size: .8rem; padding: 7px 0; border-radius: 8px; cursor: pointer;
}
.jcal-mini-grid button:hover { background: var(--bg-soft); }
.jcal-mini-grid button.sel { background: var(--accent); color: #fff; font-weight: 700; }
.jcal-mini-grid button:disabled { color: #c8ccd4; cursor: not-allowed; }
.jcal-mini-grid .dow { font-size: .68rem; color: var(--muted); cursor: default; }
.jcal-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.jcal-mini-head .t { font-weight: 700; font-size: .9rem; }
.jcal-mini-head button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: .9rem; }

/* ---------- انتخاب‌گر مشتری با فیلتر زنده ---------- */
.client-picker { position: relative; }
.client-picker input[type=text] { width: 100%; }
.client-picker .slist {
    display: none; position: absolute; z-index: 70; top: calc(100% + 4px); inset-inline: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 36px rgba(0,0,0,.14);
    max-height: 280px; overflow-y: auto;
}
.client-picker .sitem { padding: 9px 14px; font-size: .88rem; cursor: pointer; border-bottom: 1px solid var(--bg-soft); }
.client-picker .sitem:last-child { border-bottom: 0; }
.client-picker .sitem:hover { background: var(--accent-soft); }
.client-picker .sitem.none { color: var(--muted); cursor: default; }
.client-picker .sitem.none:hover { background: none; }

/* ---------- رزرو عمومی ---------- */
.pub-wrap { max-width: 560px; margin: 0 auto; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--accent); }
.svc-pick { display: flex; flex-direction: column; gap: 10px; }
.svc-pick label {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
}
.svc-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.svc-pick b { font-size: .95rem; }
.svc-pick .meta { color: var(--muted); font-size: .78rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot-grid button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 0; font: inherit; cursor: pointer; }
.slot-grid button:hover { border-color: var(--accent); }
.slot-grid button.sel { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.slot-empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 18px 0; }
.slot-grid button small { display: block; color: var(--muted); font-size: .68rem; margin-top: 2px; }
.slot-grid button.sel small { color: #fff; opacity: .9; }

/* ---------- تابلوی چیدمان روز ---------- */
.day-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.day-stats > div {
    flex: 1; min-width: 110px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
}
.day-stats .lbl { font-size: .72rem; color: var(--muted); }
.day-stats b { font-size: 1rem; }
.app-row.same-day { border-inline-start: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 6%, var(--card)); border-radius: 10px; }
.same-day-time { color: var(--ok); }
.arrange-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    border-inline-start: 4px solid var(--accent);
}
.suggest-panel { border-inline-start: 4px solid var(--warn); }
.mode-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-pill {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
    border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: .82rem;
}
.mode-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chk-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.chk-row label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; cursor: pointer; }

.day-profile-row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.day-profile-row select { width: auto; min-width: 170px; padding: 7px 11px; font-size: .85rem; }

/* ---------- پیام‌های شناور ---------- */
.flashes { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(480px, 92vw); }
.flash { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--ok); border-radius: 12px; padding: 11px 16px; margin-bottom: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.1); font-size: .88rem; animation: slidein .25s ease; }
.flash.error { border-inline-start-color: var(--err); }
.flash.warn { border-inline-start-color: var(--warn); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* ---------- تب‌های تنظیمات ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; color: var(--text); font-size: .88rem; font-weight: 500; }
.tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- فاکتور چاپی ---------- */
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.inv-total { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
@media print {
    .sidebar, .bottom-nav, .topbar, .no-print, .flashes { display: none !important; }
    .main { padding: 0; }
    .card { border: none; box-shadow: none; }
}

/* ---------- متفرقه ---------- */
.muted { color: var(--muted); font-size: .85rem; }
.small { font-size: .78rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.empty .big { font-size: 2rem; margin-bottom: 6px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.w100 { width: 100%; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 18px; }
.login-card { width: min(400px, 100%); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); background: var(--card); }
.login-card .brandline { text-align: center; margin-bottom: 18px; }
.login-card .brandline .logo-fallback { margin: 0 auto 10px; width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
.error-box { background: #fdf1f1; border: 1px solid #f2d4d4; color: #a33; padding: 10px 14px; border-radius: 10px; font-size: .85rem; margin-bottom: 12px; }

/* ---------------- پرتال مشتری: بج‌های وضعیت و امکانات ---------------- */
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.chip.ok   { background: #e5f6ee; color: #1d7a4f; }
.chip.wait { background: #fdf4e0; color: #9a6b06; }
.chip.off  { background: #fdeaea; color: #b23a3a; }
html[data-theme="night"] .chip.ok   { background: color-mix(in srgb, #1d7a4f 28%, var(--card)); color: #9fe0bf; }
html[data-theme="night"] .chip.wait { background: color-mix(in srgb, #9a6b06 30%, var(--card)); color: #f2d492; }
html[data-theme="night"] .chip.off  { background: color-mix(in srgb, #b23a3a 30%, var(--card)); color: #f2b8b8; }
.disabled-link { opacity: .45; pointer-events: none; }
#cap-img { height: 44px; display: block; }
.pub-step .actions { display: flex; gap: 8px; }
.portal-periods { margin-bottom: 8px; }
