/* ==========================================================================
   باسلام بات — application components (extends salambot.css)
   ========================================================================== */

.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.chip-muted { background: var(--muted-bg); color: var(--muted); }
.link { color: var(--o-600); font-weight: 700; }
.link:hover { text-decoration: underline; }
.ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.stack { display: grid; gap: 22px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.small { font-size: 12.5px; }

/* ---------- Flash & toast ---------- */
.flash-stack { display: grid; gap: 10px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.alert [data-lucide] { margin-top: 2px; }
.alert-success { background: var(--green-bg); color: #0B6B35; border-color: #C9EDD8; }
.alert-error { background: var(--red-bg); color: #A61E21; border-color: #F7CFCF; }
.alert-info { background: var(--blue-bg); color: #1D47B3; border-color: #D4E0FF; }
.alert-warning { background: var(--amber-bg); color: #7A5400; border-color: #F5E2A8; }
.alert .alert-close { margin-inline-start: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; }
.toasts { position: fixed; bottom: 20px; left: 20px; z-index: 100; display: grid; gap: 10px; max-width: min(380px, calc(100% - 40px)); }
.toast { background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: slidein .3s ease both; }
.toast.error { background: #A61E21; }
.toast.success { background: #0B6B35; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.fgroup > label, .flabel { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 8px; color: var(--ink); }
.input, textarea.input, select.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s; outline: 0;
}
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.9; resize: vertical; }
textarea.input.code, .input.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; direction: ltr; text-align: left; }
.input:focus { border-color: var(--o-400); box-shadow: 0 0 0 4px rgba(255, 106, 0, .12); }
.input[readonly] { background: var(--surface-2); }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { margin-top: 5px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.otp-input { letter-spacing: 10px; text-align: center; font-size: 22px; font-weight: 900; direction: ltr; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
fieldset.box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0; }
fieldset.box legend { padding: 0 8px; font-weight: 800; font-size: 14px; color: var(--o-600); }

/* ---------- Auth layout ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-card h1 { font-size: 26px; font-weight: 900; margin: 26px 0 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-side { background: var(--grad); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 40px; color: #fff; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .16; z-index: -1; background-image: radial-gradient(#fff 1.4px, transparent 1.4px); background-size: 22px 22px; }
.auth-side::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .14); bottom: -220px; left: -160px; z-index: -1; }
.auth-side .inner { max-width: 420px; }
.auth-side .bot-big { width: 150px; height: 150px; border-radius: 44px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; margin-bottom: 28px; backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.auth-side .bot-big svg { width: 100px; height: 100px; }
.auth-side h2 { color: #fff; font-size: 30px; font-weight: 900; }
.auth-side p { color: #FFE8D5; margin-top: 10px; font-size: 16px; }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.otp-row { display: flex; gap: 8px; align-items: stretch; }
.otp-row .input { flex: 1; }
.dev-code { background: var(--amber-bg); color: #7A5400; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; font-weight: 900; }
.page-head p { color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input { height: 40px; width: auto; min-width: 200px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-line a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs-line a.on { color: var(--o-600); border-color: var(--o-500); }
.tabs-line a .count { background: var(--o-50); color: var(--o-600); border-radius: 99px; padding: 0 8px; font-size: 12px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.pagination a:hover { border-color: var(--o-300); color: var(--o-600); }
.pagination .on { background: var(--grad); color: #fff; border: 0; }
.pagination .gap { border: 0; background: none; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { width: 72px; height: 72px; border-radius: 22px; background: var(--o-50); color: var(--o-500); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .ic [data-lucide] { width: 32px; height: 32px; }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { margin-bottom: 18px; }

/* ---------- Product image thumbs ---------- */
.pimg { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--o-50); border: 1px solid var(--line); flex-shrink: 0; }
.prod a:hover { color: var(--o-600); }
.table td.wrap { white-space: normal; min-width: 240px; }
.table .num { font-variant-numeric: tabular-nums; }

/* ---------- Connect booth hero ---------- */
.connect {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 28px;
  background: linear-gradient(135deg, var(--surface), var(--o-50)); border: 1.5px dashed var(--o-300); border-radius: var(--r-lg);
}
.connect .ic { width: 70px; height: 70px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); }
.connect .ic [data-lucide] { width: 32px; height: 32px; }
.connect h3 { font-size: 18px; font-weight: 900; }
.connect p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Category picker ---------- */
.picker-search { margin: 16px 0 12px; }
.picker-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.picker-list button {
  text-align: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); display: flex; gap: 8px; align-items: center;
}
.picker-list button:hover { border-color: var(--o-300); background: var(--o-50); }
.picker-list .sug { color: var(--o-600); font-size: 11.5px; font-weight: 800; background: var(--o-100); padding: 1px 8px; border-radius: 99px; }
.cat { cursor: pointer; border: 0; font-family: inherit; }
.cat.auto { background: var(--muted-bg); color: var(--muted); }
.cat.mapped { background: var(--green-bg); color: var(--green); }

/* ---------- Rule editor (transfer settings) ---------- */
.rule-edit { display: grid; grid-template-columns: 1.3fr .8fr 1fr auto; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.rule-edit input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 8px; font-size: 13px; background: var(--surface); outline: 0; min-width: 0; }
.rule-edit input:focus { border-color: var(--o-400); }
.rule-edit .rm { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--red-bg); color: var(--red); cursor: pointer; display: grid; place-items: center; }
.rule-edit .rm [data-lucide] { width: 15px; height: 15px; }
.rule-head { display: grid; grid-template-columns: 1.3fr .8fr 1fr 32px; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 0 8px 4px; }
.price-input { width: 120px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 5px 8px; font-weight: 900; color: var(--o-600); font-size: 14px; text-align: center; }
.price-input:hover { border-color: var(--line); background: var(--surface); }
.price-input:focus { outline: 0; border-color: var(--o-400); background: var(--surface); }
.price-input.edited { background: var(--amber-bg); color: #7A5400; }

/* ---------- Transfer source results ---------- */
.src-empty { padding: 30px; text-align: center; color: var(--muted); }
.load-more { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sel-note { font-size: 13px; color: var(--muted); }
.run-table-status { display: inline-flex; align-items: center; gap: 6px; }
.err-text { color: var(--red); font-size: 12.5px; white-space: normal; display: block; max-width: 420px; }

/* ---------- Sync ---------- */
.diff { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.diff .old { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.diff .up { color: var(--red); }
.diff .down { color: var(--green); }

/* ---------- Tickets ---------- */
.msgs { display: grid; gap: 14px; }
.msg { max-width: 78%; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.msg.me { justify-self: start; border-bottom-right-radius: 6px; }
.msg.staff { justify-self: end; background: var(--o-50); border-color: var(--o-100); border-bottom-left-radius: 6px; }
.msg header { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.msg header b { color: var(--ink); }
.msg .body { white-space: pre-wrap; font-size: 14.5px; line-height: 2; overflow-wrap: anywhere; }

/* ---------- Content pages / blog ---------- */
.page-hero { padding: 64px 0 36px; text-align: center; background: linear-gradient(180deg, var(--o-50), transparent); }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.page-hero p { color: var(--muted); margin-top: 10px; }
.prose { max-width: 780px; margin: 0 auto; font-size: 16px; line-height: 2.1; color: var(--ink-3); }
.prose h2 { font-size: 22px; margin: 32px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 16px; }
.prose img { border-radius: var(--r); margin: 20px auto; }
.prose a { color: var(--o-600); font-weight: 700; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-inline-start: 4px solid var(--o-400); background: var(--o-50); border-radius: 12px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .cover { aspect-ratio: 16 / 9; background: var(--grad-soft); display: grid; place-items: center; color: var(--o-400); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { font-size: 17px; font-weight: 800; }
.post-card p { color: var(--muted); font-size: 14px; flex: 1; }
.post-card time { color: var(--muted); font-size: 12.5px; }
.post-cover { max-width: 900px; margin: 0 auto 30px; border-radius: var(--r-lg); overflow: hidden; }

.side-nav form { margin: 0; }
.side-logout { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; background: none; border: 0; color: inherit; cursor: pointer; text-align: start; }
.side-logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.me { color: inherit; }

/* ---------- Admin ---------- */
.sidebar.admin { background: var(--dark-2); }
.side-nav .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--o-500); margin-inline-start: auto; }
.checklist { display: grid; gap: 8px; }
.checklist a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.checklist a:hover { border-color: var(--o-300); }
.checklist .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.checklist .ok { background: var(--green-bg); color: var(--green); }
.checklist .no { background: var(--red-bg); color: var(--red); }
.checklist .na { background: var(--amber-bg); color: var(--amber); }
.checklist [data-lucide] { width: 15px; height: 15px; stroke-width: 3; }
.settings-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.settings-nav { display: grid; gap: 4px; position: sticky; top: 96px; }
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.settings-nav a:hover { background: var(--o-50); }
.settings-nav a.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.secret-state { font-size: 12px; font-weight: 700; color: var(--green); display: inline-flex; gap: 4px; align-items: center; }
.img-preview { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); }
.code-box { direction: ltr; font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 2px; background: var(--surface-2); border: 1px dashed var(--o-300); border-radius: 12px; padding: 12px 16px; text-align: center; word-break: break-all; }
.qr { width: 200px; height: 200px; margin: 0 auto; background: var(--surface); padding: 10px; border-radius: 16px; border: 1px solid var(--line); }
.qr img, .qr svg, .qr canvas { width: 100% !important; height: 100% !important; }
.log-ctx { direction: ltr; text-align: left; font-family: ui-monospace, Consolas, monospace; font-size: 12px; white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 10px; margin-top: 8px; max-height: 220px; overflow: auto; }
details.log summary { cursor: pointer; }

@media (max-width: 1100px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .connect { grid-template-columns: 1fr; text-align: center; }
  .connect .ic { margin: 0 auto; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .filters .input { min-width: 0; flex: 1; }
}

/* ==========================================================================
   v1.1 components
   ========================================================================== */

/* Elements that must stay white in every theme (on orange panels, QR, trust badges) */
.btn-light, .qr { background: #fff; }
:root[data-theme="dark"] .blob { opacity: .16; }
:root[data-theme="dark"] .grid-bg { opacity: .25; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blob { opacity: .16; }
  :root:not([data-theme="light"]) .grid-bg { opacity: .25; }
}

/* Theme toggle */
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--o-600); border-color: var(--o-300); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

/* Notification bell dropdown */
.notif { position: relative; }
.notif-panel {
  position: absolute; top: 50px; left: 0; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 40; display: none; overflow: hidden;
}
.notif.open .notif-panel { display: block; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--sel-bg); }
.notif-item .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--o-50); color: var(--o-600); display: grid; place-items: center; flex-shrink: 0; }
.notif-item .ic [data-lucide] { width: 17px; height: 17px; }
.notif-item b { display: block; color: var(--ink); font-size: 13.5px; }
.notif-item p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.notif-item time { color: var(--muted); font-size: 11.5px; }
.notif-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.icon-btn .count-badge { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--o-500); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

/* Onboarding checklist */
.onboard { border: 1.5px dashed var(--o-300); background: linear-gradient(135deg, var(--surface), var(--o-50)); }
.onboard-progress { height: 8px; background: var(--o-100); border-radius: 99px; overflow: hidden; margin: 6px 0 16px; }
.onboard-progress i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.onboard-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.onboard-step { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.onboard-step .st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--o-50); color: var(--o-600); font-weight: 900; font-size: 13px; }
.onboard-step.done { color: var(--muted); text-decoration: line-through; }
.onboard-step.done .st { background: var(--green); color: #fff; }
.onboard-step .st [data-lucide] { width: 15px; height: 15px; stroke-width: 3; }

/* Booth list (multi-booth) */
.booth-list { display: grid; gap: 8px; margin: 12px 0; text-align: start; }
.booth-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.booth-row.active { border-color: var(--o-300); background: var(--sel-bg); }
.booth-row .name { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; }
.booth-row .name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.booth-row form { margin: 0; }
.booth-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.booth-switch select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-weight: 700; }

/* Bulk edit bar (transfer table) */
.bulk-bar { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--sel-bg); border: 1px solid var(--o-100); margin-bottom: 12px; font-size: 13.5px; }
.bulk-bar.show { display: flex; }
.bulk-bar b { color: var(--o-600); }
.bulk-bar .input { height: 36px; width: 110px; font-size: 13px; }
.bulk-bar .sep { width: 1px; height: 24px; background: var(--line); }

/* Advanced filters */
.adv-filters { display: none; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; }
.adv-filters.show { display: flex; }
.adv-filters .fgroup { min-width: 130px; }
.adv-filters .input { height: 40px; }
.disc-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 0 7px; border-radius: 99px; margin-inline-start: 4px; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: 12px; display: block; }

/* Excel upload */
.dropzone { border: 2px dashed var(--o-300); border-radius: var(--r); padding: 26px; text-align: center; background: var(--surface-2); cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.drag { background: var(--o-50); border-color: var(--o-500); }
.dropzone [data-lucide] { width: 36px; height: 36px; color: var(--o-500); margin: 0 auto 8px; }
.dropzone b { display: block; color: var(--ink); }
.excel-errors { margin-top: 12px; max-height: 160px; overflow-y: auto; font-size: 12.5px; }

/* Watermark preview */
.wm-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wm-preview .box { width: 120px; height: 120px; border-radius: 16px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.wm-preview .box img { max-width: 90%; max-height: 90%; }

/* Subscription card */
.sub-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-card .meter { flex: 1; min-width: 160px; margin: 0; }
.plan .type-badge { position: absolute; top: 16px; left: 16px; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: var(--blue-bg); color: var(--blue); }
.plan.featured .type-badge { background: rgba(255, 255, 255, .12); color: #fff; }

/* Sync-all summary */
.sync-summary { display: none; }
.sync-summary.show { display: block; }
.sync-changes { max-height: 260px; overflow-y: auto; display: grid; gap: 6px; margin-top: 10px; }
.sync-changes div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }

.seg a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg a.on { background: var(--surface); color: var(--o-600); box-shadow: var(--shadow-sm); }

/* Reports */
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .report-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* PWA install banner */
.install-banner { display: none; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--dark); color: #fff; }
.install-banner.show { display: flex; }
.install-banner img { width: 40px; height: 40px; border-radius: 12px; }
.install-banner p { flex: 1; font-size: 13.5px; }

/* ---------- v1.2 security UI ---------- */
/* Anti-bot field: invisible and zero-size in place (an off-screen offset would widen the page in RTL) */
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; margin: -1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--line, #eee); background: #FFF6EE; flex: 0 0 auto; }
.captcha-row .input { flex: 1; min-width: 0; letter-spacing: 3px; text-align: center; }
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 8px 16px; background: #1F1A17; color: #fff; font-size: 14px; }
.imp-bar b { color: #FFB27A; }
.imp-bar form { margin: 0; }
.status-list { display: grid; gap: 8px; }
.status-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #FAF7F4); }
.status-row .st { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.status-row .st svg { width: 16px; height: 16px; }
.status-row.ok .st { background: #E7F7EE; color: #12915A; }
.status-row.warn .st { background: #FFF4DE; color: #B7791F; }
.status-row.bad .st { background: #FDECEC; color: #D14343; }
.status-row small { display: block; color: var(--muted, #8a8580); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--surface-2, #FAF7F4); }
.bulk-bar[hidden] { display: none; }
.secret-path { font-family: ui-monospace, Consolas, monospace; direction: ltr; display: inline-block; padding: 4px 10px; border-radius: 8px; background: #1F1A17; color: #FFB27A; }

/* ---------- Toggle switches (v1.2.5) ----------
   ".fgroup label { display:block }" used to override the switch layout and shrink it to 0px width. */
.fgroup label.toggle, label.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle i { display: inline-block; flex: 0 0 auto; width: 40px; height: 22px; border: 1px solid var(--line-strong); box-sizing: border-box; }
.toggle i::after { top: 2px; right: 2px; background: #fff; }
.toggle input:checked + i { border-color: var(--o-500); }
.toggle input:focus-visible + i { outline: 2px solid var(--o-300); outline-offset: 2px; }
:root[data-theme="dark"] .toggle i { background: #3a2c24; }
:root[data-theme="dark"] .toggle input:checked + i { background: var(--o-500); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toggle i { background: #3a2c24; }
  :root:not([data-theme="light"]) .toggle input:checked + i { background: var(--o-500); }
}
.toggle input:checked + i::after { transform: translateX(-18px); }

/* ---------- Mobile menu backdrop (v1.2.7): tap outside to close ---------- */
@media (max-width: 980px) {
  .app.side-open::after { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(28, 20, 16, .45); backdrop-filter: blur(2px); cursor: pointer; }
}

/* ---------- Mobile panel fixes (v1.2.8) ---------- */
@media (max-width: 980px) {
  /* Drawer: fits the *visible* screen (100dvh excludes the browser bars) and scrolls on its own */
  .sidebar { height: 100vh; height: 100dvh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .sidebar > * { flex-shrink: 0; }
  body:has(.app.side-open) { overflow: hidden; }

  /* Header: title takes the free space, buttons stay grouped at the end (the search box that did this is hidden on mobile) */
  .topbar .side-toggle + div { flex: 1 1 auto; min-width: 0; }
  .topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar > * { flex-shrink: 0; }
  .topbar .side-toggle + div { flex-shrink: 1; }
}
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 12px; height: 64px; }
  .topbar .icon-btn, .topbar .theme-toggle, .me .av { width: 38px; height: 38px; border-radius: 11px; }
  .topbar .credit-pill { height: 38px; padding: 0 10px; gap: 6px; font-size: 13px; }
  .topbar .chip { display: none; }
  .me { gap: 0; }

  /* Notifications: full-width sheet under the header instead of a box sticking out of the screen */
  .notif-panel { position: fixed; top: 72px; left: 10px; right: 10px; width: auto; max-height: min(72dvh, 560px);
    flex-direction: column; }
  .notif.open .notif-panel { display: flex; }
  .notif-list { max-height: none; flex: 1 1 auto; overscroll-behavior: contain; }
}

/* ---------- Bulk editor (v1.5) ---------- */
.bulk-grid td { vertical-align: middle; }
.bulk-grid .prod { display: flex; gap: 10px; align-items: center; }
.bulk-grid .prod img.thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.input.cell { width: 120px; height: 36px; padding: 0 10px; font-size: 14px; }
.input.cell.cell-sm { width: 80px; }
.input.cell.changed { border-color: var(--o-500); background: var(--sel-bg, #FFF3E8); font-weight: 700; }
.cmp-row td { background: var(--surface-2); }
.seg-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-radio label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.seg-radio label:has(input:checked) { border-color: var(--o-500); background: var(--sel-bg, #FFF3E8); font-weight: 700; }
.tier-row { display: grid; grid-template-columns: 22px repeat(8, minmax(70px, 1fr)); gap: 6px; align-items: center; margin-bottom: 8px; }
.tier-row .input { height: 36px; padding: 0 8px; font-size: 13px; }
@media (max-width: 980px) { .tier-row { grid-template-columns: 22px 1fr 1fr; } }
.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad, #FF6A00); transition: width .3s; }

/* ---------- Inbox (v1.6) ---------- */
/* Conversation list: one compact line per chat, dividers instead of separate cards (never stretches) */
.inbox-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.inbox-list > p { margin: 0; padding: 18px; }
.inbox-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; color: inherit; border-bottom: 1px solid var(--line); transition: background .12s; flex: none; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: var(--surface-2); }
.inbox-row.unread { background: color-mix(in srgb, var(--o-50) 55%, transparent); }
.inbox-row.unread:hover { background: var(--o-50); }
.ir-av { width: 42px; height: 42px; border-radius: 50%; background: var(--o-50); color: var(--o-600); display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.inbox-row.unread .ir-av { background: var(--o-500); color: #fff; }
.ir-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ir-top { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.ir-name { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.inbox-row.unread .ir-name { font-weight: 900; }
.ir-city { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ir-star { font-size: 12px; }
.ir-chips { display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.ir-chips .chip { font-size: 11px; padding: 1px 8px; white-space: nowrap; }
.ir-chips .chip::before { display: none; }
.ir-preview { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row.unread .ir-preview { color: var(--ink); }
.ir-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11.5px; white-space: nowrap; align-self: start; padding-top: 2px; }
.ir-time { color: var(--muted); }
.ir-wait { color: var(--red); font-weight: 700; }
.ir-booth { color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.ir-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--o-500); }
@media (max-width: 860px) {
  .inbox-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .ir-av { width: 38px; height: 38px; font-size: 14px; }
  .ir-chips { display: none; }
  .ir-name { max-width: 60%; }
}
.chat-box { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); line-height: 1.9; overflow-wrap: anywhere; }
.bubble.in { align-self: flex-end; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-start; background: var(--o-50); border-color: var(--o-100); border-bottom-right-radius: 6px; }
.bubble small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { border: 1px solid var(--line); cursor: pointer; font-family: inherit; }
button.chip:hover { border-color: var(--o-300); color: var(--o-600); }
@media (max-width: 860px) {
  .bubble { max-width: 92%; }
  section.row[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
}
/* ---------- Pro chat (v1.7) ---------- */
.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); }
.review-box { border: 1.5px dashed var(--blue); background: var(--blue-bg); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; align-items: end; height: 140px; padding-bottom: 20px; direction: ltr; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; min-height: 2px; background: var(--o-400); border-radius: 4px 4px 0 0; }
.bar span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .bars .bar:nth-child(even) span { display: none; } }.bars.rtl { direction: rtl; }

/* ---------- Sales dashboard (v1.8) ---------- */
.trend { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.trend.up { background: var(--green-bg); color: var(--green); }
.trend.down { background: var(--red-bg); color: var(--red); }
.progress > i { display: block; height: 100%; background: var(--grad, #FF6A00); transition: width .3s; }
.sync-box { border: 1.5px dashed var(--o-300); background: linear-gradient(135deg, var(--surface), var(--o-50)); }
.sync-box .progress { margin: 10px 0 6px; }
.range-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.range-bar .filters { flex-wrap: wrap; }
.date-in { width: 130px; }
.cmp { display: inline-flex; gap: 6px; align-items: center; }
.cmp[open] { flex-wrap: wrap; }
.cmp summary { cursor: pointer; list-style: none; }
.menu-pop { position: relative; }
.menu-pop summary { list-style: none; }
.menu-pop summary::-webkit-details-marker, .cmp summary::-webkit-details-marker { display: none; }
.menu-pop-body { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; display: grid; }
.menu-pop-body a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 13.5px; }
.menu-pop-body a:hover { background: var(--o-50); }
.mini-kpis { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--ink-2, var(--ink)); margin: 4px 0 2px; }
.mini-kpis span { display: inline-flex; gap: 6px; align-items: center; }
.mini-kpis svg { width: 16px; height: 16px; color: var(--muted); }
.sales-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
.sales-card { position: relative; min-width: 0; }
.sales-card[data-card="chart"], .sales-card[data-card="customers"], .sales-card[data-card="profit"], .sales-card[data-card="products"] { grid-column: 1 / -1; }
.sales-card .drag { position: absolute; top: 12px; inset-inline-end: 12px; border: 0; background: none; color: var(--muted); cursor: grab; padding: 4px; border-radius: 8px; opacity: .5; }
.sales-card .drag:hover { opacity: 1; background: var(--surface-2); }
.sales-card .card-head { padding-inline-end: 34px; }
.sales-card.dragging { opacity: .45; outline: 2px dashed var(--o-400); }
.sub { font-size: 13.5px; font-weight: 800; margin: 14px 0 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; }
.rank { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.rank:last-child { border-bottom: 0; }
.rank span { width: 22px; height: 22px; border-radius: 50%; background: var(--o-50); color: var(--o-600); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.rank em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank b { white-space: nowrap; font-size: 12.5px; }
.goal-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 10px; }
.goal-bar.thin { height: 6px; margin: 6px 0; }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--o-400), var(--o-600)); border-radius: 99px; }
.insight { display: block; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--line); color: var(--ink); }
.insight b { display: block; font-size: 13.5px; }
.insight small { color: var(--muted); }
.insight.warn { background: var(--amber-bg); border-color: transparent; }
.insight.danger { background: var(--red-bg); border-color: transparent; }
.occasion { padding: 10px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.occasion small { display: block; color: var(--muted); margin-top: 3px; }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.seg { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.seg-head { display: flex; justify-content: space-between; align-items: center; }
.seg-head b { font-size: 20px; }
.seg small { color: var(--muted); font-size: 12px; }
.seg .seg-c { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cohort td, .cohort th { text-align: center; }
.heat { background: rgba(255, 106, 0, calc(var(--h) * .55)); font-size: 12px; }
.hbar { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbar i { display: block; height: 10px; border-radius: 99px; background: var(--o-400); min-width: 4px; }
.hbar b { font-size: 12px; white-space: nowrap; }
.heatmap { display: grid; gap: 3px; direction: ltr; }
.hm-row { display: grid; grid-template-columns: 64px repeat(24, 1fr); gap: 3px; align-items: center; }
.hm-row span { direction: rtl; font-size: 11.5px; color: var(--muted); text-align: right; }
.hm-row i { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 106, 0, calc(.06 + var(--h) * .9)); }
.hm-head em { font-style: normal; font-size: 10.5px; color: var(--muted); text-align: left; }
.cost-input { max-width: 190px; }
.compare-table td, .compare-table th { white-space: nowrap; }
.sales-widget .sw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.sales-widget .sw-grid > div { display: flex; flex-direction: column; gap: 4px; }
.sales-widget .sw-grid b { font-size: 20px; font-weight: 900; }
.sales-widget small { color: var(--muted); }
.sales-public-main { padding-top: 24px; padding-bottom: 40px; }
@media (max-width: 860px) {
  .sales-cards { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 90px 1fr auto; }
  .hm-row { grid-template-columns: 48px repeat(24, 1fr); gap: 2px; }
  .date-in { width: 112px; }
}
@media print {
  .no-print, .sales-card .drag, .nav, .side, .topbar { display: none !important; }
  .sales-print .card { break-inside: avoid; box-shadow: none; }
  .sales-print .sales-cards { grid-template-columns: 1fr 1fr; }
  body.sales-print { background: #fff; }
}@media (max-width: 860px) { .menu-pop-body { max-width: calc(100vw - 32px); min-width: 220px; } }

/* ---------- Review queue (v1.9) ---------- */
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.draft-row { display: grid; grid-template-columns: auto 56px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.draft-row:last-child { border-bottom: 0; }
.draft-row .pimg { width: 56px; height: 56px; }
.dr-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dr-main b, .dr-title { font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-title:hover { color: var(--o-600); }
.dr-issues { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-issues .chip { font-size: 11px; padding: 1px 8px; }
.dr-issues .chip::before { display: none; }
.dr-score { font-weight: 900; min-width: 44px; justify-content: center; }
.dr-score::before { display: none; }
.dr-actions { display: flex; gap: 6px; }
.draft-row.is-busy { opacity: .55; }
.draft-row.is-done { background: var(--green-bg); }
.draft-row.is-failed { background: var(--red-bg); }
.menu-pop-body.form { gap: 6px; padding: 12px; min-width: 280px; }
.bulk-edit { max-height: 70vh; overflow-y: auto; }
.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.gallery img.cover { outline: 3px solid var(--o-400); outline-offset: -3px; }
.gallery.pick label { position: relative; cursor: pointer; flex: none; }
.gallery.pick input { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 1; }
.gallery.pick input:not(:checked) + img { opacity: .35; }
.suggest-box { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--blue-bg); font-size: 13.5px; }
.suggest-box span { flex: 1; }
.suggest-box small { display: block; color: var(--muted); }
.batch-size { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.batch-size select.input { width: auto; height: 34px; padding-block: 0; }
.ai-write { padding: 10px 12px; border-radius: 12px; background: var(--blue-bg); margin-bottom: 4px; }
.ai-write .help { margin: 6px 0 0; }
.ai-write select.input { height: 34px; padding-block: 0; font-size: 13px; }
.issue { display: flex; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.issue:last-child { border-bottom: 0; }
.attr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 14px; }
.attr-missing .input { border-color: var(--red); background: var(--red-bg); }
@media (max-width: 860px) {
  .draft-row { grid-template-columns: auto 48px minmax(0, 1fr) auto; }
  .draft-row .pimg { width: 48px; height: 48px; }
  .dr-actions { grid-column: 2 / -1; }
}.card-head .chip { white-space: nowrap; }

/* v2.0 orders */
.text-amber { color: var(--amber); }
.orders-table td { vertical-align: top; }
.orders-table tr.has-note td:first-child { box-shadow: inset -3px 0 0 var(--amber); }
.note-chip { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: var(--amber-bg); color: #7A5400; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.track-in { min-width: 150px; height: 34px; font-size: 13px; }
.post-box { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.post-box .otp-row { flex-wrap: wrap; align-items: center; }
.tpl-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.tpl-row summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tpl-row .form { margin-top: 10px; }
.scan-box video { width: 100%; max-width: 420px; border-radius: 12px; background: #000; display: block; margin-bottom: 10px; }
.scan-box video[hidden] { display: none; }
.scan-result { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.scan-result h3 { margin: 0 0 4px; font-size: 16px; }
.msg-tools { margin-top: 4px; }
.msg-tools summary { cursor: pointer; list-style: none; font-weight: 800; opacity: .6; width: max-content; padding: 0 6px; }
.msg-tools summary::-webkit-details-marker { display: none; }
.msg-tools[open] summary { opacity: 1; }
.msg-tools .form { margin-top: 6px; min-width: min(320px, 70vw); }
@media (max-width: 860px) {
  .orders-table th:nth-child(5), .orders-table td:nth-child(5) { display: none; }
  .track-in { min-width: 120px; }
}

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row > form { margin: 0; }

/* v2.1 SEO, booth health, profile, public audit */
.row-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 960px) { .row-1-2 { grid-template-columns: 1fr; } }
.score-ring { --p: 0; --c: var(--o-500, #ff6a00); width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring b, .score-ring small { position: relative; line-height: 1; }
.score-ring b { font-size: 15px; font-weight: 900; }
.score-ring.big { width: 128px; height: 128px; align-content: center; gap: 4px; }
.score-ring.big::before { inset: 11px; }
.score-ring.big b { font-size: 38px; }
.score-ring.big small { font-size: 12px; color: var(--muted); display: block; text-align: center; }
.score-ring.tone-green { --c: var(--green); }
.score-ring.tone-amber { --c: var(--amber); }
.score-ring.tone-red { --c: var(--red); }
.score-ring.tone-none { --p: 0; color: var(--muted); }
.spark { width: 110px; height: 30px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--o-500, #ff6a00); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark.big { width: 100%; height: 120px; }
.kpis .kpi > b { display: block; font-size: 26px; font-weight: 900; margin-top: 8px; }
.seo-table td { vertical-align: middle; }
.row-mine td { background: var(--green-bg); }
.chip-btn { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.chip-btn::before { display: none; }
.chip-btn:disabled { opacity: .45; cursor: default; }
form.inline { display: inline; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-list { display: flex; flex-direction: column; }
.seo-row { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.seo-row:last-child { border-bottom: 0; }
.seo-row .pimg { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--line); display: block; }
.seo-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.seo-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-score, .health-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.health-hero > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.health-hero .chip { align-self: flex-start; margin-bottom: 6px; }
.hbar .meter { margin: 0; }
.check-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row .st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.check-row .st svg { width: 16px; height: 16px; }
.check-row.ok .st { background: var(--green-bg); color: var(--green); }
.check-row.warn .st { background: var(--amber-bg); color: var(--amber); }
.check-row.bad .st { background: var(--red-bg); color: var(--red); }
.check-row.na .st { background: var(--line); color: var(--muted); }
.check-row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.check-row p.fix { color: var(--ink); }
.check-row .meter { width: 90px; margin: 8px 0 0; }
.todo-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); color: inherit; text-decoration: none; }
.todo-row:last-child { border-bottom: 0; }
.todo-row b { background: var(--o-50); color: var(--o-600); border-radius: 10px; text-align: center; padding: 4px 0; font-weight: 900; }
.todo-row small { display: block; color: var(--muted); font-size: 12.5px; }
.todo-row:hover span { color: var(--o-600); }
/* public audit */
.audit-hero h1 { margin: 10px 0 8px; }
.audit-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.audit-wrap { padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.audit-form { padding: 22px; }
.audit-label { font-weight: 800; }
.audit-row { display: flex; gap: 10px; flex-wrap: wrap; }
.audit-row .input { flex: 1; min-width: 220px; font-size: 16px; }
.audit-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.audit-points .card { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.audit-points .card svg { color: var(--o-500, #ff6a00); }
.audit-points p { margin: 0; color: var(--muted); font-size: 13px; }
.audit-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.audit-kpis .card { padding: 14px 16px; }
.audit-kpis span { color: var(--muted); font-size: 13px; display: block; }
.audit-kpis b { font-size: 20px; font-weight: 900; }
.audit-cta { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--o-50); border-color: transparent; }
.audit-cta h3 { margin: 0 0 4px; }
.audit-cta p { margin: 0; max-width: 520px; }
@media (max-width: 760px) {
  .audit-points { grid-template-columns: 1fr 1fr; }
  .audit-kpis { grid-template-columns: 1fr; }
  .seo-row { grid-template-columns: auto 40px minmax(0, 1fr) auto; gap: 8px; }
  .seo-row .pimg { width: 40px; height: 40px; }
  .check-row { grid-template-columns: 30px minmax(0, 1fr); }
  .check-row > .meter, .check-row > .btn { grid-column: 2; }
}

/* v2.2 team, official bulk, codes, competitors */
.team-banner, .team-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-banner span, .team-invite span { flex: 1; min-width: 200px; }
.team-banner form, .team-invite form { margin: 0; }
.team-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.team-link { display: flex; flex-direction: column; gap: 4px; padding: 14px; color: inherit; text-decoration: none; }
.team-link svg { color: var(--o-500); }
.team-link small { color: var(--muted); }
.team-link:hover { border-color: var(--o-400); }
.team-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.team-row summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-row summary small { flex-basis: 100%; }
.team-row .form { margin-top: 10px; }
.confirm-box { border: 2px solid var(--o-400); }
.confirm-box h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.job-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.job-row small { display: block; }
.codes-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0 4px; }
.codes-tools .otp-row { flex-wrap: nowrap; }
.codes-table td { vertical-align: middle; }
.codes-table .code-in { min-width: 130px; height: 36px; font-size: 13px; }
.codes-table .dims { display: flex; gap: 4px; min-width: 190px; }
.codes-table .dims .input { width: 60px; height: 36px; padding: 4px 6px; font-size: 13px; }
.codes-table tr.var-row td { border-top: 0; padding-top: 0; }
.codes-table tr.row-changed td { background: var(--amber-bg); }
.price-chart polyline.c { stroke: var(--red); }
.price-chart polyline.m { stroke: var(--green); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin-top: 6px; }
.chart-legend .lg-c::before, .chart-legend .lg-m::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 5px; vertical-align: middle; background: var(--red); }
.chart-legend .lg-m::before { background: var(--green); }

/* v2.3 shipping */
.zone-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.zone-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.zone-row small { display: block; }
.cov-list { display: flex; flex-direction: column; }
.cov-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.cov-row summary { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; cursor: pointer; }
.cov-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; display: flex; }
.cov-bar i { display: block; height: 100%; }
.cov-bar i.a, .lg.a { background: var(--green); }
.cov-bar i.p, .lg.p { background: var(--amber); }
.lg { display: inline-block; width: 12px; height: 8px; border-radius: 3px; vertical-align: middle; margin: 0 6px 0 2px; }
@media (max-width: 640px) { .cov-row summary { grid-template-columns: 100px 1fr auto; } }

/* v2.3.2 zone editor */
.zone-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zone-tools .input { flex: 1; min-width: 180px; }
.zone-tree { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.zone-prov { border-bottom: 1px solid var(--line); padding: 6px 0; }
.zone-prov:last-child { border-bottom: 0; }
.zone-prov summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 4px 0; }
.zone-prov .prov-all { margin: 4px 0 6px; font-weight: 700; }
.zone-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px 10px; padding-bottom: 6px; }
.zone-cities .check { font-size: 13px; }
.zone-link { display: block; padding: 7px 10px; border-radius: 10px; color: inherit; text-decoration: none; margin: 2px 0 2px 0; }
.zone-link:hover, .zone-link.on { background: var(--o-50); color: var(--o-600); }

/* Input wrappers that are <label class="field"> inside a form group: keep the icon and control on one line
   (the generic ".fgroup label" rule made them block-level and bold) */
.fgroup label.field { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.fgroup label.field select, .fgroup label.field input { font-weight: 500; }
.fgroup label.field select { cursor: pointer; padding-left: 4px; }

/* admin settings: sub-headings inside a tab */
.settings-section { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.form-grid > .settings-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.settings-section h4 { margin: 0; font-size: 14.5px; font-weight: 900; color: var(--o-600); }

/* ---------- v2.4 plans (admin editor, «پلن من», lock chips) ---------- */
[hidden] { display: none !important; }
.plan-lock { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; font-size: 11px; margin-inline-start: 6px; text-decoration: none; }
.plan-lock [data-lucide] { width: 12px; height: 12px; }
.plan-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pf-group { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0; min-width: 0; }
.pf-group legend { display: flex; align-items: center; gap: 6px; font-weight: 800; padding: 0 6px; font-size: 14px; }
.pf-group legend [data-lucide] { width: 17px; height: 17px; color: var(--o-500); }
.pf-group .pf-all { margin-inline-start: 10px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.pf-group .check { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 13.5px; flex-wrap: wrap; }
.pf-group .check small { font-size: 11px; }
.pf-core { opacity: .75; }
.steps-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 12px; }
.steps-list li { line-height: 1.9; }
.steps-list li.done::marker { color: var(--green); }
.steps-list li.done > b { text-decoration: line-through; text-decoration-color: var(--green); }
.my-plan { display: grid; grid-template-columns: auto 1fr; gap: 16px 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; }
.mp-main { display: flex; gap: 14px; align-items: center; }
.mp-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); }
.mp-ic [data-lucide] { width: 26px; height: 26px; }
.mp-main h3 { font-size: 22px; font-weight: 900; }
.mp-stats { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.mp-stats > div { min-width: 120px; }
.mp-stats b { display: block; font-size: 20px; font-weight: 900; color: var(--ink); }
.mp-stats span { font-size: 12.5px; color: var(--muted); }
.mp-stats .meter { margin-top: 6px; }
.mp-limits { grid-column: 1 / -1; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.mp-limits li { display: inline-flex; gap: 6px; align-items: center; }
.mp-limits [data-lucide] { width: 15px; height: 15px; color: var(--green); }
.plans-card { padding-bottom: 26px; }
@media (max-width: 760px) {
  .my-plan { grid-template-columns: 1fr; }
  .mp-stats { justify-content: flex-start; }
}
h4.sub { display: flex; align-items: center; gap: 6px; }
h4.sub [data-lucide] { width: 17px; height: 17px; color: var(--o-500); }
.nginx-box summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; list-style: none; }
.nginx-box summary b { display: inline-flex; gap: 6px; align-items: center; }
.nginx-box[open] summary { margin-bottom: 10px; }
.nginx-box textarea { font-family: ui-monospace, Consolas, monospace; font-size: 12px; direction: ltr; }

/* ---------- v2.5 blog (public) ---------- */
.blog-hero { padding: 56px 0 26px; text-align: start; }
.blog-hero h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; margin: 12px 0 8px; }
.blog-lead { color: var(--muted); font-size: 16.5px; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); align-items: center; }
.crumbs a:hover { color: var(--o-600); }
.blog-search { display: flex; align-items: center; gap: 8px; max-width: 520px; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 8px; box-shadow: var(--shadow-sm); }
.blog-search [data-lucide] { color: var(--muted); margin-inline-start: 8px; }
.blog-search input { flex: 1; border: 0; background: transparent; outline: 0; min-width: 0; font-size: 15px; }
.blog-wrap { padding-bottom: 40px; }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 26px; }
.blog-cats a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; }
.blog-cats a em { font-style: normal; color: var(--muted); font-size: 12px; }
.blog-cats a.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.blog-cats a.on em { color: #C9B8AB; }
.post-card { display: flex; flex-direction: column; }
.post-card h3 a:hover { color: var(--o-600); }
.post-card .pc-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.post-card .pc-meta span { display: inline-flex; gap: 4px; align-items: center; }
.post-card .pc-meta [data-lucide] { width: 14px; height: 14px; }
.post-card .pc-cat { color: var(--o-600); font-weight: 800; }
.post-featured { margin-bottom: 26px; }
.post-card-big { display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card-big .cover { aspect-ratio: auto; min-height: 280px; }
.post-card-big .body { padding: 30px; justify-content: center; }
.post-card-big h3 { font-size: 24px; line-height: 1.6; }
.post-card-big p { font-size: 15px; flex: 0; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 30px; font-size: 13.5px; }
.blog-tags b { display: inline-flex; gap: 6px; align-items: center; margin-inline-end: 6px; }
.blog-tags a, .post-tags a { padding: 4px 10px; border-radius: 8px; background: var(--o-50); color: var(--o-600); font-weight: 700; }
.author-hero { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.author-hero img, .author-hero .ah-ic { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; background: var(--grad); color: #fff; display: grid; place-items: center; }

/* post */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 90; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .1s linear; }
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--amber-bg); color: var(--amber); font-weight: 800; padding: 10px 16px; text-align: center; display: flex; gap: 8px; justify-content: center; align-items: center; }
.post-hero { padding: 46px 0 18px; background: linear-gradient(180deg, var(--o-50), transparent); }
.post-head { max-width: 1080px; }
.post-hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.5; margin: 14px 0 10px; max-width: 900px; }
.post-lead { font-size: 17.5px; color: var(--ink-3); max-width: 820px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.post-meta span, .pm-author { display: inline-flex; gap: 6px; align-items: center; }
.post-meta [data-lucide] { width: 16px; height: 16px; }
.pm-author img, .pm-av { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; background: var(--grad); color: #fff; display: grid; place-items: center; }
.pm-author b { color: var(--ink); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; max-width: 1180px; margin-top: 18px; }
.post-layout.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.post-layout:not(.no-toc) .post-main { order: 0; }
.post-toc { position: sticky; top: 90px; order: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; max-height: calc(100vh - 120px); overflow: auto; }
.post-toc summary { font-weight: 900; cursor: pointer; display: flex; gap: 6px; align-items: center; list-style: none; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 13.5px; }
.post-toc li.lv3 { padding-inline-start: 14px; font-size: 13px; }
.post-toc a { display: block; padding: 4px 8px; border-radius: 8px; color: var(--ink-3); border-inline-start: 2px solid transparent; }
.post-toc a.on, .post-toc a:hover { background: var(--o-50); color: var(--o-600); border-inline-start-color: var(--o-500); }
.post-main { min-width: 0; }
.post-main .prose { max-width: none; font-size: 16.5px; }
.post-main .prose h2 { font-size: 24px; scroll-margin-top: 90px; }
.post-main .prose h3 { scroll-margin-top: 90px; }
.post-main .prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.post-main .prose th, .post-main .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.post-main .prose th { background: var(--surface-2); }
.post-main .prose figure { margin: 22px 0; }
.post-main .prose figcaption { text-align: center; color: var(--muted); font-size: 13px; }
.post-cover { max-width: none; margin: 0 0 24px; }
.post-cover img { width: 100%; height: auto; }
.post-summary { background: var(--surface); border: 1px solid var(--o-200); border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.post-summary .ps-title { font-size: 16px; font-weight: 900; display: flex; gap: 8px; align-items: center; color: var(--o-600); margin-bottom: 8px; }
.post-summary ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.post-cta { display: flex; gap: 16px; align-items: center; border-radius: var(--r-lg); padding: 20px 22px; margin: 28px 0; }
.post-cta .pc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .18); }
.post-cta div { flex: 1; }
.post-cta b { font-size: 17px; display: block; }
.post-cta p { margin: 4px 0 0 !important; font-size: 14px; opacity: .9; }
.post-cta .btn { flex-shrink: 0; }
.post-cta-orange { background: var(--grad); color: #fff; }
.post-cta-orange b, .post-cta-dark b { color: #fff; }
.post-cta-dark { background: var(--dark); color: #EFE3D9; }
.post-cta-dark .pc-ic { color: var(--o-400); background: rgba(255, 106, 0, .15); }
.post-cta-soft { background: var(--o-50); border: 1px solid var(--o-200); color: var(--ink-3); }
.post-cta-soft .pc-ic { background: var(--grad); color: #fff; }
.prose .post-cta a.btn { color: inherit; }
.prose .post-cta-orange a.btn, .prose .post-cta-dark a.btn { color: var(--o-600); }
.prose .post-cta-soft a.btn { color: #fff; }
.post-faq, .post-sources { margin-top: 34px; }
.post-faq h2, .post-sources h2 { font-size: 22px; font-weight: 900; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.post-faq .faq { max-width: none; }
.post-sources ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 14.5px; }
.post-sources a { color: var(--o-600); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; padding: 14px 0; border-block: 1px solid var(--line); }
.post-share b { display: inline-flex; gap: 6px; align-items: center; margin-inline-end: 6px; font-size: 14px; }
.post-share a, .post-share button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); cursor: pointer; color: var(--ink-3); }
.post-share a:hover, .post-share button:hover { background: var(--o-50); color: var(--o-600); border-color: var(--o-200); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.author-box img, .author-box .ab-av { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex-shrink: 0; background: var(--grad); color: #fff; display: grid; place-items: center; }
.author-box small { display: block; }
.author-box b { font-size: 16px; }
.author-box p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.post-nav a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-weight: 800; font-size: 14px; }
.post-nav a small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.post-nav a.next { text-align: left; }
.post-nav a:hover { border-color: var(--o-300); }
.post-related { margin-top: 50px; }
.post-related h2 { font-size: 22px; font-weight: 900; margin-bottom: 18px; }
@media (max-width: 980px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-toc { position: static; order: -1; max-height: none; }
  .post-toc details:not([open]) ol { display: none; }
  .post-card-big { grid-template-columns: 1fr; }
  .post-card-big .cover { min-height: 200px; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .post-cta { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .post-card-big .body { padding: 20px; }
  .post-card-big h3 { font-size: 19px; }
}

/* ---------- v2.5 blog editor (admin) ---------- */
.blog-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.be-main, .be-side { display: grid; gap: 18px; min-width: 0; }
.be-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 20px; }
.be-title { font-size: 22px; font-weight: 900; height: 56px; }
.be-slug { display: flex; gap: 6px; align-items: center; direction: ltr; }
.be-slug .input { direction: rtl; flex: 1; height: 36px; font-size: 13px; }
.be-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: var(--surface-2); position: sticky; top: 64px; z-index: 5; }
.be-toolbar button { min-width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-weight: 900; color: var(--ink-3); display: grid; place-items: center; }
.be-toolbar button:hover, .be-toolbar button.on { background: var(--o-50); color: var(--o-600); }
.be-toolbar button [data-lucide] { width: 17px; height: 17px; }
.be-toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.be-toolbar .be-cta { height: 34px; width: auto; font-size: 13px; padding: 0 8px; }
.be-content { min-height: 420px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 18px 20px; outline: none; background: var(--surface); max-width: none; margin: -12px 0 0; }
.be-content:focus { border-color: var(--o-300); }
.be-content table { width: 100%; border-collapse: collapse; }
.be-content th, .be-content td { border: 1px dashed var(--line-strong); padding: 6px; }
.be-source { min-height: 420px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; margin-top: -12px; direction: ltr; }
.be-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.be-row > .input:first-child { grid-column: 1; }
.be-row textarea { grid-column: 1; }
.be-row [data-del-row] { grid-column: 2; grid-row: 1; }
.be-row-2 { grid-template-columns: 1fr 1fr auto; }
.be-row-2 > .input:nth-child(2) { grid-column: 2; }
.be-row-2 [data-del-row] { grid-column: 3; }
.be-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.be-when { grid-template-columns: 1.4fr 1fr; }
.be-score-n { font-size: 26px; font-weight: 900; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--muted-bg); }
.be-score-n.good { background: var(--green-bg); color: var(--green); }
.be-score-n.mid { background: var(--amber-bg); color: var(--amber); }
.be-score-n.low { background: var(--red-bg); color: var(--red); }
.be-serp { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-family: Arial, var(--font); }
.be-serp small { color: #4d5156; font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.be-serp b { color: #1a0dab; font-size: 17px; font-weight: 500; display: block; line-height: 1.5; }
.be-serp p { color: #4d5156; font-size: 13px; line-height: 1.6; margin: 0; }
.be-checks details { border-top: 1px solid var(--line); padding: 8px 0; }
.be-checks summary { cursor: pointer; font-weight: 800; font-size: 13.5px; display: flex; justify-content: space-between; }
.be-checks summary em { font-style: normal; color: var(--muted); font-size: 12px; }
.be-checks ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 12.5px; }
.be-checks li { padding-inline-start: 18px; position: relative; line-height: 1.7; }
.be-checks li::before { position: absolute; inset-inline-start: 0; font-weight: 900; }
.be-checks li.ok::before { content: "✓"; color: var(--green); }
.be-checks li.warn::before { content: "!"; color: var(--amber); }
.be-checks li.bad::before { content: "✕"; color: var(--red); }
.be-cover { width: 100%; border-radius: 12px; margin-bottom: 6px; }
.api-new { border-color: var(--green); }
@media (max-width: 1100px) {
  .blog-editor { grid-template-columns: minmax(0, 1fr); }
  .be-side { position: static; max-height: none; }
}

/* ---------- Admin: افراد آنلاین (2.6.0) ---------- */
.online-page { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.online-page .row > * { min-width: 0; }
.online-page > .row, .online-page > .kpis { margin: 0; }
.online-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.online-live .btn { margin-inline-start: auto; }
.online-page.paused .online-live .pulse { animation: none; background: var(--muted); box-shadow: none; }
.online-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18, 161, 80, .55); animation: onlinePulse 1.8s infinite; }
.online-dot.sm { width: 8px; height: 8px; animation: none; box-shadow: none; background: var(--muted); opacity: .6; }
.on-last.fresh .online-dot.sm { background: var(--green); opacity: 1; animation: onlinePulse 1.8s infinite; }
@keyframes onlinePulse { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .55); } 70% { box-shadow: 0 0 0 9px rgba(18, 161, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); } }
.online-now { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.online-now > b { color: var(--green); }
.online-kpis .delta:empty { display: none; }
.online-head { flex-wrap: wrap; gap: 10px; }
.online-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-inline-start: auto; }
.online-filter { display: inline-flex; background: var(--o-50); border-radius: 11px; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; }
.online-filter button { white-space: nowrap; border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.online-filter button.on { background: var(--surface); color: var(--o-600); box-shadow: var(--shadow-sm); }
.online-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; padding: 0 10px; background: var(--surface); min-width: 0; }
.online-search [data-lucide] { width: 16px; height: 16px; color: var(--muted); }
.online-search input { border: 0; outline: 0; background: transparent; padding: 8px 0; font: inherit; font-size: 13.5px; color: var(--text); width: 210px; max-width: 100%; }
.online-table td { vertical-align: top; }
.on-who { display: flex; gap: 10px; align-items: flex-start; min-width: 190px; }
.on-av { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--o-50); color: var(--o-600); font-weight: 900; }
.on-av.guest { background: var(--line); color: var(--muted); }
.on-av [data-lucide] { width: 17px; height: 17px; }
.on-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.on-sub { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.on-sub [data-lucide] { width: 13px; height: 13px; margin-inline-end: 3px; vertical-align: -2px; }
.on-page { min-width: 170px; max-width: 280px; }
.on-path { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-dev, .on-src, .on-last { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13.5px; }
.on-dev [data-lucide], .on-src [data-lucide] { width: 16px; height: 16px; color: var(--o-500); }
.on-last { color: var(--muted); }
.on-last.fresh { color: var(--green); font-weight: 700; }
.on-actions { display: flex; gap: 6px; justify-content: flex-end; }
.on-actions form { margin: 0; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.sm [data-lucide] { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }
.online-bars { display: flex; flex-direction: column; gap: 10px; }
.online-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.online-bar-top > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.online-bar-top [data-lucide] { width: 15px; height: 15px; color: var(--o-500); flex: none; }
.online-bar-track { height: 8px; border-radius: 99px; background: var(--line); margin-top: 5px; overflow: hidden; }
.online-bar-track i { display: block; height: 100%; border-radius: 99px; background: var(--grad, #FF6A00); transition: width .4s; }
.online-devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.online-device { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.online-device [data-lucide] { width: 20px; height: 20px; color: var(--o-500); }
.online-device b { font-size: 18px; }
.online-device span { font-size: 12px; color: var(--muted); }
.online-privacy { display: flex; gap: 6px; align-items: flex-start; }
.online-privacy [data-lucide] { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.dash-online { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.dash-online b { font-size: 26px; font-weight: 900; color: var(--green); }
.dash-online small { color: var(--muted); display: block; }
.dash-online .chev { margin-inline-start: auto; color: var(--muted); }
.side-nav .online-count { background: var(--green-bg); color: var(--green); }
@media (max-width: 760px) {
  .online-tools { margin-inline-start: 0; width: 100%; }
  .online-search { flex: 1; }
  .online-search input { width: 100%; }
  .online-live .btn { margin-inline-start: 0; }
}

/* ---------- 2.6.1: blog topics board ---------- */
.tp-page { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tp-status { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tp-status a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-3); }
.tp-status a span { background: var(--o-50); color: var(--o-600); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.tp-status a.on { background: var(--o-500); border-color: var(--o-500); color: #fff; }
.tp-status a.on span { background: rgba(255, 255, 255, .25); color: #fff; }
.tp-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; }
.tp-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.tp-filters select.input { width: auto; min-width: 140px; padding-block: 8px; font-size: 13.5px; }
.tp-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--surface); flex: 1 1 240px; min-width: 0; }
.tp-search [data-lucide] { width: 16px; height: 16px; color: var(--muted); flex: none; }
.tp-search input { border: 0; outline: 0; background: transparent; padding: 9px 0; font: inherit; font-size: 13.5px; color: var(--text); width: 100%; min-width: 0; }
.tp-tools { display: flex; gap: 8px; align-items: flex-start; position: relative; }
.tp-add > summary { list-style: none; cursor: pointer; }
.tp-add > summary::-webkit-details-marker { display: none; }
.tp-add-form { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: min(420px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg, 0 18px 40px rgba(0, 0, 0, .14)); }
.tp-add-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; }
.tp-summary { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.tp-summary [data-lucide] { width: 16px; height: 16px; flex: none; }
.tp-summary b { margin-inline-start: auto; white-space: nowrap; color: var(--ink-3); }
.tp-list { display: flex; flex-direction: column; gap: 10px; }
.tp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 16px 18px; border-inline-start: 4px solid var(--line); }
.tp-card.tp-p3 { border-inline-start-color: var(--red); }
.tp-card.tp-p2 { border-inline-start-color: var(--o-500); }
.tp-main { min-width: 0; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tp-chips .chip [data-lucide] { width: 13px; height: 13px; }
.tp-prio { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.tp-prio [data-lucide] { width: 13px; height: 13px; }
.tp-prio-3 { background: var(--red-bg); color: var(--red); }
.tp-prio-2 { background: var(--o-50); color: var(--o-600); }
.tp-prio-1 { background: var(--line); color: var(--muted); }
.tp-source { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.tp-source [data-lucide] { width: 13px; height: 13px; }
.tp-title { font-size: 16px; font-weight: 800; line-height: 1.8; margin: 0; color: var(--ink); }
.tp-kw { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tp-kw b { color: var(--o-600); }
.tp-kw [data-lucide] { width: 14px; height: 14px; }
.tp-notes { margin-top: 8px; }
.tp-notes > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--o-600); }
.tp-notes > summary::-webkit-details-marker { display: none; }
.tp-notes > summary [data-lucide] { width: 15px; height: 15px; transition: transform .2s; }
.tp-notes[open] > summary [data-lucide] { transform: rotate(180deg); }
.tp-notes dl { margin: 8px 0 0; display: grid; gap: 6px; background: var(--bg-soft, var(--o-50)); border-radius: 12px; padding: 10px 12px; }
.tp-notes dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.9; }
.tp-notes dt { color: var(--muted); font-weight: 700; }
.tp-notes dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.tp-post { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--o-600); }
.tp-post [data-lucide] { width: 15px; height: 15px; }
.tp-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 210px; }
.tp-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-controls label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.tp-controls select.input { width: 100%; min-width: 0; padding: 7px 8px; font-size: 13px; }
.tp-actions { display: flex; gap: 8px; align-items: center; }
.tp-actions .btn { flex: 1; justify-content: center; }
.tp-actions form { margin: 0; }
.tp-ideas { display: flex; flex-direction: column; gap: 8px; }
.tp-idea { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tp-idea small { display: block; margin-top: 2px; }
@media (max-width: 760px) {
  .tp-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tp-side { width: auto; }
  .tp-notes dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tp-filters select.input { flex: 1 1 140px; }
  .tp-tools { width: 100%; }
  .tp-tools > * { flex: 1; }
  .tp-add-form { inset-inline-end: auto; inset-inline-start: 0; }
}

/* ---------- 2.6.1: compact online indicators ---------- */
.dash-online-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.dash-online-bar:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.dash-online-bar .online-dot { width: 9px; height: 9px; }
.dash-online-bar b { font-size: 15px; font-weight: 900; color: var(--green); }
.dash-online-bar .sep { width: 1px; height: 14px; background: var(--line); }
.dash-online-bar .more { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--o-600); font-weight: 700; font-size: 13px; }
.dash-online-bar .more [data-lucide] { width: 15px; height: 15px; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.online-pill .online-dot { width: 8px; height: 8px; }
.online-pill b { color: var(--green); font-weight: 900; }
@media (max-width: 760px) { .online-pill span { display: none; } .online-pill { padding: 0 10px; } }

/* ---------- 2.6.1: trust seals ---------- */
.trust-seals { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-seals > .seal { width: 92px; min-height: 100px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 6px; overflow: hidden; }
.trust-seals > .seal img { max-width: 100%; height: auto; display: block; }
.trust-seals > .seal.seal-fallback, .seal-badge { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.seal-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.6; text-decoration: none; width: 100%; height: 100%; padding: 8px 4px; border-radius: 12px; }
.seal-badge [data-lucide] { width: 24px; height: 24px; color: #FF8A33; }
.seal-badge small { font-weight: 400; opacity: .7; font-size: 10.5px; }
.seal > .seal-badge { display: none; }
.seal-fallback > a, .seal-fallback > div { display: none; }
.seal-fallback > .seal-badge { display: flex; border: 0; background: none; }

/* ---------- 2.6.1: home page blog section ---------- */
.home-blog .section-head p { color: var(--muted); max-width: 620px; margin: 10px auto 0; }
.hb-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 26px; }
.hb-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--ink-3); transition: border-color .2s, color .2s; }
.hb-cats a:hover { border-color: var(--o-500); color: var(--o-600); }
.hb-cats a span { background: var(--o-50); color: var(--o-600); border-radius: 99px; padding: 0 7px; font-size: 11.5px; }
.hb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hb-grid.hb-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.hb-lead { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.hb-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 14px 34px rgba(0, 0, 0, .08)); }
.hb-cover { display: block; aspect-ratio: 16 / 9; background: var(--o-50); overflow: hidden; }
.hb-cover img, .hb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hb-lead:hover .hb-cover img, .hb-item:hover .hb-thumb img { transform: scale(1.04); }
.hb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--o-500); background: linear-gradient(135deg, var(--o-50), transparent); }
.hb-ph [data-lucide] { width: 40px; height: 40px; opacity: .7; }
.hb-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hb-body h3 { font-size: 20px; line-height: 1.7; margin: 0; }
.hb-body h3 a, .hb-item h4 a { color: var(--ink); }
.hb-body h3 a:hover, .hb-item h4 a:hover { color: var(--o-600); }
.hb-body p { color: var(--muted); margin: 0; line-height: 1.9; }
.hb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.hb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hb-meta [data-lucide] { width: 13px; height: 13px; }
.hb-cat { background: var(--o-50); color: var(--o-600) !important; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.hb-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--o-600); }
.hb-more [data-lucide] { width: 16px; height: 16px; transition: transform .2s; }
.hb-more:hover [data-lucide] { transform: translateX(-4px); }
.hb-side { display: flex; flex-direction: column; gap: 14px; }
.hb-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; transition: border-color .2s; }
.hb-item:hover { border-color: color-mix(in srgb, var(--o-500) 40%, var(--line)); }
.hb-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--o-50); }
.hb-item h4 { font-size: 15px; line-height: 1.75; margin: 6px 0 4px; }
.hb-item time { font-size: 12px; color: var(--muted); }
.hb-foot { text-align: center; margin-top: 26px; }
@media (max-width: 900px) {
  .hb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hb-item { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .hb-body { padding: 16px; }
  .hb-body h3 { font-size: 17px; }
}

/* ---------- 2.7.0: plans that sell ---------- */
/* Grouped seller menu: search, collapsible groups, compact links */
.menu-search { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.menu-search [data-lucide] { width: 16px; height: 16px; color: #A8978A; flex: none; }
.menu-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 13.5px; }
.menu-search input::placeholder { color: #8B7A6E; }
.side-groups { gap: 2px; }
/* 2.29.4: a group's state is obvious — closed ▾ muted with its item count, open ▴ bright with an accent bar and a guide line */
.side-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-size: 12.5px; font-weight: 800;
  color: #A8978A; letter-spacing: .2px; user-select: none; position: relative; transition: color .15s, background .15s; }
/* the open marker: a straight bar inside the row (a border on a rounded row curved and looked cut off) */
.side-group summary::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #ff6a00; opacity: 0; transform: scaleY(.4); transition: opacity .15s, transform .2s; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary .sg-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group summary .count { margin-inline-start: 0; }
.sg-n { font-style: normal; font-size: 11px; font-weight: 700; color: #8B7A6E; background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 0 7px; line-height: 18px; }
.sg-cur { width: 7px; height: 7px; border-radius: 50%; background: #ff6a00; box-shadow: 0 0 0 3px rgba(255, 106, 0, .18); flex: none; }
.sg-chev { flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .85; margin-inline-start: 2px; }
.side-group[open] > summary { color: #fff; background: rgba(255, 106, 0, .09); }
.side-group[open] > summary::before { opacity: 1; transform: none; }
.side-group[open] > summary .sg-chev { transform: translateY(2px) rotate(-135deg); }
.side-group[open] > summary .sg-n, .side-group[open] > summary .sg-cur { display: none; }
.side-group summary:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side-group summary:focus-visible { outline: 2px solid #ff6a00; outline-offset: 1px; }
.side-group summary [data-lucide] { width: 16px; height: 16px; }
.sg-body { overflow: hidden; margin: 2px 0 8px; margin-inline-start: 19px; padding-inline-start: 6px; border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.side-group a { padding: 8px 12px 8px 10px; padding-inline-start: 12px; font-size: 13.5px; gap: 10px; }
.menu-tools { display: flex; gap: 6px; align-items: center; margin: 0 4px 12px; }
.menu-tools .menu-search { flex: 1; margin: 0; min-width: 0; }
.menu-all { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #A8978A; cursor: pointer; }
.menu-all:hover { color: #fff; }
.menu-all [data-lucide] { width: 17px; height: 17px; }
@media (max-width: 980px) {
  .side-group summary { min-height: 44px; font-size: 13.5px; }
  .side-group a { min-height: 42px; }
}
.side-group a [data-lucide] { width: 17px; height: 17px; flex: none; }
.side-group a span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group a mark { background: rgba(255, 106, 0, .35); color: #fff; border-radius: 3px; }
.menu-empty { padding: 8px 12px; }
/* In-panel feature guide */
.guide-group { margin-bottom: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.guide-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.guide-item.is-locked { background: var(--app-bg); }
.guide-item .gi-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--o-50); color: var(--o-600); }
.guide-item .gi-body { flex: 1; min-width: 0; }
.guide-item .gi-body b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.guide-item .gi-body p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.guide-item .gi-body small { display: block; margin-top: 4px; }
.guide-item .gi-act { display: flex; flex-direction: column; gap: 6px; flex: none; }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }
.side-nav .nav-lock { margin-inline-start: auto; color: var(--muted); display: inline-flex; opacity: .75; }
.side-nav .nav-lock [data-lucide] { width: 14px; height: 14px; }
.trial-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--o-500) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--o-500) 30%, var(--line)); font-size: 14px; }
.trial-bar .tb-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad, var(--o-500)); color: #fff; flex: none; }
.trial-bar .tb-ic [data-lucide] { width: 18px; height: 18px; }
.trial-bar > span:nth-child(2) { flex: 1 1 260px; line-height: 1.9; }
.trial-bar.ending { border-color: var(--red); background: linear-gradient(135deg, var(--red-bg), var(--surface)); }
.upsell { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.up-main { display: flex; gap: 18px; align-items: flex-start; }
.up-ic { position: relative; flex: none; width: 64px; height: 64px; border-radius: 20px; background: var(--o-50); color: var(--o-500); display: grid; place-items: center; }
.up-ic > [data-lucide] { width: 30px; height: 30px; }
.up-ic i { position: absolute; bottom: -6px; inset-inline-start: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 3px solid var(--surface); }
.up-ic i [data-lucide] { width: 12px; height: 12px; }
.up-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--o-600); background: var(--o-50); padding: 3px 10px; border-radius: 99px; }
.up-eyebrow [data-lucide] { width: 14px; height: 14px; }
.upsell h2 { font-size: 22px; margin: 10px 0 6px; }
.up-pitch { font-size: 15px; line-height: 2; color: var(--text); margin: 0; }
.up-stat { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 800; font-size: 13.5px; }
.up-stat [data-lucide] { width: 16px; height: 16px; }
.up-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.up-points li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.up-points [data-lucide] { width: 16px; height: 16px; color: var(--green); flex: none; }
.up-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.up-price { font-size: 13.5px; color: var(--muted); }
.up-price b { color: var(--ink); font-size: 16px; }
.up-preview { position: relative; border-radius: 18px; background: var(--bg-soft, var(--o-50)); padding: 22px; display: grid; gap: 12px; filter: blur(.4px); min-height: 190px; }
.upp-row { height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--o-500) 18%, var(--line))); }
.upp-row.w50 { width: 50%; } .upp-row.w60 { width: 60%; } .upp-row.w70 { width: 70%; } .upp-row.w80 { width: 80%; } .upp-row.w90 { width: 90%; }
.upp-lock { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md, 0 10px 30px rgba(0, 0, 0, .12)); display: grid; place-items: center; color: var(--o-500); }
.usage-meter { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.usage-meter .um-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.usage-meter .um-top span { display: inline-flex; align-items: center; gap: 6px; }
.usage-meter .um-top [data-lucide] { width: 16px; height: 16px; color: var(--o-500); }
.usage-meter .meter { margin-top: 8px; }
.usage-meter.high { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.usage-meter.high .meter i { background: var(--red); }
.usage-meter p { margin: 8px 0 0; color: var(--muted); }
.nudge { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 18px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--o-500) 55%, var(--line)); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.nudge:hover { border-style: solid; transform: translateY(-1px); }
.nudge .ng-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--o-50); color: var(--o-500); display: grid; place-items: center; flex: none; }
.nudge .ng-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nudge .ng-body small { color: var(--muted); line-height: 1.8; }
.nudge .ng-cta { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--o-600); white-space: nowrap; }
.nudge .ng-cta [data-lucide] { width: 16px; height: 16px; }
.pc-trial { display: inline-flex; align-items: center; gap: 4px; color: var(--o-600); font-size: 12.5px; margin-top: 4px; }
.pc-trial [data-lucide] { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .upsell { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .up-preview { display: none; }
}
@media (max-width: 520px) {
  .up-main { flex-direction: column; }
  .nudge { flex-wrap: wrap; }
  .nudge .ng-cta { width: 100%; justify-content: flex-end; }
}

/* ---------- 2.8.0: admin customer profile ---------- */
.up-head { padding: 20px; margin-bottom: 14px; }
.uh-id { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.uh-av { position: relative; flex: none; width: 60px; height: 60px; border-radius: 20px; background: var(--grad, var(--o-500)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.uh-av .online-dot { position: absolute; bottom: -2px; inset-inline-start: -2px; border: 3px solid var(--surface); width: 16px; height: 16px; }
.uh-main { flex: 1; min-width: 240px; }
.uh-main h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 6px; }
.uh-main h2 .chip [data-lucide] { width: 12px; height: 12px; }
.uh-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; align-items: center; }
.uh-sub [data-lucide] { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 3px; }
.uh-copy { border: 0; background: var(--o-50); color: var(--o-600); border-radius: 8px; padding: 3px 8px; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.uh-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uh-actions form { margin: 0; }
.uh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.uh-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; min-width: 0; }
a.uh-stat:hover { border-color: var(--o-500); }
.uh-stat span { font-size: 12px; color: var(--muted); }
.uh-stat b { font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uh-stat small { font-size: 11.5px; color: var(--muted); }
.up-tabs { margin-bottom: 14px; }
.up-tabs a [data-lucide] { width: 16px; height: 16px; }
.up-sep { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.up-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.up-meter .um-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.up-meter.full .meter i { background: var(--red); }
.up-used { display: flex; flex-wrap: wrap; gap: 8px; }
.up-used span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--line); color: var(--muted); font-size: 12.5px; }
.up-used span.on { background: var(--green-bg); color: var(--green); font-weight: 700; }
.up-used [data-lucide] { width: 13px; height: 13px; }
.up-used small { font-size: 11px; }
.up-note-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.up-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; }
.up-note { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.up-note.pinned { border-color: color-mix(in srgb, var(--o-500) 50%, var(--line)); background: var(--o-50); }
.up-note p { margin: 0 0 6px; line-height: 1.9; font-size: 13.5px; }
.un-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.un-meta span { margin-inline-end: auto; }
.un-meta form { margin: 0; }
.up-access { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow: auto; padding-inline-end: 4px; }
.ua-group h5 { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 6px; color: var(--ink-3); }
.ua-group h5 [data-lucide] { width: 15px; height: 15px; color: var(--o-500); }
.ua-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ua-name { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; flex-wrap: wrap; }
.ua-name small { color: var(--muted); font-size: 11px; width: 100%; padding-inline-start: 16px; }
.ua-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.ua-dot.on { background: var(--green); }
.ua-seg { display: inline-flex; background: var(--o-50); border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.ua-seg label { cursor: pointer; }
.ua-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ua-seg span { display: block; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ua-seg input:checked + span { background: var(--surface); color: var(--o-600); box-shadow: var(--shadow-sm); }
.ua-seg label:nth-child(2) input:checked + span { color: var(--green); }
.ua-seg label:nth-child(3) input:checked + span { color: var(--red); }
.up-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.up-diff summary { cursor: pointer; font-size: 12px; color: var(--o-600); }
.up-diff pre { font-size: 11px; background: var(--bg-soft, var(--o-50)); padding: 8px; border-radius: 8px; max-width: 520px; overflow: auto; white-space: pre-wrap; }
@media (max-width: 900px) { .uh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .uh-stats { grid-template-columns: minmax(0, 1fr); } .ua-row { flex-wrap: wrap; } }

/* ---------- 2.9.0: help desk ---------- */
.tk-list { display: flex; flex-direction: column; gap: 10px; }
.tk-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.tk-item:hover { border-color: var(--o-500); }
.tk-item.new { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.tk-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--o-50); color: var(--o-500); display: grid; place-items: center; flex: none; }
.tk-item.new .tk-ic { background: var(--green-bg); color: var(--green); }
.tk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-main small { color: var(--muted); }
.tk-card { padding: 18px; }
.tk-thread { display: flex; flex-direction: column; gap: 16px; }
.tk-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.tk-msg.mine { margin-inline-start: auto; flex-direction: row-reverse; }
.tk-av { width: 36px; height: 36px; border-radius: 12px; background: var(--line); display: grid; place-items: center; font-weight: 900; flex: none; color: var(--ink-3); }
.tk-av.staff { background: var(--grad, var(--o-500)); color: #fff; }
.tk-av [data-lucide] { width: 18px; height: 18px; }
.tk-bubble { background: var(--bg-soft, #F6F1EC); border-radius: 18px; padding: 10px 14px; min-width: 0; }
.tk-msg.mine .tk-bubble { background: var(--o-50); }
.tk-msg.internal .tk-bubble { background: color-mix(in srgb, var(--amber, #E8A317) 14%, var(--surface)); border: 1px dashed var(--amber, #E8A317); }
.tk-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; margin-bottom: 4px; }
.tk-head time { color: var(--muted); margin-inline-start: auto; }
.tk-body { line-height: 2; font-size: 14px; overflow-wrap: anywhere; }
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tk-img img { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.tk-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; }
.tk-file small { display: block; color: var(--muted); font-size: 11px; }
.tk-reply { margin-top: 14px; }
.tk-reply-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.tk-reply-bar .btn { margin-inline-start: auto; }
.tk-attach { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--o-600); font-weight: 700; position: relative; }
.tk-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tk-attach [data-lucide] { width: 16px; height: 16px; }
.tk-chosen { margin-top: 6px; }
.tk-canned { margin-bottom: 8px; max-width: 320px; }
.tk-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 8px 0; }
.tk-stars input { position: absolute; opacity: 0; pointer-events: none; }
.tk-stars label { font-size: 30px; color: var(--line); cursor: pointer; line-height: 1; transition: color .15s; }
.tk-stars input:checked ~ label, .tk-stars label:hover, .tk-stars label:hover ~ label { color: #F5A623; }
.tk-rate h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; }
.tk-suggest { background: var(--o-50); border-radius: 14px; padding: 12px 14px; margin: -4px 0 12px; }
.tk-suggest b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; margin-bottom: 6px; }
.tk-faq summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 4px 0; }
.tk-faq p { margin: 4px 0 8px; font-size: 13px; line-height: 1.9; color: var(--text); }
.tk-tips ul { padding-inline-start: 18px; line-height: 2.1; font-size: 13.5px; }
.tk-tips h3 { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.tk-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; }
.tk-toolbar .tabs-line { flex: 1; min-width: 0; border: 0; }
.tk-toolbar .tabs-line .count { background: var(--o-50); color: var(--o-600); border-radius: 99px; padding: 0 7px; font-size: 11.5px; }
.tk-filters { margin-bottom: 12px; }
.tk-filters .input { width: auto; min-width: 140px; }
.tk-filters input.input { flex: 1 1 220px; }
.tk-table tr.tk-late td:first-child { box-shadow: inset -3px 0 0 var(--red); }
.tk-table .text-red [data-lucide] { width: 14px; height: 14px; vertical-align: -2px; }
.tk-replies { border: 1px dashed var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.tk-replies h3 { display: flex; gap: 6px; align-items: center; font-size: 15px; margin: 0 0 4px; }
.tk-reply-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 70px auto auto; gap: 8px; align-items: start; }
.tk-customer .kv-row b { text-align: left; }
@media (max-width: 760px) { .tk-msg { max-width: 100%; } .tk-reply-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 2.9.0: testimonials ---------- */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.rv-card.pinned { border-color: color-mix(in srgb, var(--o-500) 45%, var(--line)); }
.rv-stars { color: #F5A623; display: inline-flex; gap: 2px; }
.rv-stars [data-lucide] { width: 16px; height: 16px; fill: currentColor; }
.rv-result { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 800; color: var(--green); font-size: 14px; }
.rv-result [data-lucide] { width: 16px; height: 16px; }
.rv-body { margin: 0; line-height: 2; font-size: 14px; color: var(--text); flex: 1; }
.rv-feat { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--o-600); background: var(--o-50); padding: 3px 10px; border-radius: 99px; }
.rv-feat [data-lucide] { width: 13px; height: 13px; }
.rv-who { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.rv-av { width: 40px; height: 40px; border-radius: 13px; object-fit: cover; background: var(--o-50); color: var(--o-600); display: grid; place-items: center; font-weight: 900; flex: none; }
.rv-who b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.rv-who small { color: var(--muted); font-size: 12px; }
.rv-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--blue, #2F6FDE); }
.rv-verified [data-lucide] { width: 13px; height: 13px; }
.rv-reply { background: var(--bg-soft, var(--o-50)); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; line-height: 1.9; }
.rv-reply [data-lucide] { width: 13px; height: 13px; vertical-align: -2px; }
.rv-agg { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); }
.hb-cats a.on { border-color: var(--o-500); color: var(--o-600); background: var(--o-50); }
.rv-ask { border-color: color-mix(in srgb, var(--o-500) 40%, var(--line)); margin-bottom: 16px; }
.rv-ask-head { display: flex; gap: 12px; align-items: flex-start; }
.rv-ask-head .ng-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--o-50); color: var(--o-500); display: grid; place-items: center; flex: none; }
.rv-ask-head h3 { margin: 0 0 2px; font-size: 16px; }
.ts-list { display: flex; flex-direction: column; gap: 10px; }
.ts-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ts-item.pinned { border-color: color-mix(in srgb, var(--o-500) 45%, var(--line)); }
.ts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-head .chip [data-lucide] { width: 12px; height: 12px; }
.ts-item p { margin: 8px 0; line-height: 1.9; font-size: 13.5px; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ts-actions form { margin: 0; }

/* 2.9.1: independence note */
.footer-disclaimer { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12px; opacity: .65; text-align: center; }
.footer-disclaimer [data-lucide] { width: 14px; height: 14px; flex: none; }

/* 2.16 — background removal button */
.has-bg { position: relative; display: inline-block; flex: none; }
.bg-btn { position: absolute; bottom: 6px; inset-inline-end: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; font-size: 15px; line-height: 30px; padding: 0; }
.bg-btn:disabled { opacity: .7; cursor: wait; }
/* channel posts */
.ch-posts { display: grid; gap: 10px; }
.ch-post { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.ch-post img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--app-bg); }
.ch-post p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.8; white-space: pre-line; }
/* market demand */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mk-meters { display: grid; gap: 10px; margin-bottom: 12px; }
.mk-meters > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 13.5px; }
.mk-meters .meter { grid-column: 1 / -1; }
.meter { height: 8px; border-radius: 99px; background: var(--app-bg); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--o-500); }
.meter.good i { background: var(--green); }
.meter.warn i { background: var(--amber); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv li:last-child { border-bottom: 0; }
.kv li span { color: var(--muted); }
.bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; height: 90px; align-items: end; margin-top: 6px; }
.bands > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bands i { display: block; width: 100%; min-height: 4px; border-radius: 6px 6px 0 0; background: var(--o-300); }
.bands small { font-size: 11px; color: var(--muted); }
/* story maker */
.story-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.story-idea, .story-row { display: flex; gap: 10px; align-items: center; text-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.story-idea:hover, .story-row:hover { border-color: var(--o-300); }
.story-idea img, .story-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.story-idea span, .story-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.story-idea em { font-style: normal; font-size: 11.5px; color: var(--o-600); display: inline-flex; gap: 4px; align-items: center; }
.story-idea em [data-lucide] { width: 13px; height: 13px; }
.story-idea small, .story-row small { color: var(--muted); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.story-list { display: grid; gap: 8px; max-height: 640px; overflow-y: auto; }
.story-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.story-tpls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.story-tpl { display: grid; gap: 4px; justify-items: center; padding: 6px 4px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; font-size: 11.5px; color: inherit; }
.story-tpl canvas { width: 100%; max-width: 72px; aspect-ratio: 9 / 16; height: auto; border-radius: 8px; background: var(--line); }
.story-tpl.dim { opacity: .45; }
.story-tpl.on { border-color: var(--o-500); box-shadow: 0 0 0 3px var(--o-100, rgba(255,106,0,.15)); }
@media (max-width: 560px) { .story-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; font-size: 13px; }
.story-caption { display: grid; gap: 8px; margin-top: 14px; }
.story-idea-grid { display: grid !important; grid-template-columns: repeat(2, 31px); gap: 2px !important; flex: none; }
.story-idea-grid img { width: 31px !important; height: 31px !important; border-radius: 6px !important; }
.story-canvas { width: 100%; max-width: 320px; height: auto; display: block; margin: 12px auto 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
@media (max-width: 860px) { .story-layout { grid-template-columns: 1fr; } .ch-post { grid-template-columns: 64px 1fr; } .ch-post img { width: 64px; height: 64px; } .ch-post button { grid-column: 1 / -1; } }
/* 2.18 — rates */
.text-green { color: var(--green); }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark.up polyline { stroke: var(--green); }
.spark.down polyline { stroke: var(--red); }
.rates-table td { vertical-align: middle; }
.rf-adv { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; margin: 12px 0; }
.rf-adv summary { display: flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.rf-adv summary [data-lucide] { width: 18px; height: 18px; color: var(--o-500); }
.rf-adv[open] summary { margin-bottom: 10px; }
.src-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.src-status > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 13px; display: grid; gap: 4px; }
.src-status b { font-size: 14px; }
/* ---------- 2.21.1 — ورود و ثبت‌نام: صفحه ---------- */
.auth-main { gap: 18px; }
.auth-top { width: 100%; max-width: 440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.auth-back:hover { color: var(--o-600, #ea580c); }
.auth-back svg { width: 16px; height: 16px; }
.auth-card { max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; box-shadow: 0 18px 50px -24px rgba(120, 60, 10, .25); }
.auth-card h1 { font-size: 23px; margin: 0 0 6px; }
.auth-card .sub { margin-bottom: 14px; line-height: 1.9; }
.auth-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.auth-perks li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--o-50, #fff7ed); color: var(--o-700, #c2410c); font-size: 12.5px; font-weight: 600; }
.auth-perks svg { width: 14px; height: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: var(--bg-2, rgba(0,0,0,.04)); }
.auth-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-tabs button svg { width: 16px; height: 16px; }
.auth-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.input-lg { height: 52px; font-size: 17px; border-radius: 14px; }
.input-lg.ltr::placeholder { direction: rtl; text-align: right; }
.otp-big { height: 60px; font-size: 26px; letter-spacing: .6em; text-align: center; font-weight: 800; border-radius: 14px; padding-inline-start: .6em; }
.otp-big::placeholder { letter-spacing: .6em; color: var(--line); }
.field-error { margin: 6px 0 0; color: var(--red, #dc2626); font-size: 13px; }
.input.is-invalid { border-color: var(--red, #dc2626); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.auth-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 1.9; margin: 0 0 12px; }
.auth-sent .auth-num { direction: ltr; unicode-bidi: isolate; font-weight: 800; letter-spacing: .02em; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--o-600, #ea580c); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.link-btn svg { width: 14px; height: 14px; }
.link-btn[disabled] { color: var(--muted); cursor: default; font-weight: 500; }
.auth-resend { text-align: center; margin: 12px 0 0; }
.auth-welcome { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: 14px; background: var(--green-bg, #ecfdf5); color: var(--green, #047857); }
.auth-welcome svg { width: 24px; height: 24px; flex: none; }
.auth-welcome b { display: block; }
.auth-welcome span { font-size: 13px; }
.auth-terms { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; text-align: center; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-inline-end: 48px; }
.pass-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; }
.pass-eye:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.pass-eye svg { width: 18px; height: 18px; }
.auth-switch { line-height: 1.9; }
.auth-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; max-width: 440px; margin: 0 auto; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-foot svg { width: 14px; height: 14px; color: var(--green, #059669); }
.auth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.auth-stats > div { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.auth-stats b { display: block; font-size: 20px; color: #fff; }
.auth-stats span { font-size: 12px; color: #FFE8D5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.shake { animation: shake .4s both; }
@media (max-width: 640px) {
  .auth-main { padding: 18px 16px 28px; justify-content: flex-start; }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .auth-card h1 { font-size: 21px; }
}/* the steps sit inside the form: give them the form's own spacing */
.auth-flow > [data-step] { display: grid; gap: 16px; }
.auth-flow .fgroup, .auth-name .fgroup { margin: 0; }
.auth-flow .check, .auth-name .check { margin: -4px 0 0; align-items: center; }
.auth-flow .check input, form[data-auth-pane] .check input { width: 18px; height: 18px; accent-color: var(--o-500, #f97316); flex: none; }
.otp-big::placeholder { text-align: center; direction: ltr; }
.auth-resend { margin: -4px 0 0; }
.auth-sent { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--o-50, #fff7ed); }
/* ---------- Pager (2.25): number window, jump, rows per page ---------- */
.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.pager-nums { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.pager-nums a, .pager-nums span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pager-nums a:hover { border-color: var(--o-300); color: var(--o-600); }
.pager-nums .on { background: var(--grad); color: #fff; border: 0; }
.pager-nums .gap { border: 0; background: none; min-width: 20px; padding: 0; }
.pager-nums .pg-arrow svg, .pager-nums .pg-arrow i { width: 16px; height: 16px; }
.pager-nums .pg-compact { display: none; }
.pager-tools { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pager-tools form { display: flex; gap: 6px; align-items: center; }
.pager-tools label { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.pager-tools .input { height: 34px; width: 76px; padding: 0 8px; }
@media (max-width: 640px) {
  .pager-nums > a:not(.pg-arrow), .pager-nums > span.on, .pager-nums > .gap { display: none; }
  .pager-nums .pg-compact { display: inline-flex; border: 0; background: none; min-width: 90px; }
  .pager-nums .pg-arrow span { display: none; }
}
/* New message while typing (inbox poll, 2.25) */
.poll-notice { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); z-index: 150; border: 0; border-radius: 99px; padding: 10px 20px; background: var(--grad); color: #fff; font: inherit; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); cursor: pointer; }
/* ---------- Header: name/phone and credit pill ---------- */
/* name stays on one line; the masked phone is isolated LTR so ۰۹۹۰***۸۴۵۳ is not flipped in the RTL row */
.me > div { min-width: 0; max-width: 160px; }
.me .me-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small bdi { white-space: nowrap; }
.credit-pill b { white-space: nowrap; }
.credit-pill .cp-short { display: none; }
@media (max-width: 640px) {
  /* big credit numbers squeezed the page title to nothing: short number (۱۲۵ هزار), no icon, tighter gaps */
  .topbar { gap: 6px; }
  .topbar .credit-pill { padding: 0 10px; }
  .topbar .credit-pill [data-lucide], .topbar .credit-pill svg { display: none; }
  .credit-pill .cp-full { display: none; }
  .credit-pill .cp-short { display: inline; }
  .credit-pill .cp-short small { font-size: 10px; font-weight: 700; margin-inline-start: 2px; }
}

/* ---------- Admin «مرکز امکانات» (2.30) ---------- */
.ft-table td { vertical-align: middle; }
.ft-table .chip [data-lucide], .ft-head .chip [data-lucide] { width: 13px; height: 13px; }
.ft-indent { color: var(--muted); margin-inline-end: 4px; }
.ft-diff td { background: var(--o-50, #FFF4EB); }
.ft-json { max-width: 220px; font-size: 11.5px; word-break: break-all; }
.ft-list { margin: 0; padding-inline-start: 18px; line-height: 1.9; font-size: 13.5px; }
.ft-head .ft-title { display: flex; gap: 14px; align-items: flex-start; }
.ft-head h2 { margin: 0 0 4px; font-size: 20px; }
.ft-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--o-50, #FFF4EB); color: var(--o-600, #e65c00); display: grid; place-items: center; flex: none; }
.ft-kv { margin-top: 12px; }
.ft-chart { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 14px; padding-top: 4px; border-top: 1px dashed var(--line); }
.ft-chart span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; }
.ft-chart i { display: block; border-radius: 2px; min-height: 0; }
.ft-chart i.u { background: var(--o-500, #ff6a00); }
.ft-chart i.l { background: var(--line-2, #cfc6bd); }
.ft-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 10px 0; }
.ft-state { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.ft-state.on { border-color: var(--o-500, #ff6a00); background: var(--sel-bg, #FFF3E8); }
.ft-state input { margin-top: 4px; }
.ft-state b { display: flex; gap: 5px; align-items: center; font-size: 14px; }
.ft-state b [data-lucide] { width: 15px; height: 15px; }
.ft-state small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 2px; }
.ft-state:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.ft-more { border-inline-start: 3px solid var(--line); padding-inline-start: 12px; margin: 10px 0; }
.ft-impact { margin: 10px 0; font-size: 13.5px; }
.ft-later { margin: 8px 0; font-size: 13.5px; }
.ft-later summary { cursor: pointer; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ft-plans { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-check { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; cursor: pointer; }
.ft-check:has(input:checked) { border-color: var(--o-500, #ff6a00); background: var(--sel-bg, #FFF3E8); font-weight: 700; }
.ft-history { list-style: none; margin: 0; padding: 0; }
.ft-history li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; display: grid; gap: 2px; }
.ft-history li:last-child { border-bottom: 0; }
.ump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ump-group h5 { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.ump-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: center; }
.ump-row > span { display: inline-flex; gap: 6px; align-items: center; }
.ump-row [data-lucide] { width: 15px; height: 15px; }
.ump-row.is-hidden > span:first-child { text-decoration: line-through; color: var(--muted); }
.ump-row small { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon-badge.soon-maint { color: #8a5a00; background: #fff4d6; border-color: #f3d48a; }
.addon-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--o-500, #ff6a00); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.addon-box p { margin: 0; flex: 1; min-width: 200px; }
.addon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.addon-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.addon-card b { display: flex; gap: 6px; align-items: center; }
.addon-card .num { font-weight: 800; }
@media (max-width: 640px) {
  .ft-states { grid-template-columns: 1fr; }
  .ump-grid { grid-template-columns: 1fr; }
}


/* ---------- «تبدیل به خرید» (2.31) ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 14px 0; background: var(--surface); }
.trust-strip .ts-nums { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 700; }
.trust-strip .ts-nums span { display: inline-flex; gap: 6px; align-items: center; }
.trust-strip .ts-nums [data-lucide] { width: 16px; height: 16px; color: var(--o-500, #ff6a00); }
.trust-strip .ts-quote { margin: 0; flex: 1 1 280px; max-width: 520px; font-size: 13px; }
.trust-strip blockquote { margin: 0 0 3px; color: var(--ink-2, inherit); line-height: 1.8; }
.trust-strip figcaption { color: var(--muted); font-size: 12px; }
.trust-strip figcaption::first-letter { color: #f5a400; }
.suggest-box { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--o-500, #ff6a00); background: var(--sel-bg, #FFF3E8); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.suggest-box p { margin: 0 0 4px; line-height: 1.9; }
.suggest-box .sb-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--o-500, #ff6a00); color: #fff; flex: none; }
.pay-resume { align-items: center; }
@media (max-width: 640px) { .trust-strip { padding: 10px 12px; } .pay-resume { flex-wrap: wrap; } }


/* ---------- «کپی و همگام‌سازی غرفه‌ها» (2.32) ---------- */
.cp-sync { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-filters { margin-top: 10px; }
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; margin-top: 18px; align-items: start; }
.cp-list { padding: 0; overflow: hidden; }
.cp-list .bulk-bar { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cp-row { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cp-row .dr-main { flex: 1; min-width: 0; display: grid; }
.cp-row .dr-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.cp-row .pimg { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.cp-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.cp-side h4.sub { margin-top: 16px; }
.cp-target { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 0; }
.cp-target .input { max-width: 90px; height: 34px; }
.cp-rule { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; font-size: 12.5px; }
.cp-rule .input { height: 34px; padding: 0 6px; min-width: 0; }
.cp-rule .input:first-of-type { width: 96px; }
.cp-rule .input:nth-of-type(2) { width: 56px; }
.cp-rule .input:nth-of-type(3) { width: 76px; }
.cp-mini { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.cp-rep { margin-bottom: 6px; }
.cp-sum { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--o-600, #e65c00); }
.cp-cmp { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.cp-cmp li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
@media (max-width: 980px) { .cp-layout { grid-template-columns: 1fr; } .cp-side { position: static; max-height: none; } }

/* A form never grows wider than its card: a select with a long booth name used to stretch the page on phones
   (the off-screen menu then slid into view when the page scrolled sideways) */
.form { grid-template-columns: minmax(0, 1fr); }
select.input { max-width: 100%; }
.cp-layout > * { min-width: 0; }

/* 2.32.2: where the copy goes, always visible */
.cp-route { border: 1px solid var(--o-500, #ff6a00); background: var(--sel-bg, #FFF3E8); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.9; }
.cp-route.cp-route-empty { border-color: #e5484d; background: #fff1f1; }
.cp-dest.cp-need { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }

/* 2.33 «بروزرسانی از منبع: بقیه محصولات غرفه»: steps, next action, tools, filters, apply summary */
.dkr-taskbox { margin-bottom: 12px; }
.dkr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.dkr-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, #eee); background: var(--surface, #fff); color: inherit; text-decoration: none; min-width: 0; }
.dkr-step .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--muted-bg, #f2f2f2); color: var(--muted); }
.dkr-step b { display: block; font-size: 14px; }
.dkr-step small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.dkr-step.is-active { border-color: var(--o-500, #ff6a00); box-shadow: 0 0 0 3px rgba(255, 106, 0, .10); }
.dkr-step.is-active .n { background: var(--o-500, #ff6a00); color: #fff; }
.dkr-step.is-done .n { background: var(--green-bg); color: var(--green); }
a.dkr-step:hover { border-color: var(--o-500, #ff6a00); }
.dkr-next { display: flex; gap: 14px; align-items: center; border-inline-start: 4px solid var(--o-500, #ff6a00); }
.dkr-next .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sel-bg, #FFF3E8); color: var(--o-500, #ff6a00); }
.dkr-next .tx { flex: 1; min-width: 0; }
.dkr-next .tx b { font-size: 15px; }
.dkr-next .tx p { margin: 4px 0 0; }
.dkr-next .act { flex: none; }
.dkr-next .dkr-progress { margin: 6px 0 0; }
.dkr-tools { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.dkr-tool h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 14px; }
.dkr-tool h4 svg { width: 17px; height: 17px; color: var(--o-500, #ff6a00); }
.dkr-tool .btn-row { margin-top: 8px; }
.dkr-tool select.input { max-width: 100%; }
.dkr-rules { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2, #faf7f4); line-height: 1.9; overflow-wrap: anywhere; }
.dkr-pricing-out { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line-strong, #ddd); border-radius: 10px; }
.dkr-pricing-out p { margin: 0 0 4px; }
.dkr-eff, .dkr-ex, .dkr-held, .dkr-notes { margin: 4px 0; padding-inline-start: 18px; line-height: 1.9; }
.dkr-eff .up { color: var(--red); }
.dkr-eff .down { color: var(--green); }
.dkr-held { color: var(--muted); }
.dkr-notes { list-style: none; padding: 0; margin-top: 10px; }
.dkr-notes li { display: flex; gap: 6px; align-items: flex-start; }
.dkr-notes svg { width: 14px; height: 14px; flex: none; margin-top: 5px; color: var(--muted); }
.dkr-line { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.dkr-line svg { width: 15px; height: 15px; vertical-align: -3px; }
.input.input-xs { height: 32px; padding: 2px 8px; font-size: 13px; width: auto; display: inline-block; }
input.input-xs[type=number] { width: 72px; }
.dkr-auto-box .check { align-items: flex-start; line-height: 2.2; }
.dkr-report { margin: 8px 0 0; color: var(--muted); }
.dkr-report svg { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.dkr-search { margin-bottom: 10px; }
.dkr-filters { display: grid; gap: 8px; margin-bottom: 10px; }
.dkr-frow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dkr-frow .lbl { font-size: 12px; color: var(--muted); min-width: 92px; }
.dkr-frow .chip svg { width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 3px; }
.dkr-sort { margin-inline-start: auto; }
.dkr-apply { border: 1px solid var(--o-500, #ff6a00); margin-bottom: 10px; }
.dkr-apply h4 { margin: 0 0 8px; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.dkr-apply h4 svg { width: 17px; height: 17px; color: var(--o-500, #ff6a00); }
.dkr-apply-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; }
.dkr-apply-sum { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #faf7f4); font-size: 13px; }
.dkr-pickbar { margin-bottom: 8px; }
.dkr-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; }
.dkr-chips .chip svg { width: 12px; height: 12px; vertical-align: -2px; }
.dkr-xtra { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.dkr-pct { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--muted-bg, #f2f2f2); }
.dkr-pct.up { background: var(--red-bg); color: var(--red); }
.dkr-pct.down { background: var(--green-bg); color: var(--green); }
.dkr-profit { font-size: 12px; color: var(--green); }
.dkr-profit.neg { color: var(--red); }
.dkr-warn { font-size: 12px; color: #b45309; }
.dkr-row.is-big { border-color: #f59e0b; }
[data-dkr-list] { transition: opacity .15s; }
[data-dkr-list].dkr-loading { opacity: .45; pointer-events: none; }
@media (max-width: 760px) {
  .dkr-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dkr-step { padding: 10px 12px; }
  .dkr-next { flex-wrap: wrap; }
  .dkr-next .act { flex: 1 1 100%; }
  .dkr-next .act .btn { width: 100%; justify-content: center; }
  .dkr-tools { grid-template-columns: minmax(0, 1fr); }
  .dkr-frow .lbl { min-width: 0; flex: 1 1 100%; }
  .dkr-sort { margin-inline-start: 0; }
  .dkr-apply-opts { flex-direction: column; align-items: flex-start; }
  .dkr-xtra { grid-column: 2; }
}

/* 2.34 «بازبینی دقیق تطبیق» and admin «کیفیت تطبیق» */
.dkr-verify { border: 1px solid var(--o-500, #ff6a00); }
.dkr-cand img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.dkr-cand.is-good { border-color: var(--green); }
.dkr-sigs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.mq-stats { margin-bottom: 12px; }
.mq-list { display: grid; gap: 10px; }
.mq-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mq-side { display: grid; gap: 4px; align-content: start; min-width: 0; }
.mq-side img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line, #eee); }
.mq-side b { font-size: 13px; overflow-wrap: anywhere; }
.mq-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.mq-row.is-ok { border-color: var(--green); background: var(--green-bg); }
.mq-row.is-bad { border-color: var(--red); background: var(--red-bg); }
.mq-row.busy { opacity: .5; }
@media (max-width: 640px) { .mq-side img { max-width: 120px; } }

/* 2.34.1 «بروزرسانی از منبع»: nothing moved by basalambot → where the booth's products are; the booth ratio pattern */
.sync-empty { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--sel-bg, #FFF3E8); border: 1px solid var(--o-500, #ff6a00); }
.sync-empty .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface, #fff); color: var(--o-500, #ff6a00); }
.sync-empty > div { flex: 1 1 260px; min-width: 0; }
.sync-empty p { margin: 4px 0 0; }
.dkr-ratio { margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--o-500, #ff6a00); }
.dkr-ratio input[name=ratio] { width: 80px; }
.dkr-ratio p { margin: 6px 0 0; }
@media (max-width: 640px) { .sync-empty .btn { width: 100%; justify-content: center; } }

/* 2.34.1 the tools of «بقیه محصولات غرفه» in one panel with tabs (instead of four squeezed cards) */
.dkr-toolbox { padding: 0; overflow: hidden; margin-top: 12px; }
.dkr-ttabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line, #eee); background: var(--surface-2, #faf7f4); overflow-x: auto; scrollbar-width: none; }
.dkr-ttabs::-webkit-scrollbar { display: none; }
.dkr-ttabs button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 10px 10px 0 0; }
.dkr-ttabs button svg { width: 16px; height: 16px; }
.dkr-ttabs button:hover { color: var(--text, #222); }
.dkr-ttabs button.on { color: var(--o-500, #ff6a00); border-bottom-color: var(--o-500, #ff6a00); background: var(--surface, #fff); }
.dkr-ttabs .count { font-style: normal; font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--o-500, #ff6a00); color: #fff; line-height: 1.7; }
.dkr-ttabs .count.on { background: var(--green); }
.dkr-toolbox .dkr-tool { padding: 16px 18px; border: 0; }
.dkr-toolbox .dkr-tool > h4 { display: none; }
.dkr-toolbox .dkr-tool > p, .dkr-toolbox .dkr-tool .dkr-notes, .dkr-toolbox .dkr-tool .dkr-rules, .dkr-toolbox .dkr-ratio, .dkr-toolbox .dkr-pricing-out { max-width: 860px; }
.dkr-toolbox .dkr-tool select.input:not(.input-xs) { max-width: 420px; }
.dkr-toolbox .dkr-verify { border: 0; }
.dkr-notes li { display: block; position: relative; padding-inline-start: 22px; line-height: 2; }
.dkr-notes li > svg:first-child { position: absolute; inset-inline-start: 0; top: 7px; margin: 0; }
.dkr-toolbox .btn-row { gap: 8px; flex-wrap: wrap; }
.dkr-toolbox .dkr-line { gap: 8px 10px; }
@media (max-width: 760px) {
  .dkr-ttabs button { padding: 9px 10px; font-size: 13px; }
  .dkr-toolbox .dkr-tool { padding: 12px; }
  .dkr-toolbox .btn-row > form, .dkr-toolbox .btn-row > .btn { flex: 1 1 100%; }
  .dkr-toolbox .btn-row .btn { width: 100%; justify-content: center; }
}

/* 2.35 «سایت‌های من» (site builders) */
.ch-nav { margin: 0 0 14px; }
.ch-nav a svg { width: 15px; height: 15px; vertical-align: -3px; margin-inline-end: 4px; }
.ch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ch-stats > .card, .ch-stats > a.card { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.ch-stats b { font-size: 22px; }
.ch-stats span { font-size: 12px; color: var(--muted); }
.ch-stats .warn { border-color: #f59e0b; background: #fffbeb; }
.ch-stats.sm b { font-size: 18px; }
.ch-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.ch-pf { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; border: 2px solid var(--line, #eee); background: var(--surface, #fff); color: inherit; text-decoration: none; border-top: 4px solid var(--pf); }
.ch-pf.on { border-color: var(--pf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf) 18%, transparent); }
.ch-pf.soon { opacity: .65; }
.ch-pf small { color: var(--muted); font-size: 12px; }
.ch-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ch-site { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; border-top: 4px solid var(--pf); min-width: 0; }
.ch-site .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ch-site .pf { font-size: 12px; font-weight: 700; color: var(--pf); }
.ch-site .t { font-size: 16px; }
.ch-site .nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.ch-site.add { align-items: center; justify-content: center; border-style: dashed; border-top-width: 1px; min-height: 140px; color: var(--muted); }
.ch-site.add svg { width: 26px; height: 26px; }
.ch-empty { text-align: center; }
.ch-connect { margin-top: 4px; }
.ch-steps { padding-inline-start: 20px; line-height: 2; }
.ch-help { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #faf7f4); font-size: 13px; line-height: 1.9; }
.ch-table .thumb, .table .thumb { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line, #eee); }
.ch-table tr.is-off { opacity: .55; }
.ch-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ch-price { display: inline-flex; gap: 4px; }
.ch-price .input { width: 110px; }
.ch-settings .card { margin-bottom: 12px; }
.ch-settings h3 { display: flex; gap: 6px; align-items: center; font-size: 15px; margin: 0 0 10px; }
.ch-cat .input { max-width: 340px; }
.ch-source .seg-pills { margin: 8px 0; }
.ch-src-in { display: grid; gap: 8px; }
.ch-src-in .btn { justify-self: start; }
.ch-results { margin-top: 12px; }
.ch-res-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.ch-pager { margin-inline-start: auto; display: inline-flex; gap: 6px; align-items: center; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ch-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line, #eee); border-radius: 12px; background: var(--surface, #fff); cursor: pointer; font-size: 12.5px; min-width: 0; }
.ch-item:has(input:checked) { border-color: var(--o-500, #ff6a00); background: var(--sel-bg, #FFF3E8); }
.ch-item input { position: absolute; top: 8px; inset-inline-start: 8px; }
.ch-item img, .ch-item .noimg { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.ch-item .noimg { background: var(--surface-2, #f5f5f5); }
.ch-item span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-item small { color: var(--muted); }
.ch-item small.on { color: var(--green); }
.ch-item.oos { opacity: .7; }
.ch-targets { margin-top: 12px; }
.ch-site-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 8px 0; }
.ch-pick { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #eee); border-inline-start: 4px solid var(--pf); border-radius: 12px; cursor: pointer; }
.ch-pick:has(input:checked) { background: var(--sel-bg, #FFF3E8); border-color: var(--o-500, #ff6a00); border-inline-start-color: var(--pf); }
.ch-pick.off { opacity: .5; cursor: not-allowed; }
.ch-pick span { display: flex; flex-direction: column; min-width: 0; }
.ch-pick small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ch-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: 8px; z-index: 4; }
.ch-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ch-cat-list { display: grid; gap: 8px; margin-top: 10px; }
.ch-cat { display: flex; gap: 12px; align-items: flex-start; }
.ch-cat > img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; }
.ch-cat .body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ch-health { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ch-health .bar { width: 120px; height: 7px; border-radius: 9px; background: var(--muted-bg, #eee); overflow: hidden; }
.ch-health .bar i { display: block; height: 100%; }
.ch-health .bar i.ok { background: var(--green); }
.ch-health .bar i.mid { background: #f59e0b; }
.ch-health .bar i.low { background: var(--red); }
.ch-onsites { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.chip-ghost { background: transparent; border: 1px dashed var(--line-strong, #ddd); color: var(--muted); }
.ch-edit summary { cursor: pointer; }
.ch-watch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line, #eee); }
.ch-watch:last-child { border-bottom: 0; }
.ch-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card-inline { margin-bottom: 8px; }
.ch-pf-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ch-pf-admin > .card { border-top: 4px solid var(--pf); }
.ch-pf-admin .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ch-tech { border-inline-start: 4px solid var(--pf); }
.ch-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.ch-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.ch-bars i { display: block; width: 100%; min-height: 2px; background: var(--o-500, #ff6a00); border-radius: 4px 4px 0 0; }
.ch-bars small { font-size: 10px; color: var(--muted); }
@media (max-width: 760px) {
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-cat { flex-wrap: wrap; }
  .ch-bulk { position: static; }
  .ch-pager { margin-inline-start: 0; }
}

/* 2.35 «انتقال به…»: one destination per menu entry */
.ch-dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ch-dest { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; border-top: 5px solid var(--pf); transition: transform .12s, box-shadow .12s; min-width: 0; }
.ch-dest:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.ch-dest .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ch-dest .logo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--pf); color: #fff; font-weight: 800; font-size: 13px; }
.ch-dest .logo svg { width: 16px; height: 16px; }
.ch-dest b { font-size: 16px; }
.ch-dest p { margin: 0; line-height: 1.9; }
.ch-dest .nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.ch-dest .go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--pf); font-weight: 700; font-size: 13px; }
.ch-dest .go svg { width: 15px; height: 15px; }
.ch-dest.soon { opacity: .75; }
.ch-dest.multi { border-top-style: dashed; }
.ch-dest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pf) 14%, var(--surface, #fff)), var(--surface, #fff)); border: 1px solid color-mix(in srgb, var(--pf) 30%, transparent); }
.ch-dest-head .t { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ch-dest-head .logo { flex: none; padding: 8px 14px; border-radius: 12px; background: var(--pf); color: #fff; font-weight: 800; }
.ch-dest-head h2 { margin: 0; font-size: 19px; }
.ch-dest-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.ch-dest-sites { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.ch-chip-site { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line, #eee); background: var(--surface, #fff); color: inherit; text-decoration: none; }
.ch-chip-site small { color: var(--muted); }
.ch-chip-site.add { flex-direction: column; align-items: stretch; }
.ch-chip-site.add summary { cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: var(--o-500, #ff6a00); font-weight: 700; }
.ch-chip-site.add[open] { min-width: min(100%, 360px); }
.ch-soon { text-align: center; padding: 26px 18px; }
.ch-soon h3 { justify-content: center; display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) {
  .ch-dest-head { padding: 12px; }
  .ch-dest-head h2 { font-size: 16px; }
}

/* 2.37 — professional sync of the site builders */
.ch-flags { position: relative; display: inline-block; }
.ch-flags > summary { list-style: none; cursor: pointer; }
.ch-flags > summary::-webkit-details-marker { display: none; }
.ch-flags[open] > form { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 20; width: 280px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); text-align: start; }
.ch-locks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ch-locks .check { margin: 0; }
.ch-rules td { min-width: 90px; }
.ch-rules .input-xs { width: 100%; }
.ch-health .ch-stats { margin: 10px 0; }
.ch-health .btn-row { flex-wrap: wrap; }
.ch-chart { width: 100%; height: auto; display: block; color: var(--text, #111); }
.ch-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ch-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
tr.is-off td { opacity: .55; }
@media (max-width: 640px) {
  .ch-flags[open] > form { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* 2.38 — whole Digikala lists, filters, templates and category preview for the sites */
.ch-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.ch-list-in { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100%; }
.ch-count-out { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #f7f7f8); font-size: 13px; }
.ch-sample { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.ch-sample span { flex: 0 0 90px; display: flex; flex-direction: column; gap: 4px; }
.ch-sample img { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; background: #fff; }
.ch-sample small { font-size: 11px; line-height: 1.4; max-height: 2.8em; overflow: hidden; }
.ch-filters, .ch-options, .ch-save-tpl { margin: 12px 0; padding: 12px; border: 1px dashed var(--line, #e5e7eb); border-radius: 12px; }
.ch-filters h4, .ch-options h4 { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 14px; }
.ch-prog { height: 8px; border-radius: 6px; background: var(--line, #e5e7eb); overflow: hidden; margin: 8px 0; }
.ch-prog i { display: block; height: 100%; background: var(--o-500, #ff6a00); transition: width .4s; }
.ch-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.ch-tpl .btn-row { flex-wrap: wrap; }

/* 2.39 — site builders by plan: usage meter and locked parts */
.ch-meter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ch-meter-i { flex: 1 1 160px; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); position: relative; }
.ch-meter-i span { font-size: 12px; color: var(--muted); }
.ch-meter-i b { font-size: 18px; }
.ch-meter-i b small { font-size: 12px; font-weight: 400; color: var(--muted); }
.ch-meter-i i { display: block; height: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--o-500, #ff6a00) var(--p), var(--line, #e5e7eb) var(--p)); }
.ch-meter-i.warn { border-color: #f59e0b; background: #fffbeb; }
.ch-meter-i.full { border-color: #dc2626; background: #fef2f2; }
.is-locked { opacity: .7; }
.card.is-locked input, .card.is-locked select { pointer-events: none; }
label.is-locked { cursor: not-allowed; }

/* 2.40 — update center, clearer site page, presets, tips, onboarding */
.ch-status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; margin: 10px 0; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); font-size: 13px; }
.ch-status-strip .dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px rgba(148, 163, 184, .2); }
.ch-status-strip.on { border-color: rgba(22, 163, 74, .35); background: #f0fdf4; }
.ch-status-strip.on .dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.ch-status-strip span { color: var(--muted); }
.ch-status-strip .push { margin-inline-start: auto; }
.ch-dest-strips { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ch-switch { position: relative; width: 46px; height: 26px; border-radius: 20px; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; transition: background .2s; }
.ch-switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .2s; }
.ch-switch.on { background: #16a34a; }
.ch-switch.on i { inset-inline-start: 23px; }
.ch-switch.big { width: 58px; height: 32px; }
.ch-switch.big i { width: 26px; height: 26px; }
.ch-switch.big.on i { inset-inline-start: 29px; }
.ch-switch[disabled] { opacity: .5; cursor: not-allowed; }
.ch-site-tabs { margin: 12px 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.ch-site-tabs a { white-space: nowrap; }
.ch-onboard .ch-steps-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.ch-steps-list li { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2, #f7f7f8); }
.ch-steps-list li .n { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line, #e5e7eb); font-weight: 700; font-size: 13px; }
.ch-steps-list li.done { color: #15803d; }
.ch-steps-list li.done .n { background: #16a34a; border-color: #16a34a; color: #fff; }
.ch-steps-list li .btn { margin-inline-start: auto; }
.ch-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ch-preset { display: block; margin: 0; }
.ch-preset > button, a.ch-preset { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; border: 2px solid var(--line, #e5e7eb); background: var(--surface, #fff); text-align: start; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.ch-preset .ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2, #f3f4f6); }
.ch-preset small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.ch-preset.on > button, a.ch-preset.on { border-color: var(--o-500, #ff6a00); background: var(--sel-bg, #fff3e8); }
.ch-preset > button:hover, a.ch-preset:hover { border-color: var(--o-500, #ff6a00); }
.ch-summary .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #f0f0f0); }
.ch-summary .row:last-child { border-bottom: 0; }
.ch-summary .k { flex: 0 0 150px; display: flex; gap: 6px; align-items: center; font-weight: 600; }
.ch-summary .v { flex: 1; color: var(--muted); font-size: 13px; }
.ch-sec-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.ch-sec-head h3 { display: flex; gap: 6px; align-items: center; margin: 0 0 4px; }
.ch-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--surface-2, #eef0f3); color: var(--muted); font-size: 11px; font-weight: 700; cursor: help; vertical-align: 1px; margin-inline-start: 4px; }
.ch-tip:hover::after, .ch-tip:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%); width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 10px; background: #1f2937; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.7; white-space: normal; z-index: 30; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.ch-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.ch-hub-site { border-top: 4px solid var(--pf, #ff6a00); display: flex; flex-direction: column; gap: 10px; }
.ch-hub-site.off { border-top-color: #cbd5e1; }
.ch-hub-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ch-hub-top h3 { margin: 2px 0; }
.ch-hub-top h3 a { color: inherit; text-decoration: none; }
.ch-hub-top .pf { font-size: 11px; color: var(--muted); }
.ch-hub-top form { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ch-hub-state { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ch-hub-state > div { display: flex; flex-direction: column; padding: 8px; border-radius: 10px; background: var(--surface-2, #f7f7f8); }
.ch-hub-state span { font-size: 11px; color: var(--muted); }
.ch-hub-state b { font-size: 14px; }
.ch-hub-state small { font-size: 11px; color: var(--muted); }
.ch-hub-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-hub-presets form { margin: 0; }
.ch-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--line, #e5e7eb); background: var(--surface, #fff); font: inherit; font-size: 12px; color: inherit; cursor: pointer; text-decoration: none; }
.ch-pill.on { border-color: var(--o-500, #ff6a00); background: var(--sel-bg, #fff3e8); font-weight: 600; }
.ch-pill svg { width: 14px; height: 14px; }
.ch-hub-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ch-hub-acts form { margin: 0; }
@media (max-width: 640px) {
  .ch-hub { grid-template-columns: 1fr; }
  .ch-hub-state { grid-template-columns: repeat(2, 1fr); }
  .ch-summary .row { flex-wrap: wrap; }
  .ch-summary .k { flex: 1 1 100%; }
  .ch-status-strip .push { margin-inline-start: 0; width: 100%; }
  .ch-sec-head { flex-direction: column; }
  .ch-tip:hover::after, .ch-tip:focus::after { inset-inline-start: auto; inset-inline-end: -8px; transform: none; max-width: 220px; }
  .ch-site-head .btn-row { width: 100%; }
}

/* 2.41 — the site-builder transfer page (same page as the Basalam transfer) */
.ch-price-site { min-width: 190px; }
.ch-price-site select { border: 0; background: transparent; font: inherit; color: inherit; outline: 0; }
.ch-radio-cards { grid-template-columns: repeat(2, 1fr); }
#chDrawer .ch-site-picks { display: flex; flex-direction: column; gap: 6px; }

/* 2.42 — «به‌زودی» */
.ch-soon-card { display: flex; gap: 14px; align-items: flex-start; border-inline-start: 4px solid #3b82f6; }
.ch-soon-card .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #2563eb; }
.ch-soon-card h3 { margin: 0 0 4px; }
.plan-soon { vertical-align: 1px; margin-inline-start: 6px; }

/* 2.45 — several booths at once */
.mb-box legend { display: flex; gap: 6px; align-items: center; }
.mb-booths { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.mb-booth { padding: 8px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.mb-booth.on { border-color: var(--o-300, #ffb27a); background: var(--o-50, #fff7f0); }
.mb-prof { margin-top: 8px; }
.mb-prof summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--o-600, #e65c00); }
.mb-prof .toggle { margin-top: 6px; }
.mb-rule { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.mb-rule .input { flex: 1; min-width: 0; }
.mb-prices { display: block; margin-top: 3px; font-size: 11px; color: var(--muted, #777); line-height: 1.6; }
.tg-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tg-sum > div { display: flex; flex-direction: column; }
.tg-sum b { font-size: 22px; }
.tg-sum span { font-size: 12px; color: var(--muted); }
.tg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.tg-bar { height: 8px; border-radius: 6px; background: var(--line, #e5e7eb); overflow: hidden; margin: 8px 0; }
.tg-bar i { display: block; height: 100%; background: var(--o-500, #ff6a00); transition: width .4s; }

/* 2.46 «گروه غرفه‌ها» */
.bg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bg-steps > div { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.bg-steps b { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--o-50, #fff3ea); color: var(--o-600, #e65c00); }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bg-card { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.bg-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-1px); }
.bg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-warn { background: #fff4d6 !important; color: #8a5a00 !important; border-color: #f3d48a !important; }
.bg-followers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.bg-follower { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.bg-follower .field { width: 90px; display: flex; align-items: center; gap: 4px; }
.bg-follower .field input { width: 100%; text-align: center; }
.bg-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bg-pick .chip.on, .bg-locks .chip.on { background: var(--o-500, #ff6a00); color: #fff; border-color: transparent; }
.bg-locks { display: flex; flex-wrap: wrap; gap: 4px; }
.bg-locks form { margin: 0; }
.bg-locks .chip { cursor: pointer; font-size: 11px; }
.bg-fixed { display: flex; gap: 4px; align-items: center; margin: 0; }
.bg-fixed .input { width: 110px; padding: 4px 8px; }
.bg-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0; }
.bg-auto > div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bg-auto span { color: var(--muted); }
.bg-checks { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.bg-diff { margin-bottom: 10px; }
.bg-diff summary { cursor: pointer; padding: 6px 0; }
.tg-sched { margin-top: 12px; }
@media (max-width: 640px) { .bg-fixed .input { width: 80px; } .bg-follower { flex-wrap: wrap; } }

/* 2.47 «محدوده قیمت» */
/* 2.63 «محدوده قیمت» editor */
.pb-editor { --pb-in: #16a34a; --pb-out: #dc2626; display: flex; flex-direction: column; gap: 10px; }
.pb-head { background: var(--surface-2, #faf6f2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 8px; }
.pb-ruler { position: relative; padding-bottom: 18px; }
.pb-track { position: relative; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--pb-in) 22%, var(--surface)); overflow: hidden; }
.pb-track.has-in { background: repeating-linear-gradient(-45deg, var(--line) 0 4px, var(--surface) 4px 8px); }
.pb-track.free { background: linear-gradient(90deg, color-mix(in srgb, var(--pb-in) 30%, var(--surface)), color-mix(in srgb, var(--pb-in) 18%, var(--surface))); }
.pb-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.pb-track .pb-seg-in { background: var(--pb-in); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pb-in) 25%, transparent); }
.pb-track .pb-seg-out { background: repeating-linear-gradient(45deg, var(--pb-out) 0 4px, color-mix(in srgb, var(--pb-out) 65%, #fff) 4px 8px); }
.pb-ticks { position: absolute; inset: 16px 0 0; height: 16px; }
.pb-ticks span { position: absolute; transform: translateX(50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.pb-ticks span:first-child { transform: none; }
.pb-ticks span:last-child { transform: translateX(100%); }
.pb-sum { margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.pb-sum b { color: var(--pb-in); }
.pb-sum b.pb-x, .pb-count b.pb-x { color: var(--pb-out); }
.pb-count { margin: 4px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); font-size: 12.5px; }
.pb-count .pb-pass { color: var(--pb-in); }
.pb-rows { display: flex; flex-direction: column; gap: 8px; }
.pb-rows:empty { display: none; }
.pb-row { border: 1px solid var(--line); border-inline-start: 4px solid var(--pb-in); border-radius: 12px; padding: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.pb-row.pb-out { border-inline-start-color: var(--pb-out); }
.pb-row.bad { box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 40%, transparent); }
.pb-row-top { display: flex; align-items: center; gap: 8px; }
.pb-mode { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--muted-bg, #f4ede7); }
.pb-mode button { border: 0; background: transparent; padding: 5px 10px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pb-mode button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pb-in .pb-mode button.on { color: var(--pb-in); }
.pb-out .pb-mode button.on { color: var(--pb-out); }
.pb-mode button[disabled] { cursor: not-allowed; }
.pb-del { margin-inline-start: auto; width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--red-bg, #fee2e2); color: var(--red, #dc2626); font-size: 18px; line-height: 1; cursor: pointer; }
.pb-fields { display: flex; align-items: center; gap: 6px; }
.pb-f { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pb-f:focus-within { border-color: var(--o-400, #ff8a3d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-500, #ff6a00) 14%, transparent); }
.pb-f span { font-size: 12px; font-weight: 800; color: var(--muted); }
.pb-f input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 800; direction: ltr; text-align: left; color: var(--ink); }
.pb-f em { font-style: normal; font-size: 11px; color: var(--muted); }
.pb-dash { color: var(--muted); }
.pb-quick { display: flex; gap: 4px; flex-wrap: wrap; }
.pb-quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 2px 9px; font: inherit; font-size: 11.5px; color: var(--ink-3); cursor: pointer; }
.pb-quick button:hover { border-color: var(--o-400, #ff8a3d); color: var(--o-500, #ff6a00); }
.pb-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-add { border: 1px dashed var(--o-400, #ff8a3d); background: color-mix(in srgb, var(--o-500, #ff6a00) 7%, var(--surface)); color: var(--o-600, #e85f00); border-radius: 10px; padding: 7px 14px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.pb-add[disabled] { opacity: .45; cursor: not-allowed; }
.pb-pre-l { font-size: 12px; color: var(--muted); margin-inline-start: 4px; }
.pb-preset { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.pb-preset:hover { border-color: var(--o-400, #ff8a3d); }
.pb-preset[disabled] { opacity: .45; cursor: not-allowed; }
.pb-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 800; color: var(--ink-3); padding: 4px 0; }
.pb-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pb-opts.locked { opacity: .6; }
.pb-opt-h { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.pb-opt-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pb-opt-c button { text-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 9px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.pb-opt-c button b { font-size: 12.5px; color: var(--ink); }
.pb-opt-c button small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.pb-opt-c button.on { border-color: var(--o-500, #ff6a00); background: color-mix(in srgb, var(--o-500, #ff6a00) 8%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--o-500, #ff6a00) 15%, transparent); }
.pb-opt-c button[disabled] { cursor: not-allowed; }
.pb-warn { color: #b45309; margin: 0; }
.pb-lock { margin: 0; }
tr.pb-out { opacity: .55; }
.pb-chip { margin-top: 4px; display: inline-block; }
@media (max-width: 640px) {
  .pb-opt-c { grid-template-columns: 1fr; }
  .pb-mode button { padding: 5px 8px; font-size: 12px; }
  .pb-fields { flex-wrap: wrap; } .pb-dash { display: none; } .pb-f { flex-basis: 100%; }
  .pb-ticks span:nth-child(2), .pb-ticks span:nth-child(4) { display: none; }
}

/* ---------- Panel menu 2.60: quick search, pins, headings, plan names, collapsed rail, phone tab bar ---------- */
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.side-top .logo { min-width: 0; }
.side-rail-btn { flex: none; width: 34px; height: 34px; margin-top: 4px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #A8978A; cursor: pointer; }
.side-rail-btn:hover { color: #fff; }
.side-rail-btn [data-lucide] { width: 17px; height: 17px; }
.cmd-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #A8978A; font: inherit; font-size: 13.5px; cursor: pointer; text-align: right; }
.cmd-open:hover { border-color: rgba(255, 106, 0, .55); color: #fff; }
.cmd-open [data-lucide] { width: 16px; height: 16px; flex: none; }
.cmd-open span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-open kbd, .cmd kbd { font: 700 10.5px/1 ui-monospace, monospace; direction: ltr; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); white-space: nowrap; }
.side-pins .side-label, .side-label { display: flex; align-items: center; gap: 6px; }
.side-label [data-lucide] { width: 13px; height: 13px; color: #ffb020; }
.side-pins .side-label { padding-top: 4px; }
.side-pins .side-nav a { padding: 8px 12px; font-size: 13.5px; }
.side-pins { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side-pins[hidden] { display: none; }
.side-nav a span:first-of-type, .side-nav a > span:not(.count):not(.nav-plan):not(.soon-badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item { position: relative; }
.sg-item > a { padding-inline-end: 34px; }
.pin-btn { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: #8B7A6E; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.pin-btn [data-lucide] { width: 14px; height: 14px; }
.sg-item:hover .pin-btn, .pin-btn:focus-visible, .pin-btn.on { opacity: 1; }
.pin-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pin-btn.on { color: #ffb020; }
.pin-btn.on [data-lucide] { fill: currentColor; }
@media (hover: none) { .pin-btn { opacity: .55; } }
.sg-sep { font-size: 10.5px; font-weight: 800; color: #7d6d62; padding: 10px 12px 3px; letter-spacing: .2px; }
.side-nav .nav-plan { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; color: #c9a98f; background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 1px 7px; white-space: nowrap; flex: none; }
.side-nav .nav-plan [data-lucide] { width: 11px; height: 11px; }
.sg-fly-head { display: none; }
.cmd-top { display: inline-grid; }

/* collapsed rail (computers) */
@media (min-width: 981px) {
  .app { transition: grid-template-columns .2s; }
  .app.rail { grid-template-columns: 76px 1fr; }
  .app.rail .sidebar { padding: 18px 10px; overflow-x: visible; }
  .app.rail .side-top { flex-direction: column; align-items: center; }
  .app.rail .logo { padding: 0 0 8px; }
  .app.rail .logo > :not(:first-child), .app.rail .logo small, .app.rail .logo b, .app.rail .logo span { display: none; }
  .app.rail .side-rail-btn [data-lucide] { transform: scaleX(-1); }
  .app.rail .menu-tools { flex-direction: column; margin: 6px 0 10px; }
  .app.rail .cmd-open { justify-content: center; padding: 10px; flex: none; width: 46px; }
  .app.rail .cmd-open span, .app.rail .cmd-open kbd, .app.rail .menu-all { display: none; }
  .app.rail .side-label { font-size: 0; padding: 10px 0 6px; justify-content: center; }
  .app.rail .side-label [data-lucide] { width: 14px; height: 14px; }
  .app.rail .side-nav a, .app.rail .side-logout { justify-content: center; padding: 11px 0; gap: 0; }
  .app.rail .side-nav a > span, .app.rail .side-logout > span, .app.rail .side-nav a .count { display: none; }
  .app.rail .side-nav a.active::before { right: -10px; }
  .app.rail .side-group > summary { justify-content: center; padding: 11px 0; }
  .app.rail .side-group > summary > :not([data-lucide]):not(.count) { display: none; }
  .app.rail .side-group > summary .count { position: absolute; top: 2px; inset-inline-start: 6px; font-size: 10px; padding: 0 5px; }
  .app.rail .side-group > summary [data-lucide] { width: 19px; height: 19px; }
  .app.rail .side-group:not(.fly) > .sg-body { display: none; }
  .app.rail .side-group.fly > .sg-body { position: fixed; inset-inline-start: 82px; width: 280px; max-height: calc(100vh - 24px); overflow-y: auto; margin: 0; padding: 8px; z-index: 90; background: var(--dark); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .app.rail .side-group.fly .sg-fly-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; font-weight: 900; color: #fff; font-size: 13.5px; }
  .app.rail .side-group.fly .sg-fly-head [data-lucide] { width: 16px; height: 16px; color: #ff8a3d; }
  .app.rail .side-group.fly .sg-body a { justify-content: flex-start; padding: 8px 12px; gap: 10px; }
  .app.rail .side-group.fly .sg-body a > span, .app.rail .side-group.fly .sg-body a .count { display: inline-flex; }
  .app.rail .side-group.fly .sg-body a > span:first-of-type { display: block; }
  .app.rail .side-card { display: none; }
}

/* quick search window */
.cmd { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; }
.cmd[hidden] { display: none; }
.cmd-back { position: absolute; inset: 0; background: rgba(20, 14, 10, .5); backdrop-filter: blur(3px); }
.cmd-box { position: relative; width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; animation: cmdIn .16s ease-out; }
@keyframes cmdIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.cmd-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmd-in [data-lucide] { width: 20px; height: 20px; color: var(--o-500); flex: none; }
.cmd-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.cmd-in kbd, .cmd-foot kbd { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.cmd-list { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.cmd-sec { font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 10px 10px 4px; }
.cmd-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); scroll-margin: 8px; }
.cmd-row.on { background: var(--o-50); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--o-500) 35%, transparent); }
.cmd-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--o-600); }
.cmd-row.on .cmd-ic { background: var(--o-500); color: #fff; }
.cmd-ic [data-lucide] { width: 17px; height: 17px; }
.cmd-txt { flex: 1; min-width: 0; display: grid; }
.cmd-txt b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-plan { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--o-600); background: var(--o-50); border-radius: 99px; padding: 2px 8px; }
.cmd-plan [data-lucide] { width: 12px; height: 12px; }
.cmd-star { color: #f5a300; display: inline-flex; }
.cmd-star [data-lucide] { width: 15px; height: 15px; fill: currentColor; }
.cmd-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 14px; line-height: 2; }
.cmd-empty a { color: var(--o-600); font-weight: 800; }
.cmd-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: var(--surface-2); }
.cmd-foot kbd { margin: 0 2px; }
body.cmd-on { overflow: hidden; }

/* phone tab bar */
.mtab { display: none; }
@media (max-width: 980px) {
  .mtab { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
  .mtab a, .mtab button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 12px; cursor: pointer; }
  .mtab [data-lucide] { width: 21px; height: 21px; }
  .mtab .on { color: var(--o-600); }
  .mtab .on [data-lucide] { stroke-width: 2.4; }
  .mtab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtab em { position: absolute; top: 2px; inset-inline-start: calc(50% + 4px); font-style: normal; font-size: 10px; font-weight: 800; background: var(--o-500); color: #fff; border-radius: 99px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; }
  .app .main { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .cmd { padding-top: 12px; }
  .cmd-box { max-height: calc(100dvh - 24px); }
  .cmd-foot { display: none; }
  .side-rail-btn, .cmd-open kbd { display: none; }
}
@media print { .mtab, .cmd { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .cmd-box { animation: none; } .app { transition: none; } }

/* 2.60.1: menu items never push the sidebar wider; long names wrap to a second line instead of being cut */
.side-nav { grid-template-columns: minmax(0, 1fr); }
.side-group, .sg-body, .sg-item, .sg-item > a, .side-group > summary { min-width: 0; max-width: 100%; }
.side-groups .sg-item > a > span:first-of-type:not(.count) { flex: 1 1 auto; white-space: normal; overflow: visible; line-height: 1.6; }
.cmd-open kbd { flex: none; }
@media (min-width: 981px) { .app.rail .side-groups .sg-item > a > span:first-of-type:not(.count) { white-space: nowrap; } }
@media (min-width: 981px) { .app.rail .sidebar { z-index: 80; } } /* the fly-out group shows above the page */
@media (max-width: 640px) { .topbar .cmd-top { display: none; } } /* phones: search is in «همه امکانات»; the title keeps its room */

/* 2.61 «گارانتی» editor (2.61.1 layout) */
.gr-intro { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.8; }
.gr-badge { flex-shrink: 0; background: var(--o-50); color: var(--o-600); border-radius: 99px; padding: 1px 9px; font-size: 11px; font-weight: 800; margin-top: 2px; }
.gr-modes { display: grid; gap: 6px; margin-bottom: 12px; }
.gr-mode { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; text-align: start; width: 100%; transition: border-color .15s, background .15s; }
.gr-mode:hover { border-color: var(--o-300); }
.gr-mode > i, .gr-mode > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.gr-mode-t { display: grid; gap: 1px; min-width: 0; }
.gr-mode-t b { font-size: 13.5px; }
.gr-mode-t small { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.gr-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.gr-mode.on { border-color: var(--o-500); background: var(--o-50); }
.gr-mode.on > i, .gr-mode.on > svg { color: var(--o-600); }
.gr-mode.on .gr-radio { border-color: var(--o-500); }
.gr-mode.on .gr-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--o-500); }
.gr-example { border: 1px dashed var(--o-300, var(--line)); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 6px; }
.gr-ex-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--o-600); }
.gr-ex-h svg, .gr-ex-h i { width: 14px; height: 14px; }
.gr-ex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.gr-ex-dk { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.gr-ex-arrow { color: var(--muted); }
.gr-ex-out { color: var(--text, inherit); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; }
.gr-ex-none { color: var(--muted); font-style: italic; }
.gr-step { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.gr-step-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.gr-step-h b { display: block; font-size: 13.5px; }
.gr-step-h small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.gr-num { width: 22px; height: 22px; border-radius: 50%; background: var(--o-500); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.gr-input { width: 100%; height: 42px; }
.gr-toks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 2px; font-size: 11.5px; color: var(--muted); }
.gr-tok { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 1px 7px; font: inherit; font-size: 11.5px; cursor: pointer; color: var(--o-600); }
.gr-tok::before { content: '+ '; color: var(--muted); }
.gr-tok:hover { border-color: var(--o-500); }
.gr-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.gr-pill { border: 1px solid var(--line); background: var(--surface-2); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 11.5px; cursor: pointer; color: var(--muted); text-align: start; }
.gr-pill span { color: var(--text, inherit); font-weight: 600; }
.gr-pill:hover { border-color: var(--o-500); }
.gr-rules { display: grid; gap: 8px; margin: 4px 0 8px; }
.gr-empty { font-size: 12px; color: var(--muted); margin: 0; }
.gr-rule { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; }
.gr-rule-if, .gr-rule-then { display: flex; gap: 6px; align-items: center; }
.gr-rule .input { height: 38px; min-width: 0; width: auto; flex: 1 1 0; font-size: 13px; padding-inline: 10px; }
.gr-rule select.input { flex: 1 1 0; }
.gr-rule [data-r=v] { flex: 1.2 1 0; }
.gr-rule .icon-btn { flex-shrink: 0; }
.gr-kw { font-size: 12px; font-weight: 800; color: var(--o-600); width: 36px; flex-shrink: 0; }
.gr-adv { margin: 10px 0 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.gr-adv summary { cursor: pointer; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.gr-adv summary svg, .gr-adv summary i { width: 15px; height: 15px; }
.gr-adv-body { display: grid; gap: 8px; margin-top: 8px; }
.gr-row { display: grid; gap: 4px; font-size: 12.5px; }
.gr-row .input { height: 40px; }
.gr-existing { margin: 8px 0; }
.gr-preview { margin-top: 10px; }
.gr-prev-out { margin-top: 8px; }
.gr-real { display: grid; gap: 8px; }
.gr-real-row { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: start; }
.gr-real-row img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.gr-real-t { font-size: 12px; font-weight: 700; margin-bottom: 2px; }


/* 2.62 «سفارش‌ها و ارسال» › همه غرفه‌ها */
.ord-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ord-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 13px; background: var(--muted-bg, #f6efe9); flex: none; max-width: 100%; }
.ord-seg a { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; color: var(--ink-3); text-decoration: none; min-width: 0; transition: background .15s, box-shadow .15s; }
.ord-seg a [data-lucide], .ord-seg a svg { width: 18px; height: 18px; flex: none; opacity: .7; }
.ord-seg a span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ord-seg a b { font-size: 13.5px; font-weight: 800; }
.ord-seg a small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.ord-seg a:hover { color: var(--ink); }
.ord-seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.ord-seg a.on [data-lucide], .ord-seg a.on svg { color: var(--o-500); opacity: 1; }
.ord-booths { display: flex; gap: 6px; flex: 1 1 320px; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.ord-bchip { display: inline-flex; align-items: center; gap: 7px; flex: none; max-width: 230px; padding: 6px 8px 6px 12px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .15s, background .15s; }
.ord-bchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--bc, var(--o-500)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc, var(--o-500)) 18%, transparent); }
.ord-bchip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ord-bchip b { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--muted-bg, #f6efe9); color: var(--ink); font-size: 11.5px; text-align: center; }
.ord-bchip:hover { border-color: color-mix(in srgb, var(--bc, var(--o-500)) 45%, var(--line)); }
.ord-bchip.on { border-color: var(--bc, var(--o-500)); background: color-mix(in srgb, var(--bc, var(--o-500)) 10%, var(--surface)); color: var(--ink); }
.ord-bchip.on b { background: var(--bc, var(--o-500)); color: #fff; }
.ord-bchip.all { padding-inline-start: 14px; }
.ord-bchip.zero:not(.on) { opacity: .6; }
.ord-scope-note { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.ord-scope-note [data-lucide], .ord-scope-note svg { width: 14px; height: 14px; color: var(--o-500); flex: none; }
.ord-auto { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px dashed var(--line-strong, var(--line)); color: var(--ink-3); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ord-auto [data-lucide], .ord-auto svg { width: 15px; height: 15px; color: var(--o-500); }
.orders-table .hq-chip.sm { margin-top: 4px; max-width: 150px; }
@media (max-width: 640px) {
  .ord-scope { padding: 8px; }
  .ord-seg { width: 100%; }
  .ord-seg a { flex: 1; justify-content: center; padding: 6px 8px; }
  .ord-seg a small { max-width: 110px; }
  .ord-booths { flex-basis: 100%; flex-wrap: nowrap; }
}

/* 2.63 «الگوهای انتقال» */
.tt-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.tt-list { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 2px; }
.tt-list-h { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.tt-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.tt-card:hover { border-color: color-mix(in srgb, var(--o-500) 35%, var(--line)); }
.tt-card.on { border-color: var(--o-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-500) 14%, transparent); }
.tt-card-main { display: block; padding: 12px 14px 8px; color: inherit; text-decoration: none; }
.tt-card-t { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tt-card-t b { font-size: 15px; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tt-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--muted-bg, #f6efe9); font-size: 11.5px; color: var(--ink-3); }
.tt-chips svg, .tt-chips [data-lucide] { width: 12px; height: 12px; }
.tt-card-a { display: flex; gap: 6px; align-items: center; padding: 8px 12px 12px; border-top: 1px dashed var(--line); }
.tt-card-a .menu-pop { margin-inline-start: auto; }
.tt-card-a .menu-pop-body { min-width: 200px; }
.tt-card-a .menu-pop-body button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: start; }
.tt-card-a .menu-pop-body button:hover { background: var(--o-50); }
.tt-card-a .menu-pop-body button.text-red { color: var(--red); }
.tt-empty { text-align: center; padding: 24px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tt-empty svg, .tt-empty [data-lucide] { width: 34px; height: 34px; color: var(--o-500); }
.tt-editor { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tt-top { position: sticky; top: 64px; z-index: 6; background: color-mix(in srgb, var(--bg, #fff) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.tt-name { display: flex; align-items: center; gap: 10px; }
.tt-name label { font-weight: 900; white-space: nowrap; color: var(--muted); font-size: 13px; }
.tt-name input { flex: 1; font-size: 16px; font-weight: 800; height: 46px; }
.tt-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tt-nav a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 12.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.tt-nav a svg, .tt-nav a [data-lucide] { width: 14px; height: 14px; }
.tt-nav a.on, .tt-nav a:hover { border-color: var(--o-500); color: var(--o-600, var(--o-500)); background: color-mix(in srgb, var(--o-500) 7%, var(--surface)); }
.tt-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 150px; }
.tt-sec > header { display: flex; gap: 12px; align-items: flex-start; }
.tt-sec > header h3 { margin: 0 0 2px; font-size: 16px; }
.tt-sec > header p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.tt-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--o-500) 12%, var(--surface)); color: var(--o-500); }
.tt-ic svg, .tt-ic [data-lucide] { width: 19px; height: 19px; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 12px; }
.tt-grid .fgroup { margin: 0; }
.tt-rules { display: flex; flex-direction: column; gap: 6px; }
.tt-rule-h, .tt-rule { display: grid; grid-template-columns: 1.3fr .8fr 1fr 34px; gap: 6px; align-items: center; }
.tt-rule-h span { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 0 4px; }
.tt-in { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.tt-in:focus-within { border-color: var(--o-400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-500) 12%, transparent); }
.tt-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 800; direction: ltr; text-align: left; color: var(--ink); }
.tt-in em { font-style: normal; font-size: 12px; color: var(--muted); }
.tt-in svg, .tt-in [data-lucide] { width: 16px; height: 16px; color: var(--muted); }
.tt-rm { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--red-bg); color: var(--red); cursor: pointer; display: grid; place-items: center; }
.tt-rm svg, .tt-rm [data-lucide] { width: 15px; height: 15px; }
.tt-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--o-400); background: color-mix(in srgb, var(--o-500) 6%, var(--surface)); color: var(--o-600, var(--o-500)); border-radius: 10px; padding: 7px 14px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.tt-add svg, .tt-add [data-lucide] { width: 15px; height: 15px; }
.tt-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; background: var(--surface-2, #faf6f2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.tt-calc-in label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin-bottom: 6px; }
.tt-calc-in label svg, .tt-calc-in label [data-lucide] { width: 16px; height: 16px; color: var(--o-500); }
.tt-calc-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.tt-calc-steps b { color: var(--ink); }
.tt-calc-steps em { font-style: normal; color: #b45309; }
.tt-calc-res { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tt-calc-res b { font-size: 24px; font-weight: 900; color: var(--o-600, var(--o-500)); }
.tt-gain { font-size: 12px; font-weight: 800; color: #16a34a; background: color-mix(in srgb, #16a34a 10%, transparent); padding: 1px 8px; border-radius: 99px; }
.tt-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.tt-radios label { cursor: pointer; position: relative; }
.tt-radios input { position: absolute; opacity: 0; pointer-events: none; }
.tt-radios span { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; height: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tt-radios span svg, .tt-radios span [data-lucide] { width: 18px; height: 18px; color: var(--muted); grid-row: span 2; }
.tt-radios small { grid-column: 2; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.tt-radios input:checked + span { border-color: var(--o-500); background: color-mix(in srgb, var(--o-500) 7%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--o-500) 15%, transparent); }
.tt-radios input:checked + span svg, .tt-radios input:checked + span [data-lucide] { color: var(--o-500); }
.tt-radios input:focus-visible + span { outline: 2px solid var(--o-500); outline-offset: 2px; }
.tt-cat { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.tt-cat[hidden] { display: none; }
.tt-cat-now { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.tt-cat-now svg, .tt-cat-now [data-lucide] { width: 16px; height: 16px; color: var(--o-500); }
.tt-cat-q input { text-align: right; direction: rtl; font-weight: 600; }
.tt-cat-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.tt-cat-list button { text-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.tt-cat-list button:hover { border-color: var(--o-500); }
.tt-cat-list .sug { background: var(--o-500); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 11px; margin-inline-end: 6px; }
.tt-preview { padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #faf6f2); border: 1px solid var(--line); }
.tt-preview small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.tt-preview b { font-size: 14.5px; }
.tt-preview mark { background: color-mix(in srgb, var(--o-500) 18%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }
.tt-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.tt-toggle { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.tt-toggle input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.tt-toggle i { flex: none; width: 36px; height: 20px; border-radius: 99px; background: var(--line-strong, #d9cbc0); position: relative; transition: background .15s; margin-top: 1px; }
.tt-toggle i::after { content: ''; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: right .15s; }
.tt-toggle input:checked + i { background: var(--o-500); }
.tt-toggle input:checked + i::after { right: 18px; }
.tt-toggle input:focus-visible + i { outline: 2px solid var(--o-500); outline-offset: 2px; }
.tt-toggle span { display: flex; flex-direction: column; gap: 1px; }
.tt-toggle b { font-size: 13px; }
.tt-toggle small { font-size: 11.5px; color: var(--muted); }
.tt-wm { display: grid; grid-template-columns: auto 1fr 1fr; gap: 12px; align-items: center; transition: opacity .15s; }
.tt-wm.off { opacity: .45; pointer-events: none; }
.tt-wm input[type=range] { width: 100%; accent-color: var(--o-500); }
.tt-pos { position: relative; width: 84px; height: 64px; border: 1.5px solid var(--line-strong, #d9cbc0); border-radius: 8px; background: repeating-linear-gradient(45deg, var(--surface-2, #faf6f2) 0 6px, var(--surface) 6px 12px); }
.tt-pos label { position: absolute; cursor: pointer; }
.tt-pos input { position: absolute; opacity: 0; }
.tt-pos i { display: block; width: 18px; height: 12px; border-radius: 3px; border: 1.5px solid var(--muted); background: var(--surface); }
.tt-pos input:checked + i { background: var(--o-500); border-color: var(--o-500); }
.tt-pos .p-tr { top: 5px; right: 5px; } .tt-pos .p-tl { top: 5px; left: 5px; } .tt-pos .p-br { bottom: 5px; right: 5px; } .tt-pos .p-bl { bottom: 5px; left: 5px; }
.tt-pos .p-center { top: calc(50% - 6px); left: calc(50% - 9px); }
.tt-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 14px; margin-top: 4px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.tt-dirty { margin-inline-end: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #b45309; }
.tt-dirty[hidden] { display: none; }
.tt-dirty svg, .tt-dirty [data-lucide] { width: 14px; height: 14px; }
.tt-pick { min-height: 260px; display: grid; place-items: center; }
@media (max-width: 980px) {
  .tt-layout { grid-template-columns: 1fr; }
  .tt-list { position: static; max-height: none; }
  .tt-layout.editing .tt-list { display: none; }
}
@media (max-width: 640px) {
  .tt-rule-h { display: none; }
  .tt-rule { grid-template-columns: 1fr 1fr 34px; }
  .tt-rule > :first-child { grid-column: 1 / -1; }
  .tt-calc { grid-template-columns: 1fr; }
  .tt-wm { grid-template-columns: 1fr; }
  .tt-name { flex-direction: column; align-items: stretch; gap: 4px; }
  .tt-top { top: 56px; }
}

/* 2.63.2 shelf of a running transfer */
.run-shelf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; }
.run-shelf-l { display: inline-flex; align-items: center; gap: 6px; }
.run-shelf-l svg, .run-shelf-l [data-lucide] { width: 17px; height: 17px; color: var(--o-500); }
.run-shelf select { width: auto; min-width: 260px; }
.run-shelf small { flex-basis: 100%; }
