/* Stuff seller panel shell (Figma «Seller»). Brand colors from the site theme (irankala): orange #F7941D, green #1F6B4F. */
:root {
	--o: #f7941d; --o-d: #e07f08; --o-bg: #fff4e6;
	--ink: #232933; --mut: #6b7280; --line: #eceef1; --bg: #f7f8fa; --card: #fff;
	--g: #1f6b4f; --g-bg: #e8f6ef; --y: #a76a00; --y-bg: #fff6dc; --r: #c0392b; --r-bg: #fdecea; --b: #1d5fd1; --b-bg: #eaf1ff;
	--rad: 14px;
}
html, body { margin: 0; background: var(--bg); overflow-x: clip; }
body.sp { font-family: IRANSans, Vazirmatn, Tahoma, system-ui, sans-serif; color: var(--ink); font-size: 14px; -webkit-text-size-adjust: 100%; direction: rtl; }
.sp button, .sp input, .sp select, .sp textarea { font-family: inherit; }
.sp a { color: inherit; }
.sp-menu-open { overflow: hidden; }

/* Top bar */
.sp-top { position: sticky; top: 0; z-index: 60; height: 56px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.sp-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.sp-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--stf-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.sp-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.sp-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid; font-size: 13px; text-decoration: none; white-space: nowrap; }
.sp-pill.is-brand { color: var(--o-d); border-color: var(--o); }
.sp-pill.is-blue { color: var(--b); border-color: var(--b); }
.sp-switch { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sp-burger { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.sp-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

/* Layout + side menu */
.sp-layout { display: flex; align-items: flex-start; gap: 20px; max-width: 1360px; margin: 0 auto; padding: 20px; box-sizing: border-box; }
.sp-side { position: sticky; top: 76px; flex: 0 0 236px; max-height: calc(100vh - 96px); overflow-y: auto; box-sizing: border-box; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); }
.sp-me { display: flex; flex-direction: column; gap: 2px; padding: 12px; margin-bottom: 10px; background: var(--bg); border-radius: 12px; text-decoration: none; }
.sp-me b { font-size: 15px; }
.sp-me small { color: var(--mut); font-size: 12px; }
.sp-cta { display: block; margin-bottom: 10px; padding: 11px; border-radius: 10px; background: var(--o); color: #fff !important; text-align: center; font-weight: 700; text-decoration: none; }
.sp-cta:hover { background: var(--o-d); }
.sp-nav { display: flex; flex-direction: column; gap: 2px; }
.sp-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #374151; font-size: 14px; }
.sp-nav a:hover { background: var(--bg); }
.sp-nav a.on { background: var(--stf-teal); color: #fff; }
.sp-nav a.is-out { color: var(--r); margin-top: 6px; }
.sp-nav svg { width: 20px; height: 20px; flex: none; }
.sp-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--o); color: #fff; font-size: 11px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.sp-badge[hidden] { display: none; }
.sp-card { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.sp-card small { color: var(--mut); font-size: 12px; }
.sp-card b { font-size: 15px; }
.sp-card u { color: var(--mut); font-size: 12px; text-decoration: none; margin-top: 4px; }
.sp-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--o); }
.sp-shade { display: none; }
.sp-main { flex: 1; min-width: 0; }
.sp-page[hidden], .ssp[hidden] { display: none !important; }

/* Page parts */
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-head h1 { font-size: 22px; margin: 0; }
.sp-lead { color: var(--mut); font-size: 13px; margin: 0 0 12px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--o); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.sp-btn:hover { background: var(--o-d); }
.sp-btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); font-weight: 400; }
.sp-btn:disabled { opacity: .6; cursor: wait; }
.sp-notice { padding: 12px 16px; margin-bottom: 16px; border: 1px solid #7fd3b0; background: #ecfaf4; border-radius: var(--rad); }
.sp-notice b { display: block; margin-bottom: 4px; }
.sp-notice p { margin: 0; font-size: 13px; }
.sp-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.sp-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); }
.sp-kpi-ico svg { width: 24px; height: 24px; fill: none; stroke: #9ca3af; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-kpi b { font-size: 20px; margin-top: 6px; }
.sp-kpi b small { font-size: 12px; font-weight: 400; color: var(--mut); }
.sp-kpi span { font-size: 13px; }
.sp-kpi small { color: var(--mut); font-size: 12px; }
.sp-mini { margin-top: 6px; padding: 5px 8px; border: 1px solid var(--g); border-radius: 8px; color: var(--g) !important; font-size: 12px; text-align: center; text-decoration: none; }
.sp-grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 16px; }
.sp-box { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); margin-bottom: 12px; }
.sp-grid2 .sp-box { margin-bottom: 0; }
.sp-box h2, .sp-sec h2 { font-size: 16px; margin: 0 0 12px; }
.sp-box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sp-box-h h2 { margin: 0; }
.sp-box-h a, .sp-box-h small { color: var(--mut); font-size: 12px; }
.sp-sec { margin-bottom: 18px; }
.sp-quick { display: flex; flex-direction: column; gap: 6px; }
.sp-quick a { padding: 11px 12px; border-radius: 10px; background: var(--bg); text-decoration: none; font-size: 13px; }
.sp-quick a:hover { background: var(--o-bg); color: var(--o-d); }
.sp-chart { width: 100%; height: auto; display: block; }
.sp-chart .g line { stroke: #eef0f2; stroke-dasharray: 4 4; }
.sp-chart .l { fill: none; stroke: var(--o); stroke-width: 2.5; stroke-linejoin: round; }
.sp-chart .a { fill: var(--o); opacity: .08; }
.sp-chart circle { fill: #fff; stroke: var(--o); stroke-width: 2; }
.sp-chart text { font-size: 11px; fill: var(--mut); text-anchor: middle; }

/* Tables (cards on mobile) */
.sp-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.sp-table table { width: 100%; border-collapse: collapse; }
.sp-table th { background: #fafbfc; color: var(--mut); font-weight: 600; font-size: 12px; text-align: right; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sp-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-table td a { color: var(--b); text-decoration: none; }
.sp-table small { color: var(--mut); }
.sp-act { text-align: left; white-space: nowrap; }
.sp-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid; white-space: nowrap; }
.st-processing, .st-on-hold { color: var(--y); background: var(--y-bg); border-color: #f3d58b; }
.st-completed { color: var(--g); background: var(--g-bg); border-color: #9fd8bf; }
.st-cancelled, .st-failed, .st-refunded { color: var(--r); background: var(--r-bg); border-color: #f2b8b0; }
.st-pending { color: var(--mut); background: #f3f4f6; border-color: #e5e7eb; }
.sp-ship, .sp-status { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.sp-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.sp-tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; white-space: nowrap; font-size: 13px; }
.sp-tabs a.on { background: var(--stf-teal); color: #fff; border-color: var(--stf-teal); }
.sp-tabs i { font-style: normal; opacity: .7; }
.sp-search { display: flex; gap: 8px; margin-bottom: 12px; }
.sp-search input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.sp-pages { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.sp-pages a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.sp-pages a.on { background: var(--o); border-color: var(--o); color: #fff; }

/* Order detail */
.sp-track { display: flex; list-style: none; margin: 0 0 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); }
.sp-track li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); position: relative; }
.sp-track li::before { content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.sp-track li:first-child::before { display: none; }
.sp-track li.done { color: var(--ink); }
.sp-track li.done::before { background: var(--o); }
.sp-track span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.sp-track li.done span { background: var(--o); border-color: var(--o); color: #fff; }
.sp-lines { display: flex; flex-direction: column; gap: 10px; }
.sp-line { display: flex; align-items: center; gap: 10px; }
.sp-line img, .sp-line > i { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg); flex: none; }
.sp-line div { flex: 1; display: flex; flex-direction: column; }
.sp-line small { color: var(--mut); font-size: 12px; }
.sp-sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.sp-sum div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.sp-sum dt { color: var(--mut); }
.sp-sum dd { margin: 0; }
.sp-sum .t { font-weight: 700; font-size: 15px; }
.sp-box p { margin: 0 0 8px; font-size: 13px; }
.r { text-align: right; }

/* Forms */
.sp-f { display: block; margin-bottom: 12px; }
.sp-f span { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
.sp-f input, .sp-f textarea, .sp-f select { width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfc; font-size: 14px; }
.sp-f input:focus, .sp-f textarea:focus { outline: 2px solid var(--o); outline-offset: 0; background: #fff; }
.sp-f input[readonly] { color: var(--mut); }
.sp-fields { display: flex; flex-wrap: wrap; gap: 0 12px; }
.sp-fields .sp-f { flex: 1 1 100%; }
.sp-fields .sp-f.half { flex: 1 1 calc(50% - 6px); }
.sp-err { color: var(--r); font-size: 12px; }
.sp-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-img span { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
.sp-img-box { width: 96px; height: 96px; border: 1px dashed #cfd4da; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; background: #fbfbfc; position: relative; }
.sp-img-box.wide { width: 260px; }
.sp-img-box img { width: 100%; height: 100%; object-fit: cover; }
.sp-img-box i { font-style: normal; color: var(--mut); font-size: 12px; }
.sp-img-box.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .7); }
.sp-addr { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-addr:last-child { border-bottom: 0; }
.sp-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); text-align: left; }

/* Empty / soon / loading / toast */
.sp-empty, .sp-soon { padding: 40px 20px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--rad); color: var(--mut); }
.sp-empty p, .sp-soon p { margin: 0 auto 14px; max-width: 460px; line-height: 1.9; }
.sp-soon-tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--o-bg); color: var(--o-d); font-size: 12px; }
.sp-skel { display: flex; justify-content: center; gap: 6px; padding: 80px 0; }
.sp-skel i { width: 9px; height: 9px; border-radius: 50%; background: var(--o); animation: sp-dot 1s infinite ease-in-out; }
.sp-skel i:nth-child(2) { animation-delay: .15s; }
.sp-skel i:nth-child(3) { animation-delay: .3s; }
@keyframes sp-dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.sp-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 10px 18px; border-radius: 10px; background: var(--stf-teal); color: #fff; font-size: 13px; transition: opacity .3s; }
.sp-toast.ok { background: var(--g); }
.sp-toast.out { opacity: 0; }

/* Product module (kept from the old panel) */
.ssp-offer-note { background: #fff4dc; color: #8a5a00; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.ssp-locked input, .ssp-locked textarea, .ssp-locked select, .ssp-locked button:not(.ssp-nav) { pointer-events: none; opacity: .6; }
.ssp-readonly .btn-primary, .ssp-readonly [data-write] { display: none !important; }

/* Plans («اشتراک پنل») */
.ssp-plans h1 { font-size: 22px; margin: 0 0 16px; }
.ssp-plan-now { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); }
.ssp-plan-now > div { display: flex; flex-direction: column; gap: 2px; }
.ssp-plan-now b { font-size: 18px; }
.ssp-plan-now small { color: var(--mut); font-size: 12px; }
.ssp-plan-now ul { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ssp-plan-now li { display: flex; flex-direction: column; gap: 2px; }
.ssp-plan-now li b { font-size: 14px; }
.ssp-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ssp-plan { display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); }
.ssp-plan.is-current { border: 2px solid var(--o); }
.ssp-plan h2 { font-size: 17px; margin: 0; }
.ssp-plan p { color: var(--mut); font-size: 13px; margin: 4px 0 12px; }
.ssp-plan-price { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.ssp-plan-price small { font-size: 12px; font-weight: 400; color: var(--mut); }
.ssp-plan ul { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.ssp-plan li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ssp-plan-btn { display: block; padding: 11px; border-radius: 10px; background: var(--o); color: #fff; text-align: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.ssp-plan-btn.is-current { background: var(--g-bg); color: var(--g); }
.ssp-plan-btn.is-off { background: var(--bg); color: #9ca3af; }

/* Responsive */
@media (max-width: 1180px) { .sp-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .sp-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
	.sp-burger { display: flex; }
	.sp-top { padding: 0 8px 0 12px; }
	.sp-pill.is-brand { display: none; }
	.sp-layout { padding: 12px; }
	.sp-side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; max-height: none; height: 100%; width: 82vw; max-width: 300px; border-radius: 0; border: 0; transform: translateX(105%); transition: transform .22s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
	.sp-menu-open .sp-side { transform: none; }
	.sp-menu-open .sp-shade { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15, 18, 22, .4); }
	.sp-kpis { grid-template-columns: repeat(2, 1fr); }
	.sp-head h1 { font-size: 19px; }
	.sp-table { background: none; border: 0; }
	.sp-table thead { display: none; }
	.sp-table tr { display: block; margin-bottom: 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
	.sp-table td { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
	.sp-table td::before { content: attr(data-l); color: var(--mut); font-size: 12px; }
	.sp-table td.sp-act::before { content: none; }
	.sp-table td.sp-act { justify-content: flex-end; }
	.sp-fields .sp-f.half { flex-basis: 100%; }
	.sp-track { padding: 12px 6px; }
	.sp-track li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .sp-side { transition: none; } .sp-skel i { animation: none; } }

/* Step 2: finance, reviews, coupons, pro-formas, modal */
.sp-fin .sp-kpi b { font-size: 18px; }
.sp-wallet { background: #ecfaf4; border-color: #9fd8bf; }
.sp-settle { background: var(--o-bg); border-color: #f6cf9a; }
.sp-settle .sp-mini { border-color: var(--o); color: var(--o-d) !important; background: #fff; cursor: pointer; font-family: inherit; }
.sp-notice.warn { background: var(--y-bg); border-color: #f3d58b; }
.sp-notice a { color: var(--b); }
.sp-rate { display: flex; align-items: center; gap: 12px; }
.sp-rate b { font-size: 28px; }
.sp-rate small { color: var(--mut); }
.sp-stars i { font-style: normal; color: #d1d5db; font-size: 15px; }
.sp-stars i.on { color: var(--o); }
.sp-review p { margin: 6px 0; line-height: 1.9; }
.sp-review-p { color: var(--b) !important; font-size: 12px; text-decoration: none; }
.sp-reply { margin: 8px 0 0; padding: 10px 12px; border-right: 3px solid var(--o); background: var(--bg); border-radius: 8px; }
.sp-reply p { margin: 4px 0 0; }
.sp-reply-f { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.sp-reply-f textarea { flex: 1; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; resize: vertical; }
.sp-link { border: 0; background: none; color: var(--b); cursor: pointer; padding: 0; font-size: 13px; font-family: inherit; }
.sp-hint { display: block; color: var(--mut); font-size: 11px; margin-top: 4px; }
.sp-pick { position: relative; }
.sp-pick input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfc; font-size: 14px; }
.sp-pick-list { position: absolute; z-index: 20; top: 46px; right: 0; left: 0; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .1); }
.sp-pick-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: right; cursor: pointer; font-family: inherit; }
.sp-pick-list button:hover { background: var(--o-bg); }
.sp-pick-list small { color: var(--mut); font-size: 12px; }
.sp-pick-list p { margin: 0; padding: 12px; color: var(--mut); font-size: 13px; }
.sp-chosen { margin-top: 8px; padding: 10px 12px; background: var(--g-bg); border-radius: 10px; }
.sp-pf-lines { margin-top: 12px; }
.sp-num { width: 110px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.sp-modal-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(15, 18, 22, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sp-modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.sp-modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sp-modal header h3 { margin: 0; font-size: 16px; }
.sp-modal header button { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--mut); }
.sp-modal-b { padding: 16px 18px; overflow-y: auto; }
.sp-modal footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .sp-num { width: 90px; } .sp-reply-f { flex-direction: column; align-items: stretch; } }

/* Lighter sidebar: settings in the profile card, ticket icon in the header */
.sp-me { position: relative; }
.sp-me-set { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 12px; color: var(--mut); text-decoration: none; }
.sp-me-set svg { width: 16px; height: 16px; }
.sp-me-set:hover, .sp-me-set.on { background: #fff; color: var(--ink); }
.sp-ico { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.sp-ico svg { width: 18px; height: 18px; }
.sp-head-act { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* Logistics */
.sp-h2 { font-size: 16px; margin: 6px 0 8px; }
.sp-head h2 { font-size: 16px; margin: 0; }
.sp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sp-wh .sp-box-h { gap: 6px; }
.sp-wh .sp-box-h h2 { margin: 0; flex: 1; font-size: 15px; }
.sp-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0 0; }
.sp-dl dt { color: var(--mut); font-size: 11px; }
.sp-dl dd { margin: 2px 0 0; font-size: 13px; }
.sp-card-act { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.sp-card-act a { color: var(--b); text-decoration: none; }
.sp-carriers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sp-carrier { display: flex; align-items: center; gap: 8px; padding: 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sp-carrier:has(input:checked) { border-color: var(--o); background: var(--o-bg); }
.sp-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sp-day { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sp-day > b { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 8px; background: var(--stf-teal); color: #fff; font-size: 12px; }
.sp-slot { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 12px; }
.sp-slot input { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 4px; font-size: 12px; min-width: 0; }
.sp-slot input[name=lead] { width: 38px; text-align: center; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: #eef0f3; font-size: 12px; }
.sp-chip button { border: 0; background: none; cursor: pointer; color: var(--mut); }
.sp-row-in { display: flex; gap: 8px; }
.sp-row-in input { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.sp-checks label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 14px; font-size: 13px; color: var(--ink); }
.sp-later { margin-top: 18px; }

/* Unfinished product notice */
.sp-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; background: var(--y-bg); border: 1px solid #f3d58b; border-radius: var(--rad); font-size: 13px; }
.sp-draft[hidden] { display: none; }
.sp-draft .sp-btn { height: 34px; padding: 0 14px; font-size: 13px; }

/* Marketplace search results: one compact row each */
.ssp .ssp-found { padding: 8px 10px; gap: 10px; margin-top: 6px; min-height: 0; }
.ssp .ssp-found .ph { width: 44px; height: 44px; min-width: 44px; flex: none; border-radius: 8px; object-fit: cover; background: #f1f2f4; }
.ssp .ssp-found .ssp-sp { min-width: 0; }
.ssp .ssp-found .ssp-sp b { display: block; font-size: 13px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssp .ssp-found .ssp-hint { font-size: 11px; margin: 2px 0 0; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssp .ssp-found .btn { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .ssp .ssp-found { flex-wrap: wrap; } .ssp .ssp-found .btn { width: 100%; } }

/* Mother categories inside the category picker */
.ssp-mothers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ssp-mothers .ssp-vert { padding: 14px 8px; }
.ssp-mothers .ssp-vert:hover { border-color: var(--o); background: var(--o-bg); }

/* Compact side cards (plan, wallet): one line each, the whole card opens the details */
.sp-side .sp-card { flex-direction: row; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; cursor: pointer; }
.sp-side .sp-card > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-side .sp-card b { font-size: 14px; }
.sp-side .sp-card small { font-size: 12px; color: var(--mut); }
.sp-side .sp-card:hover { border-color: var(--o); }
.sp-card-go { font-style: normal; font-size: 18px; color: var(--mut); line-height: 1; }
.sp-card-plus { width: 26px; height: 26px; border-radius: 50%; background: var(--g-bg); color: var(--g) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; }
/* Settings: simple icon on a light green chip */
.sp-me-set { background: var(--g-bg); color: var(--g); }
.sp-me-set:hover, .sp-me-set.on { background: #d6efe3; color: var(--g); }

/* Loading: three boxes stack up (brand colors), with a soft shimmer of the page underneath. CSS only. */
.sp-load { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 56px 0 24px; animation: sp-in .25s ease both; }
.stf-loader-mark { position: relative; width: 52px; height: 44px; }
.stf-loader-mark i { position: absolute; width: 22px; height: 18px; border-radius: 5px; animation: sp-stack 1.5s cubic-bezier(.5, 0, .3, 1.4) infinite; }
.stf-loader-mark i:nth-child(1) { right: 2px; bottom: 0; background: var(--o); }
.stf-loader-mark i:nth-child(2) { left: 2px; bottom: 0; background: var(--g); animation-delay: .15s; }
.stf-loader-mark i:nth-child(3) { right: 15px; bottom: 21px; background: var(--stf-teal); animation-delay: .3s; }
@keyframes sp-stack { 0% { transform: translateY(-16px); opacity: 0; } 25%, 75% { transform: none; opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
.sp-load-sk { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp-load-sk b { height: 84px; border-radius: var(--rad); background: linear-gradient(90deg, #eef0f3 0%, #f7f8fa 40%, #eef0f3 80%) 0 0 / 300% 100%; animation: sp-shim 1.3s linear infinite; }
@keyframes sp-shim { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes sp-in { from { opacity: 0; } to { opacity: 1; } }
.ssp .sp-load { padding-top: 40px; }

/* Header: chat, notifications bell */
.sp-top-actions .sp-ico { position: relative; background: #fff; cursor: pointer; padding: 0; color: var(--ink); text-decoration: none; }
.sp-top-actions .sp-ico:hover { border-color: var(--o); color: var(--o-d); }
.sp-bell { position: relative; }
.sp-dot { position: absolute; top: -4px; left: -4px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--o); color: #fff; font-size: 10px; font-style: normal; line-height: 17px; text-align: center; border: 2px solid #fff; }
.sp-dot[hidden], .sp-bell-pop[hidden] { display: none; }
.sp-bell-pop { position: absolute; top: 44px; left: 0; z-index: 90; width: 340px; max-height: 70vh; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 18, 22, .14); animation: sp-in .15s ease both; }
.sp-bell-pop header { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sp-bell-list { overflow-y: auto; }
.sp-n { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sp-n:last-child { border-bottom: 0; }
a.sp-n:hover { background: var(--bg); }
.sp-n.is-new { background: #fffaf3; }
.sp-n-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.sp-n-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--mut); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-n-ic.t-order_new { background: var(--o-bg); } .sp-n-ic.t-order_new svg { stroke: var(--o-d); }
.sp-n-ic.t-product { background: var(--g-bg); } .sp-n-ic.t-product svg { stroke: var(--g); }
.sp-n-ic.t-stock { background: var(--y-bg); } .sp-n-ic.t-stock svg { stroke: var(--y); }
.sp-n-ic.t-admin { background: var(--b-bg); } .sp-n-ic.t-admin svg { stroke: var(--b); }
.sp-n-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.sp-n-t b { font-weight: 600; line-height: 1.6; }
.sp-n-t small { color: var(--mut); font-size: 12px; line-height: 1.7; }
.sp-n-t em { color: #9ca3af; font-size: 11px; font-style: normal; }
.sp-n-empty { margin: 0; padding: 28px 14px; text-align: center; color: var(--mut); font-size: 13px; }

/* Profile card: settings (top) and logout (bottom), both on the left */
.sp-me { padding-bottom: 12px; }
.sp-me-out { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 12px; color: var(--r) !important; text-decoration: none; }
.sp-me-out svg { width: 16px; height: 16px; }
.sp-me-out:hover { background: var(--r-bg); }
.sp-card-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--o-bg); color: var(--o-d); display: inline-flex; align-items: center; justify-content: center; }
.sp-card-ic svg { width: 17px; height: 17px; }
.sp-card.is-wallet .sp-card-ic { background: var(--g-bg); color: var(--g); }

/* Collapsible side menu: icons only */
.sp-side > .sp-collapse { align-self: flex-end; margin: 0 0 6px; }
.sp-collapse { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--mut); cursor: pointer; }
.sp-collapse svg { width: 20px; height: 20px; flex: none; transition: transform .2s; }
.sp-collapse:hover { color: var(--ink); background: var(--bg); }
.sp-side { transition: flex-basis .2s ease, padding .2s ease; }
@media (min-width: 861px) {
	.sp-mini .sp-side { flex-basis: 68px; padding: 10px 8px; overflow-x: hidden; }
	.sp-mini .sp-nav a { justify-content: center; padding: 10px 0; position: relative; }
	.sp-mini .sp-nav a > span, .sp-mini .sp-collapse span, .sp-mini .sp-card > span, .sp-mini .sp-card-go, .sp-mini .sp-card-plus, .sp-mini .sp-me > small, .sp-mini .sp-me > b, .sp-mini .sp-me a span { display: none; }
	.sp-mini .sp-nav .sp-badge { position: absolute; top: 2px; left: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
	.sp-mini .sp-me { padding: 6px 0; background: none; align-items: center; gap: 6px; }
	.sp-mini .sp-me-set, .sp-mini .sp-me-out { position: static; padding: 7px; }
	.sp-mini .sp-card { justify-content: center; padding: 8px 0; border: 0; }
	.sp-mini .sp-collapse svg { transform: scaleX(-1); }
}
@media (max-width: 860px) {
	.sp-collapse { display: none; }
	.sp-top-actions { gap: 6px; }
	.sp-top-actions .sp-ico { width: 36px; height: 36px; }
	.sp-pill.is-blue { padding: 0 10px; font-size: 12px; }
	.sp-bell { position: static; }
	.sp-bell-pop { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; }
	.sp-load-sk { grid-template-columns: 1fr 1fr; }
	.sp-load-sk b:nth-child(3) { display: none; }
	.sp-head-act { width: 100%; }
	.sp-head-act .sp-btn { flex: 1; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .stf-loader-mark i, .sp-load-sk b { animation: none; } }

/* Wizard: warehouse quick add under the select; folded marketing-fee info */
.ssp .ssp-wh-add { margin-top: 6px; font-size: 13px; }
.ssp .ssp-fee { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13px; }
.ssp .ssp-fee summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--mut); list-style: none; }
.ssp .ssp-fee summary::-webkit-details-marker { display: none; }
.ssp .ssp-fee summary .i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #cbd0d6; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-style: italic; font-family: Georgia, serif; }
.ssp .ssp-fee summary b { margin-inline-start: auto; color: var(--ink); font-weight: 600; }
.ssp .ssp-fee p { margin: 8px 0 0; line-height: 1.9; }
.sp-n-wait { display: flex; justify-content: center; gap: 5px; padding: 28px 0; }
.sp-n-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--o); animation: sp-dot 1s infinite ease-in-out; }
.sp-n-wait i:nth-child(2) { animation-delay: .15s; } .sp-n-wait i:nth-child(3) { animation-delay: .3s; }
@media (max-width: 420px) { .sp-brand span { display: none; } .sp-head-act .sp-btn { font-size: 13px; } }
.sp-me { padding-inline-end: 86px; min-height: 66px; box-sizing: border-box; }
.sp-me b, .sp-me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 861px) { .sp-mini .sp-me { padding: 6px 0; min-height: 0; } }

/* Side cards: two light lines (title / value), no bold */
.sp-side .sp-card em { font-style: normal; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-side .sp-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-side .sp-card.is-wallet em { font-size: 12.5px; letter-spacing: -.2px; }

/* «اطلاعات پنل فروش» (Figma 1418-1427) */
.sp-set .sp-box { padding: 18px; }
.sp-btn.line { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--ink); font-weight: 600; height: 36px; padding: 0 14px; font-size: 13px; }
.sp-btn.line:hover { background: var(--bg); }
.sp-btn svg, .sp-up svg, .sp-h-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-hero { position: relative; margin-bottom: 14px; }
.sp-hero-b { aspect-ratio: 4 / 1; min-height: 120px; border: 1px solid var(--line); border-radius: 12px; background: #f3f4f6; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.sp-hero-b img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero-b span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9ca3af; font-size: 12px; }
.sp-hero-b span svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sp-hero-l { position: absolute; left: 22px; bottom: -14px; width: 84px; height: 84px; border-radius: 14px; border: 3px solid #fff; background: #e9ebee; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); overflow: hidden; }
.sp-hero-l img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero-b.busy::after, .sp-hero-l.busy::after, .sp-doc.busy::after, .sp-media.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23f7941d' stroke-width='2.5' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 26px no-repeat; }
.sp-hero-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.sp-copy { display: flex; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfc; overflow: hidden; }
.sp-copy input { border: 0 !important; background: none !important; outline: 0 !important; }
.sp-copy button { flex: none; width: 42px; border: 0; border-inline-end: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--mut); }
.sp-copy button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 6px 8px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfc; }
.sp-tags input { flex: 1; min-width: 160px; border: 0 !important; background: none !important; outline: 0 !important; min-height: 28px !important; padding: 0 4px !important; }
.sp-tags .sp-chip { background: var(--g-bg); color: var(--g); }
/* switch */
.sp-sw { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.sp-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-sw i { width: 30px; height: 17px; border-radius: 9px; background: #d5d9de; position: relative; transition: background .15s; }
.sp-sw i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sp-sw input:checked + i { background: var(--o); }
.sp-sw input:checked + i::after { transform: translateX(-13px); }
.sp-sw input:focus-visible + i { outline: 2px solid var(--o); outline-offset: 2px; }
/* hours */
.sp-hours .sp-box-h { margin-bottom: 4px; }
.sp-hrs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.sp-hr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sp-hr > b { flex: 1; font-weight: 500; font-size: 13px; }
.sp-hr-t { display: inline-flex; align-items: center; gap: 6px; }
.sp-hr-t i { color: var(--mut); font-style: normal; }
.sp-hr-t input { width: 56px; height: 30px; text-align: center; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; background: #fff; }
.sp-hr.off .sp-hr-t { opacity: .35; pointer-events: none; }
.sp-hr .sp-err { flex-basis: 100%; }
.sp-hours.is-off .sp-hrs, .sp-hours.is-off [data-h24] { opacity: .45; pointer-events: none; }
/* documents */
.sp-h-ic { display: flex; align-items: center; gap: 6px; }
.sp-h-ic svg { color: var(--g); width: 18px; height: 18px; }
.sp-doc { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; }
.sp-doc-t { flex: 1; min-width: 150px; height: 30px; border: 0; background: none; font-size: 13px; outline: 0; }
.sp-doc-f { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--g) !important; font-size: 12px; text-decoration: none; direction: ltr; }
.sp-up { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 7px; }
.sp-up:hover { background: var(--bg); color: var(--ink); }
.sp-x { width: 22px; height: 22px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--mut); cursor: pointer; font-size: 16px; line-height: 1; }
.sp-x:hover { background: var(--r-bg); color: var(--r); }
.sp-doc .sp-err { flex-basis: 100%; }
.sp-add { display: block; margin: 4px auto 8px; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 13px; }
/* gallery */
.sp-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sp-gal:empty { display: none; }
.sp-media { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; background: #f3f4f6; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.sp-media img, .sp-media video { width: 100%; height: 100%; object-fit: cover; }
.sp-media > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sp-media .sp-x { position: absolute; top: 6px; left: 6px; background: var(--stf-teal); color: #fff; width: 20px; height: 20px; font-size: 13px; }
.sp-media-v { position: absolute; inset: auto auto 6px 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; font-style: normal; }
.sp-gal-act { display: flex; justify-content: flex-end; margin-top: 14px; }
@media (max-width: 860px) {
	.sp-hero-b { aspect-ratio: 3 / 1; }
	.sp-hero-l { width: 64px; height: 64px; left: 12px; }
	.sp-hr { gap: 8px; }
	.sp-hr-t input { width: 50px; }
	.sp-gal { grid-template-columns: repeat(2, 1fr); }
	.sp-hero-act .sp-btn, .sp-gal-act .sp-btn { flex: 1; }
}
.sp-hero-b { width: 100%; }
.sp-hr .sp-err:empty, .sp-doc .sp-err:empty { display: none; }

/* ===== Mobile-first product wizard (web-app view) ===== */
html, body { overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.ssp-wtop { display: none; }
.ssp .ssp-foot .ssp-f-cancel { color: var(--mut); font-weight: 400; font-size: 13px; }
.ssp .ssp-foot { position: sticky; bottom: 0; z-index: 40; background: linear-gradient(rgba(247, 248, 250, 0), var(--bg) 30%); }
@media (max-width: 860px) {
	/* iOS zooms into any field under 16px and the page then slides sideways: 16px everywhere in the panel. */
	.sp input, .sp select, .sp textarea, .ssp input[type=text], .ssp input[type=number], .ssp input[type=url], .ssp input[type=search], .ssp select, .ssp textarea, .ssp-overlay input, .ssp-overlay select, .ssp-overlay textarea { font-size: 16px !important; }
	.sp-layout { padding: 10px 12px; }
	.ssp { padding: 0 0 96px; font-size: 13.5px; }
	/* One compact header instead of the step bar + page title */
	.ssp-steps, .ssp-wizard > .ssp-head { display: none; }
	.ssp-wtop { display: block; position: sticky; top: 56px; z-index: 45; margin: -10px -12px 12px; padding: 8px 12px 0; background: #fff; border-bottom: 1px solid var(--line); }
	.ssp-wtop-r { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
	.ssp-wx { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: var(--bg); color: var(--mut); font-size: 22px; line-height: 1; cursor: pointer; }
	.ssp-wtop-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.ssp-wtop-t small { color: var(--mut); font-size: 11px; }
	.ssp-wtop-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ssp-wtop .ssp-code { font-size: 11px; padding: 3px 8px; }
	.ssp-prog { height: 3px; margin: 0 -12px; background: #f0f1f3; }
	.ssp-prog i { display: block; height: 100%; background: var(--o); border-radius: 0 3px 3px 0; transition: width .3s; }
	/* Fixed bottom action bar: back (icon) + next (wide); draft / cancel live behind × */
	.ssp .ssp-foot { position: fixed; left: 0; right: 0; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 75; flex-direction: row !important; gap: 8px; margin: 0; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 18, 22, .06); }
	.ssp .ssp-foot .ssp-sp, .ssp .ssp-foot .ssp-f-cancel, .ssp .ssp-foot .ssp-f-draft { display: none; }
	.ssp .ssp-foot .ssp-f-next { order: 2; flex: 1; width: auto !important; height: 48px; justify-content: center; font-size: 15px; border-radius: 12px; }
	.ssp .ssp-foot .ssp-f-prev { order: 1; width: 48px !important; height: 48px; padding: 0; justify-content: center; border-radius: 12px; background: var(--bg); font-size: 18px; }
	.ssp .ssp-foot .ssp-f-prev .t { display: none; }
	body:has(.ssp-foot) .ssp-toasts, body:has(.ssp-foot) .sp-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.ssp-toasts { left: 12px; right: 12px; }
	/* Type scale for small screens */
	.ssp h2 { font-size: 15px; }
	.ssp .ssp-card { padding: 14px; margin-bottom: 12px; border-radius: 12px; }
	.ssp .ssp-card > h2 { margin-bottom: 12px; }
	.ssp-label { font-size: 13px; margin-bottom: 6px; }
	.ssp-field { margin-bottom: 14px; }
	.ssp-grid { gap: 0 12px; }
	.ssp-hint, .ssp-chk small { font-size: 11.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.ssp-note, .ssp-alert, .ssp-offer-note { font-size: 12.5px; padding: 10px 12px; }
	.ssp-alert b { font-weight: 600; }
	.ssp .btn { font-size: 14px; }
	.ssp-tiles { gap: 8px; }
	.ssp-tile { padding: 11px 12px; font-size: 13px; font-weight: 500; }
	.ssp-drop { width: 96px; height: 96px; }
	.ssp-drop.sm { width: 72px; height: 72px; }
	.ssp-sum .r { padding: 12px 0; font-size: 13px; }
	.ssp-modal { max-height: 92vh; border-radius: 16px 16px 0 0; align-self: end; }
	.ssp-overlay { padding: 0; place-items: end stretch; }
	.ssp-modal-f { flex-wrap: wrap; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
	.ssp-modal-f .btn { flex: 1; justify-content: center; }
}
@media (max-width: 860px) {
	.sp-modal-wrap { align-items: flex-end; padding: 0; }
	.sp-modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
	.sp-modal footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
	.ssp-modal-f { flex-direction: column; align-items: stretch; gap: 8px; }
	.ssp-modal-f .btn { width: 100%; height: 46px; }
	.ssp-modal-f .link { padding: 8px; text-align: center; }
}
@media (max-width: 860px) { .ssp-rte .ed { font-size: 16px; } .ssp-rte .tb button { width: 38px; height: 38px; } }
@media (max-width: 860px) {
	.ssp .ssp-dlong { display: none; }
	.ssp .ssp-tax { background: #fffaf0; border-color: #f3d58b; color: #8a5a00; }
	.ssp .ssp-tax .in { padding: 10px 12px; }
	.ssp-label, .ssp-tile, .ssp-chk b { font-weight: 600; }
	.ssp h1, .ssp h2, .ssp h3 { font-weight: 700; }
}

/* «دستیار هوشمند»: one icon in the header that opens the live chat */
.sp-ai { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--stf-teal), #138a7e 55%, var(--stf-teal-l)); box-shadow: 0 4px 12px rgba(14, 75, 71, .25); }
.sp-ai svg { width: 20px; height: 20px; animation: sp-ai-tw 3.2s ease-in-out infinite; }
.sp-ai::after { content: ""; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--stf-orange-r); border: 2px solid #fff; }
.sp-ai.is-loading svg { animation: stf-spin 1s linear infinite; }
@keyframes sp-ai-tw { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(12deg); } }
@media (max-width: 860px) { .sp-ai { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .sp-ai svg { animation: none; } }

/* Toggle row (settings) */
.sp-tg { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sp-tg input { position: absolute; opacity: 0; pointer-events: none; }
.sp-tg i { flex: none; width: 40px; height: 22px; margin-top: 2px; border-radius: 22px; background: #d6dbda; position: relative; transition: background .15s; }
.sp-tg i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: right .15s; }
.sp-tg input:checked + i { background: var(--stf-teal); }
.sp-tg input:checked + i::after { right: 21px; }
.sp-tg input:focus-visible + i { outline: 2px solid var(--stf-teal-l); outline-offset: 2px; }
.sp-tg span { display: flex; flex-direction: column; gap: 2px; } .sp-tg small { color: var(--mut); font-size: 12px; }

/* ---------- «کیف پول استاف‌پی» (wallet.js) ---------- */
.sw { display: flex; flex-direction: column; gap: 20px; }
.sw-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sw-top > .sw-col:last-child > .sw-transfer { flex: 1; display: flex; flex-direction: column; } .sw-transfer .sw-send { align-self: flex-start; margin-top: auto; }
.sw-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sw svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sw-ic { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.sw-card { padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, var(--stf-teal-d) 0%, var(--stf-teal) 55%, #18706a 100%); box-shadow: 0 12px 28px rgba(14, 75, 71, .28); }
.sw-card header { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sw-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sw-who b { font-size: 16px; } .sw-who small { font-size: 12px; opacity: .8; }
.sw-bal { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.sw-bal b { font-size: 34px; font-weight: 800; letter-spacing: -.5px; } .sw-bal small { font-size: 18px; font-weight: 600; }
.sw-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .22); margin: 0 0 14px; }
.sw-tok { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; }
.sw-tok > span:first-child small { opacity: .7; font-size: 12px; }
.sw-tok > b { grid-row: 2; font-size: 18px; }
.sw-tok-ic { grid-column: 2; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--stf-teal); display: flex; align-items: center; justify-content: center; }
.sw-acts { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.sw-in { display: flex; flex-direction: column; gap: 10px; }
.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.sw-btn.on { background: var(--stf-teal); color: #fff; }
.sw-btn.line { background: #fff; color: var(--stf-teal); border-color: var(--stf-teal); }
.sw-btn.out { background: #fff; color: var(--stf-orange-r); border-color: var(--stf-orange-r); }
.sw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--mut); }
.sw-pager button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; } .sw-pager button:disabled { opacity: .4; cursor: default; }
.sw-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw-ways button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; text-align: right; cursor: pointer; }
.sw-ways button:hover:not(:disabled) { border-color: var(--stf-teal); background: var(--stf-teal-bg); } .sw-ways button:disabled { opacity: .5; cursor: not-allowed; }
.sw-ways b { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--stf-teal); } .sw-ways small { color: var(--mut); font-size: 12px; line-height: 1.8; }
@media (max-width: 860px) { .sw-ways { grid-template-columns: 1fr; } }
.sw-btn.credit { width: 100%; box-sizing: border-box; min-height: 54px; background: linear-gradient(90deg, #1d4ed8, #2563eb); color: #fff !important; font-size: 16px; }
.sw-btn:hover { filter: brightness(1.06); }
.sw-box { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.sw-box header { margin-bottom: 14px; } .sw-box h3 { margin: 0; font-size: 17px; }
.sw-transfer header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .sw-transfer header small { color: var(--mut); font-size: 12px; }
.sw-transfer label { display: block; margin-bottom: 12px; } .sw-transfer label > span { display: block; font-size: 12.5px; color: var(--mut); margin-bottom: 6px; }
.sw-transfer i { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-style: normal; color: var(--mut); background: #fbfbfc; }
.sw-transfer input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; outline: none; }
.sw-send { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--stf-teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sw-send:disabled { opacity: .45; cursor: not-allowed; }
.sw-soon { margin: 10px 0 0; font-size: 12px; color: var(--mut); }
.sw-hist header { display: flex; flex-direction: column; gap: 12px; }
.sw-hbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-chips button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.sw-chips button.on { background: var(--stf-teal); border-color: var(--stf-teal); color: #fff; font-weight: 700; }
.sw-xls { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--stf-teal-l); border-radius: 10px; background: var(--stf-teal-bg); color: var(--stf-teal); font: inherit; font-size: 13px; cursor: pointer; }
.sw-table { border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
.sw-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sw-table th { background: #fafbfc; color: var(--mut); font-weight: 600; text-align: right; padding: 11px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.sw-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sw-table td.t { white-space: normal; min-width: 120px; }
.sw-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sw-st.ok { background: #e3f6ee; color: #12795a; } .sw-st.wait { background: #fff4dc; color: #8a5a00; } .sw-st.fail { background: #fdecea; color: #b42318; }
.sw-op button { width: 30px; height: 30px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 8px; } .sw-op button:hover { background: var(--bg); }
.sw-empty { padding: 24px; text-align: center; color: var(--mut); }
.sw-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.sw-quick button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.sw-note { font-size: 12.5px; color: var(--mut); line-height: 1.9; }
.sw-accs { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; } .sw-accs legend { font-size: 13px; color: var(--mut); margin-bottom: 6px; padding: 0; }
.sw-acc { display: flex; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; } .sw-acc.on { border-color: var(--stf-teal); background: var(--stf-teal-bg); }
.sw-acc > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .sw-acc span { display: flex; gap: 8px; align-items: center; font-size: 12.5px; flex-wrap: wrap; } .sw-acc span small { color: var(--mut); min-width: 70px; }
.sw-acc span button { border: 1px solid var(--line); background: #fff; border-radius: 6px; font: inherit; font-size: 11px; color: var(--stf-teal); cursor: pointer; }
.sw-file input { display: block; margin-bottom: 4px; } .sw-file em { font-style: normal; font-size: 12px; color: var(--stf-teal); }
.sw-dl { margin: 0; display: grid; gap: 8px; } .sw-dl div { display: flex; justify-content: space-between; gap: 12px; } .sw-dl dt { color: var(--mut); } .sw-dl dd { margin: 0; text-align: left; }
@media (max-width: 1100px) {
	.sw { gap: 14px; } .sw-top, .sw-col { display: contents; }
	.sw-card { order: 1; } .sw-acts { order: 2; } .sw-btn.credit { order: 3; } .sw-hist { order: 4; } .sw-transfer { order: 5; }
}
@media (max-width: 860px) {
	.sw-card { padding: 18px; } .sw-bal b { font-size: 28px; }
	.sw-table thead { display: none; } .sw-table table, .sw-table tbody, .sw-table tr, .sw-table td { display: block; }
	.sw-table tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
	.sw-table td { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border: 0; white-space: normal; }
	.sw-table td::before { content: attr(data-l); color: var(--mut); font-size: 12px; }
	.sw-table td.sw-op { justify-content: flex-end; } .sw-table td.sw-op::before { content: none; }
}

/* ---------- the one Stuff header (Shell::brand_bar / actions) ---------- */
.stf-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink) !important; font-weight: 800; font-size: 15px; white-space: nowrap; }
.stf-brand img { height: 32px; width: auto; }
.stf-brand em { font-style: normal; font-weight: 600; color: var(--stf-teal); }
.stf-brand:has(> span)::after { content: ""; width: 1px; height: 24px; background: #dfe5e4; margin-inline-start: 6px; } /* name | search */
/* «بازارگاه»: a quiet pill next to the logo */
.sp-top .stf-market { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--stf-teal) !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.sp-top .stf-market svg { width: 18px; height: 18px; fill: none; stroke: var(--stf-orange-r); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-top .stf-market:hover { border-color: var(--stf-teal-l); background: #f6faf9; }
.stf-back[hidden] { display: none !important; }
.stf-back { flex: none; background: #fff; cursor: pointer; padding: 0; color: var(--ink); }
@media (min-width: 861px) { .stf-back { display: none !important; } }
.stf-brand .sp-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--stf-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
/* search pill → «دسته‌بندی و جستجو» */
.stf-explore { flex: none; width: auto; max-width: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #f6f8f8; color: var(--mut); font: inherit; font-size: 13px; cursor: pointer; text-align: right; min-width: 0; }
.stf-explore > svg { width: 18px; height: 18px; flex: none; }
.stf-explore > span { flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stf-explore > i { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--stf-teal); font-style: normal; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.stf-explore > i svg { width: 15px; height: 15px; }
.stf-explore:hover { border-color: var(--stf-teal-l); background: #fff; }
.stf-site-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 max(16px, calc((100% - 1280px) / 2)); background: #fff; border-bottom: 1px solid var(--line); box-sizing: border-box; font-family: IRANSans, Vazirmatn, Tahoma, sans-serif; direction: rtl; }
.stf-site-top .sp-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.stf-site-top .sp-ico { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; padding: 0; }
.stf-site-top svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stf-site-top .sp-ico svg { width: 20px; height: 20px; }
.stf-site-top .sp-bell { position: relative; }
@media (max-width: 860px) {
	.stf-brand > span, .stf-brand::after { display: none !important; }
	.stf-explore { flex: none; width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; background: #fff; }
	.stf-explore > span, .stf-explore > i { display: none; }
	.stf-site-top { height: 56px; padding: 0 8px; gap: 5px; }
	.stf-site-top .sp-top-actions { gap: 5px; }
	.stf-site-top .sp-ico, .stf-site-top .sp-ai { width: 34px; height: 34px; }
}
/* the modal */
html.stf-sm-open { overflow: hidden; }
.stf-sm { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 16px; background: rgba(15, 25, 24, .45); direction: rtl; font-family: IRANSans, Vazirmatn, Tahoma, sans-serif; }
.stf-sm svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stf-sm-in { width: 100%; max-width: 900px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: stf-fade .15s ease both; overflow: hidden; }
.stf-sm-in > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eef1f0; background: #fff; }
.stf-sm-in > header > button { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #6b7678; padding: 0 4px; }
.stf-sm-b { padding: 14px 16px 18px; overflow: auto; }
.stf-sq { flex: 1; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1.5px solid var(--stf-teal-l); border-radius: 12px; background: #fbfdfd; }
.stf-sq span { color: var(--stf-teal); display: flex; } .stf-sq span svg { width: 20px; height: 20px; }
.stf-sq input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; outline: none; }
/* browser: wizard standard — breadcrumb, mother cards, rows */
.stf-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 12px; color: #6b7678; font-size: 13px; }
.stf-crumb a { color: var(--stf-teal) !important; font-weight: 700; cursor: pointer; text-decoration: none; }
.stf-crumb a.up { margin-inline-start: auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.stf-mothers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stf-mother { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid #e3e8e7; border-radius: 14px; background: #fff; font: inherit; text-align: right; cursor: pointer; }
.stf-mother:hover { border-color: var(--stf-teal); box-shadow: 0 0 0 1px var(--stf-teal); }
.stf-mother b { font-size: 15px; color: #1f2b2a; }
.stf-mother small { color: #6b7678; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stf-mother em { font-style: normal; font-size: 11.5px; color: var(--stf-teal); }
.stf-cat-img { width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden; background: var(--stf-khaki-bg); display: inline-flex; align-items: center; justify-content: center; }
.stf-cat-img img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: cover; display: block; }
.stf-cat-img i { font-style: normal; font-weight: 800; font-size: 18px; color: var(--stf-teal); }
.stf-cat-img svg { width: 22px; height: 22px; color: var(--stf-teal); }
.stf-see { box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--stf-teal-bg); color: #1f2b2a !important; text-decoration: none; }
.stf-see span:not(.stf-cat-img) { flex: 1; display: flex; flex-direction: column; } .stf-see small { color: #6b7678; font-size: 12px; } .stf-see > svg { width: 18px; height: 18px; color: var(--stf-teal); }
.stf-catlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stf-catlist li > a, .stf-catlist li > button { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e3e8e7; border-radius: 12px; background: #fff; color: #1f2b2a !important; font: inherit; text-align: right; text-decoration: none; cursor: pointer; }
.stf-catlist li > a:hover, .stf-catlist li > button:hover { border-color: var(--stf-teal); background: #fbfdfd; }
.stf-catlist .stf-cat-img { width: 40px; height: 40px; border-radius: 10px; }
.stf-catlist span:not(.stf-cat-img) { flex: 1; display: flex; flex-direction: column; } .stf-catlist small { color: #6b7678; font-size: 12px; } .stf-catlist li svg { width: 18px; height: 18px; color: #9aa5a3; }
/* results */
.stf-res { margin-bottom: 14px; } .stf-res h4 { margin: 0 0 6px; font-size: 13px; color: #6b7678; }
.stf-sr-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px; background: none; color: #1f2b2a !important; font: inherit; text-align: right; text-decoration: none; cursor: pointer; }
.stf-sr-i:hover { background: var(--stf-teal-bg); }
.stf-sr-i .stf-cat-img { width: 44px; height: 44px; }
.stf-sr-i b { flex: 1; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; } .stf-sr-i b small { color: #6b7678; font-size: 11.5px; font-weight: 400; }
.stf-sr-i em { font-style: normal; color: var(--stf-teal); font-size: 13px; white-space: nowrap; } .stf-sr-i > svg { width: 18px; height: 18px; color: #9aa5a3; }
.stf-sm-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: var(--stf-teal) !important; font-weight: 700; text-decoration: none; }
.stf-sm-all svg { width: 16px; height: 16px; }
.stf-sm-empty { margin: 8px 0; text-align: center; color: #6b7678; font-size: 13px; }
@media (max-width: 860px) {
	.stf-sm { padding: 0; align-items: stretch; }
	.stf-sm-in { max-width: none; max-height: none; height: 100%; border-radius: 0; }
	.stf-mothers { grid-template-columns: 1fr 1fr; gap: 8px; } .stf-mother { padding: 12px; }
}

/* ---------- header and page heads (one standard) ---------- */
.sp-top { gap: 10px; }
.sp-top .stf-brand { margin-inline-start: 4px; }
.sp-top .stf-brand::after { display: none !important; }
.sp-top .stf-explore { flex: none; margin-inline: 14px 0; }
.sp-head { gap: 10px; }
.sp-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--mut); }
.sp-crumb a { color: var(--mut); text-decoration: none; } .sp-crumb a:hover { color: var(--stf-teal); }
.sp-crumb i { font-style: normal; color: #b4bdbb; }
.sp-head .sp-crumb h1 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* side menu: locked until the identity is verified */
.sp-nav .sp-locked { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #a3adab; cursor: not-allowed; font-size: 14px; }
.sp-nav .sp-locked > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sp-nav .sp-locked > span { flex: 1; } .sp-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }/* RFQ app inside the panels: its page heads follow the breadcrumb standard */
.sp .srq > .srq-head h2, .sp .srq-head > h2 { font-size: 15px !important; font-weight: 800; }
.sp .srq-head > h2::before { content: "پنل فروش ›"; margin-inline-end: 8px; font-size: 13px; font-weight: 400; color: var(--mut); }
.sp-buyer .srq-head > h2::before { content: "پنل خرید ›"; }
.sp-ops .srq-head > h2::before { content: "پنل استاف ›"; }

/* «تنظیمات حساب کاربری»: always a light-orange box with the business name */
.sp-nav a.sp-acc-box { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff4e8; border: 1px solid #fde0bf; color: #7c3d06 !important; text-decoration: none; }
.sp-nav a.sp-acc-box svg { color: #ea7a12; flex: none; }
.sp-nav a.sp-acc-box span { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.sp-nav a.sp-acc-box b { font-size: 13px; } .sp-nav a.sp-acc-box small { font-size: 11.5px; color: #9a5a1c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-nav a.sp-acc-box.on, .sp-nav a.sp-acc-box:hover { background: #ffead3; }
html.sp-mini .sp-nav a.sp-acc-box span { display: none; }
.stf-um-box.is-acc { background: #fff4e8; border-color: #fde0bf; } .stf-um-box.is-acc i { color: #ea7a12; }
/* side menu: person · business · «تنظیمات» (light orange box, business logo) */
.sp-nav a.sp-acc-box { gap: 10px; }
.sp-acc-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid #fde0bf; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-style: normal; }
.sp-acc-logo img { width: 100%; height: 100%; object-fit: cover; } .sp-acc-logo svg { width: 20px; height: 20px; color: #ea7a12; }
.sp-nav a.sp-acc-box > span { flex: 1; }
.sp-nav a.sp-acc-box em { flex: none; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #b45309; }
.sp-nav a.sp-acc-box em svg { width: 15px; height: 15px; }
html.sp-mini .sp-nav a.sp-acc-box em { display: none; }
/* ---------- plans page (Figma «اشتراک‌ها») ---------- */
.spl-h h1 { margin: 0; font-size: 20px; } .spl-h p { margin: 4px 0 14px; color: var(--mut, #6b7678); font-size: 13px; }
.spl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0; background: #f1f3f3; border-radius: 12px; }
.spl-tabs button { height: 40px; border: 0; border-radius: 9px; background: none; font: inherit; color: #6b7678; cursor: pointer; }
.spl-tabs button.on { background: #fff; color: #1f2b2a; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.spl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.spl-col { display: flex; flex-direction: column; gap: 10px; }
.spl-card { position: relative; display: flex; flex-direction: column; padding: 20px; background: #fff; border: 1px solid #e3e8e7; border-radius: 14px; }
.spl-card.hot { border: 2px solid #ff6a00; box-shadow: 0 10px 30px rgba(255, 106, 0, .12); }
.spl-badge { position: absolute; top: -12px; left: 16px; padding: 3px 10px; border-radius: 999px; background: #ff6a00; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }
.spl-card h2 { margin: 0; font-size: 20px; } .spl-sub { margin: 8px 0 16px; color: #8a9593; font-size: 13px; min-height: 1.6em; }
.spl-price { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid #eef1f0; }
.spl-price b { font-size: 30px; letter-spacing: -.5px; } .spl-price small { font-size: 11px; color: #6b7678; line-height: 1.4; }
.spl-use { padding-bottom: 16px; border-bottom: 1px solid #eef1f0; } .spl-use span { display: flex; justify-content: space-between; font-size: 12px; color: #6b7678; margin-bottom: 6px; }
.spl-use i { display: block; height: 6px; border-radius: 99px; background: #eef1f0; overflow: hidden; } .spl-use s { display: block; height: 100%; background: #ff6a00; border-radius: inherit; }
.spl-card ul { list-style: none; margin: 14px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.spl-card li { display: flex; align-items: center; gap: 8px; }
.spl-ok { width: 16px; height: 16px; flex: none; fill: none; stroke: #1b7f4b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spl-eye { width: 20px; height: 20px; margin-inline-start: auto; fill: none; stroke: #1f2b2a; stroke-width: 1.7; }
.spl-btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 14px; }
.spl-btn.o { background: #ff6a00; color: #fff !important; } .spl-btn.d { background: #1f1f1f; color: #fff !important; } .spl-btn.cur { background: #8a8a8a; color: #fff; cursor: default; }
.spl-more { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 26px 0 14px; padding: 16px; background: #fff6ed; border: 1px solid #fde3c4; border-radius: 12px; text-align: center; }
.spl-more b { font-size: 16px; } .spl-more small { color: #6b7678; font-size: 12.5px; }
.spl-adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.spl-add { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; background: #fff; border: 1px solid #e3e8e7; border-radius: 12px; }
.spl-add b { font-size: 14px; } .spl-add small { color: #6b7678; font-size: 12px; } .spl-add-p { color: #ea580c; font-weight: 700; font-size: 14px; }
.spl-add-b { margin-top: 6px; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 8px; background: #f7931e; color: #fff !important; text-decoration: none; font-size: 12.5px; font-weight: 700; }
.spl-hist { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e8e7; border-radius: 12px; overflow: hidden; font-size: 13px; }
.spl-hist th, .spl-hist td { padding: 10px 12px; border-bottom: 1px solid #eef1f0; text-align: right; } .spl-hist th { color: #6b7678; font-weight: 500; background: #fafbfb; }
.spl-empty { padding: 30px; text-align: center; color: #6b7678; background: #fff; border: 1px dashed #e3e8e7; border-radius: 12px; }
@media (max-width: 960px) { .spl-grid, .spl-adds { grid-template-columns: minmax(0, 1fr); } .spl-adds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .spl-adds { grid-template-columns: minmax(0, 1fr); } }
/* the side box: one line each, «…» when a name is long */
.sp-nav a.sp-acc-box > span { min-width: 0; overflow: hidden; }
.sp-nav a.sp-acc-box b, .sp-nav a.sp-acc-box small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* plans: the free plan bar on top */
.spl-free { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 18px; background: #fff; border: 1px solid #e3e8e7; border-radius: 14px; }
.spl-free.cur { border-color: #1b7f4b; background: #f3faf6; }
.spl-free-t { display: flex; flex-direction: column; } .spl-free-t b { font-size: 17px; } .spl-free-t small { color: #1b7f4b; font-size: 12px; font-weight: 700; }
.spl-free ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; flex: 1; }
.spl-free li { display: flex; flex-direction: column; font-size: 12px; } .spl-free li small { color: #6b7678; } .spl-free li b { font-size: 13.5px; }
.spl-free-now { font-size: 12.5px; color: #4b5856; }@media (max-width: 860px) { .ssp .ssp-wizard { padding-bottom: 150px; } }
.sp-nav a.sp-acc-box em svg { width: 19px; height: 19px; }

/* «لجستیک»: no-delivery dates, weekly board of slot cards, advanced delivery rates */
.lg-sec { margin-bottom: 14px; }
.lg-sh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.lg-sh h2 { margin: 0; font-size: 15px; }
.lg-sh small { color: var(--mut); font-size: 12px; flex-basis: 100%; }
.lg-pick { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--stf-teal); border-radius: 10px; color: var(--stf-teal); font-weight: 700; font-size: 13px; cursor: pointer; }
.lg-pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8f8; font-size: 13px; font-weight: 700; }
.lg-chip button { border: 0; background: none; color: #c0392b; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.lg-week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lg-day { min-width: 118px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfb; overflow: hidden; }
.lg-day header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--stf-teal); color: #fff; }
.lg-day header b { font-size: 13px; }
.lg-day header button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.lg-slots { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-height: 60px; }
.lg-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 12px; text-align: right; cursor: pointer; }
.lg-slot:hover { border-color: var(--stf-teal); }
.lg-slot em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #eef0f3; color: #555; }
.lg-slot em.now { background: #fde8e6; color: #c0392b; }
.lg-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.lg-group { padding: 10px; border: 1px dashed #b9c9c7; border-radius: 12px; background: #fbfcfc; }
.lg-cond { display: grid; grid-template-columns: 1fr 1fr 1fr 32px; gap: 6px; margin-bottom: 6px; }
.lg-cond select, .lg-cond input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 13px; min-width: 0; background: #fff; }
.lg-x { border: 0; background: none; color: #c0392b; font-size: 18px; cursor: pointer; }
.lg-gact { display: flex; justify-content: space-between; }
.lg-or { align-self: center; margin: 0; padding: 2px 14px; border-radius: 999px; background: #fff1e6; color: #d35400; font-weight: 700; font-size: 12px; }
.lg-unit { position: relative; }
.lg-unit input { width: 100%; padding-left: 52px; }
.lg-unit i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--mut); font-size: 12px; }
.lg-adv { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.lg-adv summary { cursor: pointer; font-weight: 700; color: var(--stf-teal); margin-bottom: 10px; }
.lg-exin { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; font-size: 12px; color: var(--mut); }
.lg-exin input { width: 90px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; text-align: center; }
.lg-rows { list-style: none; margin: 0 0 8px; padding: 0; }
.lg-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.lg-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--stf-teal); color: #fff; }
.lg-total b { font-size: 16px; }
@media (max-width: 720px) {
	.lg-week { grid-template-columns: 1fr; overflow: visible; }
	.lg-day { min-width: 0; }
	.lg-cond { grid-template-columns: 1fr 1fr; }
	.lg-cond input { grid-column: 1 / 2; }
}
.sp-btn.danger, .sp-link.danger { color: #c0392b; border-color: #e6b0aa; }

/* «مشتریان من» */
.ct-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ct-h h2 { margin: 0; font-size: 16px; }
.ct-h span { display: flex; gap: 8px; }
.ct-q { display: flex; gap: 8px; margin: 10px 0 14px; }
.ct-q input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
.ct-kind { display: inline-flex; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: #eef2f1; }
.ct-kind label { position: relative; cursor: pointer; }
.ct-kind input { position: absolute; opacity: 0; pointer-events: none; }
.ct-kind span { display: block; padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--mut); }
.ct-kind input:checked + span { background: #fff; color: var(--stf-teal); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ct-kind input:focus-visible + span { outline: 2px solid var(--stf-teal-l); }
.sp-f span i { font-style: normal; }
.pf-newc { margin: 10px 0 4px; }
.ct-sec { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; }
.ct-sec h4 { margin: 0 0 12px; font-size: 14px; color: var(--stf-teal); }
.ct-sec .sp-tg { border-bottom: 0; padding-top: 0; }
.ct-geo { flex-basis: 100%; }
.ct-wrap { display: contents; }
.ct-wrap[hidden] { display: none; }
.pf-st { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #fff1e6; color: #d35400; }

.sp-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.sp-docs b { flex-basis: 100%; }

/* official documents mark (VerifiedMark::CSS, for the panels) */
.stf-vm{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;vertical-align:middle;cursor:help;outline:0}.stf-vm svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.stf-vm.ok{color:#1b7f4b}.stf-vm.no{color:#c62828}.stf-vm-tip{position:absolute;bottom:calc(100% + 6px);right:50%;transform:translateX(50%);z-index:30;width:max-content;max-width:210px;padding:6px 10px;border-radius:8px;border:1px solid;font-size:12px;font-weight:500;line-height:1.6;white-space:normal;text-align:center;visibility:hidden;opacity:0;transition:opacity .12s;pointer-events:none}.stf-vm.ok .stf-vm-tip{background:#e7f6ee;border-color:#a9dcc1;color:#14633a}.stf-vm.no .stf-vm-tip{background:#fdecec;border-color:#f3b8b8;color:#a51f1f}.stf-vm:hover .stf-vm-tip,.stf-vm:focus .stf-vm-tip{visibility:visible;opacity:1}

/* dashboard: plan + wallet */
.sp-dboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.sp-dbox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.sp-dbox > i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #e7f1f0; color: #0E4B47; }
.sp-dbox.is-wallet > i { background: #fff4e8; color: #ea7a12; }
.sp-dbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-dbox > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-dbox b { font-size: 14px; } .sp-dbox small { font-size: 12px; color: var(--mut); } .sp-dbox em { font-style: normal; color: var(--mut); }
@media (max-width: 460px) { .sp-dboxes { grid-template-columns: minmax(0, 1fr); } }

/* notifications live inside the messages panel; the bell only feeds them */
.stf-chat-btn ~ .sp-bell { display: none; }
