/* ===== لوحات المسوّق والتاجر (والمشتري): تصميم موحّد حديث — body.acct ===== */
body.acct { --a-r: 18px; background: var(--bg); }
body.acct .app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); padding: 14px; gap: 14px; height: 100vh; align-items: stretch; }
body.acct .sidebar { grid-column: 1; height: calc(100vh - 28px); position: sticky; top: 14px; }
body.acct .main-area { grid-column: 2; min-width: 0; height: calc(100vh - 28px); overflow-y: auto; border-radius: var(--a-r); }
/* السايدبار: كارت فاتح بدل الأسود الكامل */
body.acct .sidebar { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--a-r); box-shadow: var(--shadow); width: 248px; }
body.acct .sidebar-brand { padding: 18px 16px 10px; }
body.acct .sidebar-brand .brand-text .sub { background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 11.5px; padding: 4px 10px; border-radius: 99px; }
body.acct .sidebar-search { display: none; }
body.acct .sidebar nav { padding: 8px 12px; gap: 4px; }
body.acct .sidebar nav a { color: var(--muted); border-radius: 12px; padding: 11px 12px; font-size: 14px; font-weight: 600; border: 0; position: relative; }
body.acct .sidebar nav a svg { width: 19px; height: 19px; opacity: .9; }
body.acct .sidebar nav a:hover { background: var(--hover-soft); color: var(--text); }
body.acct .sidebar nav a.active { background: var(--accent-soft); color: var(--text); font-weight: 800; }
body.acct .sidebar nav a.active svg { color: var(--accent-ink); }
body.acct .sidebar nav a.active::before { content: ''; position: absolute; inset-inline-end: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--gold-grad, var(--accent)); }
body.acct .sidebar-user { border-top: 1px solid var(--border); margin: 6px 14px 12px; }
body.acct .sidebar-user .who { color: var(--text); }
body.acct .sidebar-user a, body.acct .sidebar-user .theme-toggle { color: var(--muted); }
body.acct .sidebar-user a:hover, body.acct .sidebar-user .theme-toggle:hover { background: var(--hover-soft); color: var(--text); }
body.acct .sidebar-version { color: var(--muted); }
/* المحتوى */
body.acct .main-area { background: transparent; }
body.acct .content { padding: 4px 6px 40px; width: 100%; max-width: 1360px; margin-inline: auto; overflow: visible; }
body.acct .content > h1, body.acct .page-actions h1 { font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
body.acct .topbar { display: flex; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--a-r); height: 58px; padding: 0 16px; margin-bottom: 14px; box-shadow: var(--shadow); gap: 10px; }
body.acct .topbar .brand { color: var(--text); }
body.acct .topbar .mobile-menu-btn { color: var(--text); }
body.acct .topbar .user { color: var(--text); display: flex; align-items: center; gap: 10px; }
body.acct .topbar .acct-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
body.acct .topbar .acct-actions .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
/* الكروت والإحصائيات */
body.acct .stats-grid { gap: 14px; }
body.acct .stat-card { border-radius: var(--a-r); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden; }
body.acct .stat-card::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad, var(--accent)); opacity: .9; }
body.acct .stat-num { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
body.acct .stat-label { color: var(--muted); font-weight: 600; }
body.acct .data-table-wrap, body.acct .card, body.acct .dt-card, body.acct .auth-card { border-radius: var(--a-r); border: 1px solid var(--border); box-shadow: var(--shadow); }
body.acct .data-table thead th { background: var(--hover-soft); font-size: 12.5px; color: var(--muted); font-weight: 800; }
body.acct .data-table tbody tr:hover { background: var(--accent-soft); }
body.acct .btn-primary { background: var(--gold-grad, var(--accent)); color: #0a0a0a; border: 0; font-weight: 800; box-shadow: 0 4px 14px rgba(201,169,97,.28); }
body.acct .btn { border-radius: 12px; }
body.acct .badge { border-radius: 99px; font-weight: 800; }
@media (max-width: 860px) {
    body.acct .app-shell { display: block; padding: 8px; height: auto; min-height: 100vh; overflow: visible; }
    body.acct .main-area { height: auto; overflow: visible; }
    body.acct .sidebar { height: auto; }
    body.acct .sidebar { position: fixed; inset-block: 8px; inset-inline-start: 8px; z-index: 1001; transform: translateX(120%); transition: transform .2s; }
    html[dir=rtl] body.acct .sidebar { transform: translateX(120%); }
    body.acct .sidebar.open { transform: none !important; }
    body.acct .topbar .acct-actions .hide-sm { display: none; }
}
/* ===== المشتري (لوحته داخل غلاف السوق): نفس الهوية ===== */
.buyer-hero { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.buyer-nav { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.buyer-nav a { border-radius: 12px; }
.buyer-nav a.on { background: var(--accent-soft); box-shadow: none; color: var(--text); font-weight: 800; }
.bst { border-radius: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.bst::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad, var(--accent)); }
.buyer-row { border-radius: 16px; box-shadow: var(--shadow); }

/* ===== لوحة الأدمن: «مطلوب منك» + حالة المنصة ===== */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 18px; }
.todo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); }
.todo b { font-size: 24px; font-weight: 900; }
.todo span { color: var(--muted); font-size: 13px; font-weight: 700; }
.todo.hot { border-color: var(--accent); background: var(--accent-soft); }
.plat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.plat a { padding: 7px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text); }
.plat .on::before, .plat .off::before { content: '●'; margin-inline-end: 6px; }
.plat .on::before { color: #22c55e; } .plat .off::before { color: #ef4444; }

/* ===== رؤوس الصفحات والعدّادات والعمليات الجماعية ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0 !important; display: flex; align-items: center; gap: 10px; }
.cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 900; }
.perpage { display: flex; align-items: center; gap: 8px; margin: 0; } .perpage select { width: auto; padding: 6px 10px; }
.bulk-bar { display: none; position: sticky; top: 8px; z-index: 5; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--accent); box-shadow: var(--shadow-lg); }
.bulk-bar.on { display: flex; }
.cat-tree { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 6px 14px; box-shadow: var(--shadow); }
.cat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cat-row:last-child { border-bottom: 0; } .cr-act { display: flex; gap: 6px; flex-wrap: wrap; }
body.acct .content > h1 { display: flex; align-items: center; gap: 10px; }

/* ===== نماذج الإنشاء/التعديل داخل النافذة (embed) ===== */
body.embed { background: var(--card); }
body.embed .theme-toggle-float { display: none !important; }
body.embed .content { max-width: 680px; margin: 0 auto; padding: 22px 26px 36px; overflow: visible; }
body.embed .content h1 { font-size: 20px; margin-bottom: 14px; }
body.embed .auth-card, body.embed .content > form { box-shadow: none; border: 0; padding: 0; max-width: 100%; background: transparent; }
body.embed .auth-card h2 { display: none; }
body.embed label { display: block; margin: 14px 0 6px; font-weight: 800; font-size: 13.5px; }
body.embed input:not([type=checkbox]):not([type=radio]), body.embed select, body.embed textarea { width: 100%; padding: 11px 13px; border-radius: 12px; }
body.embed .btn-primary { width: 100%; margin-top: 22px; padding: 13px; font-size: 15px; }
body.embed form > div[style*="grid-template-columns"] { gap: 12px 14px !important; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; } .filter-row input, .filter-row select { width: auto; min-width: 180px; }

/* ===== checkout ===== */
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.co-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.co-card h3 { margin: 0 0 10px; }
.co-methods { display: grid; gap: 10px; margin: 8px 0 6px; }
.co-m { display: flex !important; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.co-m:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.co-m input { width: auto !important; margin-top: 4px; } .co-m span { display: flex; flex-direction: column; gap: 2px; }
.co-acc { font-size: 17px; font-weight: 900; letter-spacing: .5px; color: var(--accent-ink); }
.co-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.co-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 18px; } .co-total b { color: var(--accent-ink); font-size: 22px; }
@media (max-width: 860px) { .co-layout { grid-template-columns: 1fr; } .co-side { order: -1; } }
body.embed .content { display: block; margin-inline: auto !important; }
body.embed .content .auth-card { margin-inline: auto !important; width: 100%; max-width: 640px !important; }
body.embed .content .auth-card h2 { display: none !important; }

.status-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.status-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 700; font-size: 13.5px; }
.status-chips a b { width: 9px; height: 9px; border-radius: 50%; } .status-chips a i { font-style: normal; color: var(--muted); font-size: 12px; }
.status-chips a.on { background: var(--accent-soft); border-color: var(--accent); }
.cp { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 12px; }

/* ===== عملائي: شريط أدوات واحد + حالات في صف واحد قابل للتمرير ===== */
.cl-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.cl-title { margin: 0 !important; font-size: 24px; display: flex; align-items: center; gap: 8px; margin-inline-end: 6px !important; }
.cl-q { flex: 1 1 220px; min-width: 160px; width: auto !important; }
.cl-sel { width: auto !important; min-width: 130px; max-width: 220px; padding: 9px 12px !important; }
.cl-per { min-width: 96px; }
.cl-go { padding: 9px 18px !important; }
.cl-clear { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cl-add { margin-inline-start: auto; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.status-strip { display: flex; gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: thin; }
.status-strip a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-strip a span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.status-strip a b { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .status-strip a i { font-style: normal; color: var(--muted); font-size: 12px; }
.status-strip a.on { background: var(--accent-soft); border-color: var(--accent); }
body.acct .content { padding-top: 0; }
body.acct .topbar { margin-bottom: 10px; }
.data-table td { padding-block: 10px; }
@media (min-width: 900px) { .cl-go { display: none; } .cl-sel { min-width: 120px; } .cl-q { flex: 1 1 260px; } }
.cl-q { height: 40px; } .cl-sel, .cl-add .btn { height: 40px; }
.cl-sel { min-width: 105px; max-width: 165px; } .cl-q { flex: 1 1 160px; min-width: 140px; } .cl-title { font-size: 22px; }
.cl-add .btn, .cl-add button { white-space: nowrap; }
.data-table td:last-child, .data-table td:nth-last-child(2) { white-space: nowrap; }
.data-table td[dir=ltr] { white-space: nowrap; }

.cat-off .cr-main { opacity: .55; } .cat-off .cr-main b { text-decoration: line-through; }
.co-grp { margin: 8px 0; } .co-grp > select { margin-bottom: 4px; }

/* ===== تذاكر الدعم ===== */
.tk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tk-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); text-decoration: none; color: inherit; }
.tk-stat b { font-size: 22px; } .tk-stat span { font-size: 12.5px; opacity: .75; } .tk-stat.on { border-color: var(--accent, #c8a24b); box-shadow: 0 0 0 2px rgba(200,162,75,.25); } .tk-stat.hot b { color: #d97706; }
.tk-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .tk-filters input[type=search] { flex: 1 1 240px; } .tk-filters select { width: auto; }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-inline-start: 4px solid var(--border); border-radius: 12px; background: var(--card); text-decoration: none; color: inherit; flex-wrap: wrap; }
.tk-row:hover { border-color: var(--accent, #c8a24b); } .tk-row.st-open { border-inline-start-color: #f59e0b; } .tk-row.st-answered { border-inline-start-color: #22c55e; }
.tk-main { flex: 1 1 320px; min-width: 0; } .tk-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .tk-sub { font-weight: 700; margin: 4px 0 2px; } .tk-last { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; } .tk-wait { color: #d97706; font-size: 12.5px; font-weight: 700; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; } @media (max-width: 900px) { .tk-layout { grid-template-columns: 1fr; } }
.tk-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tk-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); } .tk-msg.admin { align-self: flex-start; background: rgba(200,162,75,.14); border-color: rgba(200,162,75,.4); } .tk-msg.user { align-self: flex-end; }
.tk-who { font-size: 12px; opacity: .7; margin-bottom: 4px; } .tk-body { line-height: 1.7; white-space: normal; word-break: break-word; } .tk-via { font-size: 12px; margin-top: 6px; opacity: .75; }
.tk-reply { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; } .tk-reply select { width: auto; margin-bottom: 8px; }
.tk-chans { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 10px 0; } .tk-chans label, .tk-close { display: inline-flex; gap: 6px; align-items: center; margin: 0; } .tk-chans input, .tk-close input { width: auto; } .tk-chans .off { opacity: .5; } .tk-close { display: flex; margin: 8px 0 12px; }
.tk-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; } .tk-dl dt { opacity: .65; } .tk-dl dd { margin: 0; word-break: break-word; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; } .pager a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; } .pager a.on { background: var(--accent, #c8a24b); color: #111; border-color: transparent; }

/* ===== إحصائيات التطبيق + الإشعار الجماعي ===== */
.as-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 16px; }
.as-k { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); } .as-k span { font-size: 13px; opacity: .75; } .as-k b { font-size: 28px; line-height: 1.2; } .as-k small { opacity: .65; font-size: 12.5px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; } .as-card { padding: 16px; } .as-card h3 { margin: 0 0 10px; }
.as-h { margin: 22px 0 10px; font-size: 17px; }
.as-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; } .as-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.as-bar i { display: block; width: 100%; background: linear-gradient(180deg, #e8c766, #b8902f); border-radius: 4px 4px 0 0; } .as-bar span { font-size: 9.5px; opacity: .6; margin-top: 3px; }
.as-store { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; } .as-store label { margin: 0; flex: 1 1 120px; } .as-store input { margin-top: 4px; }
.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; } @media (max-width: 900px) { .bc-layout { grid-template-columns: 1fr; } }
.bc-phone { background: linear-gradient(160deg, #1b1608, #000); border-radius: 26px; padding: 26px 16px; min-height: 170px; border: 3px solid rgba(232,199,102,.5); }
.bc-notif { background: rgba(255,255,255,.94); color: #111; border-radius: 14px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.4); } .bc-app { font-size: 11px; opacity: .6; margin-bottom: 3px; } .bc-notif b { display: block; } .bc-notif div + b { margin-top: 2px; } #bc-pb { font-size: 13.5px; margin-top: 2px; word-break: break-word; }
/* سجل الإشعارات */
.nl-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; } .nl-filters input[type=search] { flex: 1 1 220px; } .nl-filters select { width: auto; }
.nl-t { font-weight: 700; } .nl-b { font-size: 12.5px; opacity: .75; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-chan { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; background: rgba(0,0,0,.06); } .nl-sum { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; } .nl-sum span { padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: 13px; }
/* إحصائيات: متصلين الآن + رسم مكدّس */
.lv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .lv-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: lvp 1.8s infinite; }
@keyframes lvp { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.lv-pills { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; } .lv-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(0,0,0,.07); }
.lv-pill.web { background: rgba(59,130,246,.15); color: #1d4ed8; } .lv-pill.app { background: rgba(200,162,75,.22); color: #7a5a10; }
.lv-table tr.is-on td:first-child { border-inline-start: 3px solid #22c55e; }
.as-legend { display: flex; gap: 14px; font-size: 12.5px; margin-bottom: 4px; } .as-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; } .lg.web, .stk i.web { background: #3b82f6; } .lg.app, .stk i.app { background: #d4a73a; }
.stk { display: flex; flex-direction: column; width: 100%; border-radius: 4px 4px 0 0; overflow: hidden; } .stk i { display: block; width: 100%; min-height: 0; }

/* ===================================================================
   تصميم v2 — لوحة المسوّق (mk-*): أنضف، أهدى، وكل حاجة يومية في أول الصفحة
   بيستخدم متغيرات الموقع (فاتح/داكن) فمفيش لون ثابت غير الذهبي والحالات.
   =================================================================== */
.mk { --mk-ok: #15803D; --mk-okb: #DDF3E4; --mk-warn: #A15207; --mk-warnb: #FCEBC8; --mk-bad: #B42318; --mk-badb: #FBE0DC; --mk-info: #1D4ED8; --mk-infob: #DEE8FD; display: flex; flex-direction: column; gap: 20px; }
[data-theme="dark"] .mk { --mk-ok: #4ADE80; --mk-okb: #12301E; --mk-warn: #FBBF24; --mk-warnb: #33270B; --mk-bad: #F87171; --mk-badb: #3A1616; --mk-info: #7DB2FF; --mk-infob: #14243F; }
.mk * { box-sizing: border-box; }
.mk h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.2px; } .mk h2 { margin: 0; font-size: 18px; font-weight: 800; }
.mk-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; } .mk-muted { color: var(--muted); font-size: 13px; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mk-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 700; font-size: 13.5px; text-decoration: none; transition: border-color .15s, transform .15s; }
.mk-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.mk-btn-gold { height: 44px; padding: 0 20px; border: 0; background: var(--gold-grad); color: #15110A; font-size: 14.5px; box-shadow: 0 6px 18px rgba(184,144,47,.35); }
.mk-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.mk-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-card-t { font-size: 14px; align-self: flex-start; }
.mk-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.mk-wallet { grid-column: span 5; border-radius: 22px; padding: 22px 24px; color: #F6F2E6; background: radial-gradient(120% 140% at 100% 0%, rgba(217,178,76,.35), transparent 55%), linear-gradient(150deg, #14110A, #241C08); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-wl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #D9CFAE; }
.mk-pill-dark { background: rgba(255,255,255,.1); border-radius: 99px; padding: 3px 11px; color: #E8C766; font-size: 12px; }
.mk-bal { display: flex; align-items: baseline; gap: 8px; } .mk-bal b { font-size: 44px; line-height: 1; letter-spacing: -1px; } .mk-bal span { font-size: 16px; color: #D9CFAE; }
.mk-wl-chart { width: 100%; height: 70px; }
.mk-wl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-wbtn { flex: 1 1 110px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); color: #F6F2E6; font-weight: 700; font-size: 14px; text-decoration: none; }
.mk-wbtn.gold { background: #E8C766; color: #15110A; border-color: transparent; }
.mk-goal { grid-column: span 3; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.mk-ring { position: relative; width: 132px; height: 132px; } .mk-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.mk-ring-in b { font-size: 30px; } .mk-ring-in small { font-size: 16px; color: var(--muted); font-weight: 500; } .mk-ring-in span { font-size: 12px; color: var(--muted); }
.mk-quick { grid-column: span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.mk-quick a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; min-width: 0; }
.mk-quick a:hover { transform: translateY(-2px); border-color: var(--accent); }
.mk-quick i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; }
.mk-quick b { font-size: 14.5px; } .mk-quick span { font-size: 12px; color: var(--muted); }
.mk-i-info { background: var(--mk-infob); color: var(--mk-info); } .mk-i-warn { background: var(--mk-warnb); color: var(--mk-warn); } .mk-i-ok { background: var(--mk-okb); color: var(--mk-ok); }
.mk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mk-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); min-width: 0; }
.mk-kpi > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .mk-kpi span { color: var(--muted); font-size: 13.5px; }
.mk-kpi b { font-size: 28px; letter-spacing: -.5px; line-height: 1.2; } .mk-kpi u { text-decoration: none; font-size: 14px; color: var(--muted); font-weight: 600; } .mk-kpi small { color: var(--muted); font-size: 12.5px; }
.mk em { font-style: normal; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.mk em.up, .mk-chip.up { background: var(--mk-okb); color: var(--mk-ok); } .mk em.down, .mk-chip.down, .mk-chip.bad { background: var(--mk-badb); color: var(--mk-bad); } .mk em.flat { background: var(--surface-2); color: var(--muted); }
.mk-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; } .mk-chip.warn { background: var(--mk-warnb); color: var(--mk-warn); }
.mk-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mk-stage { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; min-width: 0; }
.mk-stage:hover { border-color: var(--accent); transform: translateY(-2px); } .mk-stage b { font-size: 26px; line-height: 1; }
.mk-st-n { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; } .mk-st-n i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mk-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; } .mk-bar div { height: 100%; border-radius: 99px; }
.mk-row2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; } .mk-row2 > :first-child { grid-column: span 7; } .mk-row2 > :last-child { grid-column: span 5; }
.mk-task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.mk-av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; text-decoration: none; flex: none; }
.mk-task-m { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; text-decoration: none; color: var(--text); } .mk-task-m b { font-size: 14.5px; } .mk-task-m span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-task-s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .mk-task-a { display: flex; gap: 8px; }
.mk-ic { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: transform .15s, border-color .15s; }
.mk-ic:hover { border-color: var(--accent); transform: translateY(-1px); } .mk-ic.wa { background: #1FAF5A; border-color: transparent; color: #fff; } .mk-ic.done { background: var(--mk-okb); color: var(--mk-ok); border-color: transparent; }
.mk-big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; } .mk-big b { font-size: 30px; letter-spacing: -.5px; } .mk-big span { color: var(--muted); }
.mk-chart { width: 100%; height: 190px; } .mk-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.mk-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; } .mk-mini > div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; } .mk-mini span { font-size: 12px; color: var(--muted); }
.mk-empty { margin: 14px 0 6px; padding: 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--border); border-radius: 14px; font-size: 13.5px; }
.mk-sec { display: flex; flex-direction: column; }
.mk-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mk-prod { background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow); } .mk-prod:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mk-pimg { height: 130px; background: linear-gradient(135deg, #3B4B6B, #1E2A44) center/cover; position: relative; }
.mk-comm { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(10,10,10,.75); color: #E8C766; border-radius: 99px; padding: 3px 11px; font-size: 12px; font-weight: 800; }
.mk-pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; } .mk-pbody b { font-size: 15px; line-height: 1.4; }
.mk-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .mk-prow strong { font-size: 16px; color: var(--accent-ink); } .mk-prow > div { display: flex; gap: 6px; align-items: center; } .mk-prow .mk-ic { width: 36px; height: 36px; }
.mk-share { display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 11px; background: #0B0B0B; color: #E8C766; font-weight: 800; font-size: 13px; text-decoration: none; }
@media (max-width: 1100px) { .mk-wallet { grid-column: span 7; } .mk-goal { grid-column: span 5; } .mk-quick { grid-column: span 12; grid-template-columns: repeat(4, minmax(0, 1fr)); } .mk-row2 > :first-child, .mk-row2 > :last-child { grid-column: span 12; } }
@media (max-width: 760px) { .mk-wallet, .mk-goal, .mk-quick { grid-column: span 12; } .mk-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk h1 { font-size: 22px; } .mk-bal b { font-size: 38px; } .mk-card { padding: 16px; } }

/* ===== عملائي: تبديل عرض + لوحة المراحل ===== */
.vw-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.vw-toggle a { padding: 6px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; } .vw-toggle a.on { background: var(--accent-soft); color: var(--text); font-weight: 800; }
.bd-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; align-items: start; scroll-snap-type: x proximity; }
.bd-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; max-height: calc(100vh - 260px); overflow-y: auto; }
.bd-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px; position: sticky; top: -12px; background: var(--surface-2); z-index: 1; } .bd-h i { width: 10px; height: 10px; border-radius: 50%; } .bd-h b { flex: 1; font-size: 14.5px; }
.bd-h span { font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: 1px 9px; }
.bd-card { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.bd-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(184,144,47,.18); }
.bd-top { display: flex; align-items: center; gap: 9px; } .bd-top b { flex: 1; font-size: 14px; } .bd-top small { color: var(--muted); font-size: 11.5px; }
.bd-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.bd-prod { font-size: 12.5px; color: var(--muted); } .bd-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); } .bd-code { background: var(--surface-2); border-radius: 8px; padding: 1px 8px; }

/* ===== تنعيم عام للوحات (مسوّق/تاجر/أدمن/مشتري): ألوان أدفى، حركة هادية، تركيز واضح ===== */
:root:not([data-theme="dark"]) body.acct { --bg: #F5F3EE; --surface-2: #F4F0E5; --border: #E8E3D6; }
body.acct { scroll-behavior: smooth; }
body.acct .btn, body.acct .stat-card, body.acct .data-table tbody tr, body.acct .sidebar nav a, body.acct .todo, body.acct input, body.acct select, body.acct textarea { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s, color .15s; }
body.acct input:focus-visible, body.acct select:focus-visible, body.acct textarea:focus-visible, body.acct .btn:focus-visible, body.acct a:focus-visible, body.acct button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.acct .stat-card:hover, body.acct .todo:hover { transform: translateY(-1px); }
body.acct .content > * { animation: acctin .35s ease both; } @keyframes acctin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.acct .content > * { animation: none; } body.acct * { transition: none !important; } }
body.acct .sidebar nav a.active::before { inset-inline-end: -13px; }
body.acct .data-table-wrap { overflow-x: auto; }

/* ===== v1.23: سايدبار قابل للطي + شريط علوي موحّد + استغلال أفضل للمساحة ===== */
body.acct { --sb-w: 232px; }
body.acct.sb-collapsed { --sb-w: 68px; }
body.acct .app-shell { grid-template-columns: var(--sb-w) minmax(0, 1fr); padding: 10px; gap: 10px; transition: grid-template-columns .2s ease; }
body.acct .sidebar { width: var(--sb-w); height: calc(100vh - 20px); top: 10px; overflow: hidden; transition: width .2s ease; }
body.acct .main-area { height: calc(100vh - 20px); scrollbar-width: thin; }
body.acct .content { max-width: 1680px; padding: 2px 2px 32px; }
body.acct .content > h1 { font-size: 22px; margin: 4px 0 12px; }
/* القايمة: أكثف */
body.acct .sidebar-brand { padding: 14px 14px 8px; min-height: 58px; }
body.acct .sidebar-brand .sb-mini { display: none; }
body.acct .sidebar nav { padding: 4px 10px; gap: 2px; scrollbar-width: thin; }
body.acct .sidebar nav a { padding: 8px 10px; font-size: 13.5px; gap: 10px; border-radius: 10px; }
body.acct .sidebar nav a svg { width: 18px; height: 18px; flex: 0 0 18px; }
body.acct .sidebar nav a .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.acct .sidebar nav a.active::before { inset-inline-end: -10px; top: 8px; bottom: 8px; }
body.acct .nav-section { padding: 12px 10px 4px; font-size: 11px; letter-spacing: .3px; color: var(--muted); opacity: .75; font-weight: 800; text-transform: none; }
.nav-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
body.acct .sidebar-user { margin: 4px 10px 6px; padding-top: 8px; }
body.acct .sidebar-version { text-align: center; font-size: 10.5px; padding: 0 0 8px; opacity: .6; }
/* شريط علوي */
body.acct .topbar { height: 52px; padding: 0 10px; margin-bottom: 10px; gap: 8px; position: sticky; top: 0; z-index: 30; align-items: center; }
body.acct .topbar .brand, body.acct .topbar .mobile-menu-btn { display: none; }
body.acct .tb-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 36px; }
body.acct .tb-btn:hover { background: var(--hover-soft); color: var(--text); }
body.acct .tb-btn[hidden] { display: none; }
body.acct .tb-btn svg { width: 19px; height: 19px; }
body.acct .tb-title { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; }
body.acct .tb-search { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; min-width: 220px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2, var(--bg)); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
body.acct .tb-search:hover { border-color: var(--accent); color: var(--text); }
body.acct .tb-search span { flex: 1; text-align: start; }
body.acct .tb-search kbd { font: 600 10.5px/1 inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--muted); }
body.acct .topbar .acct-actions { margin-inline-start: 0; }
body.acct .topbar .acct-actions .btn { padding: 7px 12px; height: 36px; display: inline-flex; align-items: center; }
body.acct .topbar .user { text-decoration: none; padding: 3px 4px 3px 10px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
body.acct .topbar .user .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad, var(--accent)); color: #0a0a0a; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 13px; }
body.acct .topbar .ic-sun { display: none; } [data-theme="dark"] body.acct .topbar .ic-sun { display: inline-flex; } [data-theme="dark"] body.acct .topbar .ic-moon { display: none; }
/* وضع الشريط (مطوي) */
body.acct.sb-collapsed .sidebar .brand-text, body.acct.sb-collapsed .sidebar .lbl, body.acct.sb-collapsed .sidebar .who, body.acct.sb-collapsed .sidebar-version { display: none; }
body.acct.sb-collapsed .sidebar-brand { justify-content: center; padding-inline: 0; }
body.acct.sb-collapsed .sidebar-brand .sb-mini { display: inline-flex; }
body.acct.sb-collapsed .sidebar nav { overflow: visible; overflow-y: auto; padding-inline: 8px; }
body.acct.sb-collapsed .sidebar nav a { justify-content: center; padding: 10px 0; }
body.acct.sb-collapsed .nav-section { font-size: 0; padding: 8px 14px; } body.acct.sb-collapsed .nav-section::after { content: ''; display: block; height: 1px; background: var(--border); }
body.acct.sb-collapsed .nav-badge { position: absolute; top: 3px; inset-inline-end: 6px; min-width: 8px; height: 8px; padding: 0; font-size: 0; }
body.acct.sb-collapsed .sidebar-user { justify-content: center; flex-direction: column; gap: 6px; margin-inline: 8px; }
body.acct.sb-collapsed .sidebar nav a:hover::after { content: attr(data-tip); position: fixed; inset-inline-start: 86px; background: #1b1b1b; color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 2000; pointer-events: none; transform: translateY(-2px); }
/* باليت البحث والتنقّل */
.palette { position: fixed; inset: 0; z-index: 3000; background: rgba(10,10,10,.45); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 14px 0; backdrop-filter: blur(3px); }
.palette[hidden] { display: none; }
.palette-box { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: hidden; }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 16px 18px; font: inherit; font-size: 16px; background: transparent; color: var(--text); outline: none; border-radius: 0; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.palette-list a svg { width: 18px; height: 18px; color: var(--muted); stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 18px; }
.palette-list a b { flex: 1; font-weight: 700; } .palette-list a small { color: var(--muted); font-size: 11.5px; }
.palette-list a.on, .palette-list a:hover { background: var(--accent-soft); }
.palette-empty { text-align: center; color: var(--muted); padding: 22px; margin: 0; }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
/* جداول وكروت أكثف */
body.acct .data-table td { padding-block: 9px; } body.acct .data-table th { padding-block: 9px; }
body.acct .stats-grid { gap: 10px; }
body.acct .stat-card { padding: 16px; }
body.acct .stat-num { font-size: 26px; }
@media (max-width: 1100px) { body.acct .tb-search { min-width: 0; } body.acct .tb-search span, body.acct .tb-search kbd { display: none; } body.acct .tb-title { max-width: 40vw; } }
@media (max-width: 860px) {
    body.acct .app-shell { padding: 6px; }
    body.acct .sidebar { width: 272px; height: auto; inset-block: 6px; inset-inline-start: 6px; overflow-y: auto; }
    body.acct.sb-collapsed .sidebar .lbl, body.acct.sb-collapsed .sidebar .who, body.acct.sb-collapsed .sidebar .brand-text, body.acct.sb-collapsed .sidebar .sb-logo { display: revert; }
    body.acct.sb-collapsed .sidebar-brand .sb-mini { display: none; }
    body.acct.sb-collapsed .sidebar nav a { justify-content: flex-start; padding: 8px 10px; }
    body.acct .collapse-btn { display: none; }
    body.acct .topbar .mobile-menu-btn { display: inline-flex; }
    body.acct .topbar { top: 0; padding: 0 8px; }
    body.acct .tb-title { flex: 1; max-width: none; }
    body.acct .tb-search { margin-inline-start: 0; }
    body.acct .topbar .acct-actions .btn-primary { padding: 7px 10px; font-size: 12px; }
    body.acct .topbar .user { padding: 2px; border: 0; }
}

/* ===== لوحة الأدمن v2 (adm-*) ===== */
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 12px; }
.adm-grid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.adm-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.adm-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.adm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.adm-card-h h2 { margin: 0; font-size: 15px; font-weight: 900; }
.adm-more { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.adm-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.adm-pill.hot { background: #ef4444; color: #fff; }
.adm-todo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.adm-todo-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2, var(--bg)); border: 1px solid transparent; text-decoration: none; color: var(--text); font-size: 12.5px; font-weight: 700; transition: transform .15s, border-color .15s; }
.adm-todo-list a:hover { transform: translateY(-1px); border-color: var(--accent); }
.adm-todo-list a b { font-size: 17px; font-weight: 900; color: var(--muted); }
.adm-todo-list a.hot { background: var(--accent-soft); border-color: var(--accent); } .adm-todo-list a.hot b { color: #dc2626; }
.adm-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 700; } .adm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 5px; }
.adm-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.adm-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.adm-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.adm-pair i { flex: 1; max-width: 12px; min-height: 3px; border-radius: 4px 4px 1px 1px; opacity: .9; }
.adm-col small { font-size: 10.5px; color: var(--muted); }
.adm-today { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.adm-today > * { text-decoration: none; color: var(--text); display: flex; flex-direction: column; } .adm-today b { font-size: 20px; font-weight: 900; } .adm-today span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.adm-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.adm-kpi:hover { transform: translateY(-2px); border-color: var(--accent); }
.adm-kpi span { font-size: 12.5px; color: var(--muted); font-weight: 700; } .adm-kpi b { font-size: 24px; font-weight: 900; letter-spacing: -.5px; line-height: 1.15; } .adm-kpi small { font-size: 11.5px; color: var(--muted); }
.adm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-inline-end: 6px; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: admdot 1.8s infinite; } @keyframes admdot { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.adm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; } .adm-row:last-child { border-bottom: 0; }
.adm-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 900; font-size: 11.5px; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.adm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .adm-name b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .adm-name small { font-size: 11.5px; }
@media (max-width: 980px) { .adm-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .adm-todo-list { grid-template-columns: 1fr; } .adm-today { grid-template-columns: 1fr 1fr; } }
body.acct .tb-btn.theme-toggle { width: 36px; height: 36px; color: var(--muted); } body.acct .tb-btn.theme-toggle:hover { background: var(--hover-soft); color: var(--text); }
body.acct .tb-btn.theme-toggle svg { width: 19px; height: 19px; }
/* ارتفاع الشاشة بيتقسم بين شريط المتجر والتطبيق بدل ما يعمل سكرول زيادة */
@media (min-width: 861px) {
    body.acct { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
    body.acct .app-shell { flex: 1; min-height: 0; height: auto; }
    body.acct .sidebar { height: 100%; top: 0; }
    body.acct .main-area { height: 100%; }
}
body.acct.sb-collapsed .sidebar .sb-logo { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }
@media (max-width: 860px) { body.acct.sb-collapsed .sidebar .sb-logo { position: static; width: auto; height: auto; overflow: visible; visibility: visible; } }
@media (max-width: 860px) {
    body.acct .topbar .hide-sm { display: none !important; }
    body.acct .topbar { overflow: hidden; }
    body.acct .tb-title { font-size: 15px; min-width: 0; }
    body.acct .topbar .acct-actions { flex-shrink: 0; }
    body.acct .topbar .acct-actions .btn-primary { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 420px) { body.acct .topbar .acct-actions .btn-primary { display: none; } }

/* ===== الشاشة المقسومة (sp-*) + شرائح الفلاتر ===== */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.chip i { font-style: normal; color: var(--muted); font-weight: 600; } .chip b { width: 8px; height: 8px; border-radius: 50%; }
.chip:hover { border-color: var(--accent); } .chip.on { background: var(--accent-soft); border-color: var(--accent); }
.split-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.split-wrap.open { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-wrap.open .col-lo { display: none; }
.split-wrap tr.sel td { background: var(--accent-soft); }
.split-wrap tr.sel td:first-child { box-shadow: inset -4px 0 0 var(--accent); }
.sp-detail { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); position: sticky; top: 0; max-height: calc(100vh - 150px); overflow-y: auto; min-width: 0; }
.sp-detail[hidden] { display: none; }
.sp-load { padding: 40px 16px; text-align: center; color: var(--muted); }
.sp-head { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.sp-head h2 { margin: 0 0 3px; font-size: 17px; }
.sp-av { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad, var(--accent)); color: #0a0a0a; font-weight: 900; font-size: 19px; display: flex; align-items: center; justify-content: center; flex: 0 0 46px; }
.sp-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sp-x { margin-inline-start: auto; border: 0; background: var(--surface-2, var(--bg)); color: var(--muted); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; flex: 0 0 32px; }
.sp-pill, .split-wrap .badge { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; display: inline-block; }
.sp-pill.st-active { background: #dcfce7; color: #166534; } .sp-pill.st-pending { background: #fef3c7; color: #92400e; } .sp-pill.st-suspended { background: #e5e7eb; color: #374151; }
.sp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; padding: 12px 16px; }
.sp-q { border: 1px solid var(--border); background: var(--bg); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 700; border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sp-q span { font-size: 18px; line-height: 1; } .sp-q:hover { border-color: var(--accent); background: var(--accent-soft); }
.sp-sec { padding: 12px 16px; border-top: 1px solid var(--border); } .sp-sec h3 { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.sp-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; } .sp-kv > div { min-width: 0; } .sp-kv small { display: block; color: var(--muted); font-size: 11.5px; } .sp-kv b { font-weight: 700; overflow-wrap: anywhere; font-size: 13.5px; }
.sp-stages { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-stages button { border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.sp-stages button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); } .sp-stages button:disabled { opacity: .5; }
.sp-tl { display: flex; flex-direction: column; gap: 8px; } .sp-tl > div { display: flex; gap: 10px; font-size: 13px; } .sp-tl i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: 0 0 8px; } .sp-tl small { display: block; color: var(--muted); font-size: 11.5px; }
.sp-mut { color: var(--muted); margin: 0; font-size: 13px; }
.sp-detail textarea { width: 100%; min-height: 56px; resize: vertical; }
.sp-save { margin-top: 8px; border: 0; background: var(--gold-grad, var(--accent)); color: #0a0a0a; font: inherit; font-weight: 800; padding: 8px 18px; border-radius: 12px; cursor: pointer; }
.sp-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.sp-foot form { margin: 0; } .sp-link { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); text-decoration: none; border: 1px solid var(--border); padding: 7px 12px; border-radius: 10px; background: var(--bg); cursor: pointer; display: inline-block; }
@media (max-width: 900px) { .split-wrap.open { grid-template-columns: 1fr; } .sp-detail { position: static; max-height: none; } .split-wrap.open .col-lo { display: table-cell; } }
.sp-find { width: 100%; margin-bottom: 8px; height: 36px; border-radius: 10px; }
.sp-stages button i { font-style: normal; color: var(--muted); font-size: 11px; margin-inline-start: 6px; font-weight: 600; }
.sp-stages button[hidden] { display: none; }
.sp-more { margin-top: 8px; border: 0; background: transparent; color: var(--accent-ink); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 4px 0; }
.chip[hidden] { display: none; }
.chip-find { height: 30px; min-width: 200px; flex: 0 1 240px; border-radius: 99px; padding: 0 14px; font-size: 12.5px; }
.sp-find, .chip-find { background: var(--bg); color: var(--text); border: 1px solid var(--border); font: inherit; font-size: 13px; padding: 0 12px; outline: none; }
.sp-find:focus, .chip-find:focus { border-color: var(--accent); }
.sp-imgwrap { padding: 12px 16px 0; } .sp-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 14px; display: block; }
.sp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .sp-nums div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px; text-align: center; } .sp-nums b { display: block; font-size: 20px; font-weight: 900; } .sp-nums small { color: var(--muted); font-size: 11.5px; }
.pr-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }

/* ===== إعلانات التاجر: كروت ===== */
.vd-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.vd-bar input { flex: 1 1 220px; max-width: 340px; height: 38px; border-radius: 10px; background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 0 12px; font: inherit; }
button.chip { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vd-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.vd-card:hover { transform: translateY(-2px); border-color: var(--accent); } .vd-card[hidden] { display: none; }
.vd-img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2, var(--bg)); display: flex; align-items: center; justify-content: center; }
.vd-img img { width: 100%; height: 100%; object-fit: cover; }
.vd-st { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #fff; }
.vd-ok { color: #166534; background: #dcfce7; } .vd-wait { color: #92400e; background: #fef3c7; } .vd-bad { color: #991b1b; background: #fee2e2; } .vd-sold { color: #1d4ed8; background: #dbeafe; }
.vd-feat { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--gold-grad, var(--accent)); color: #0a0a0a; }
.vd-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vd-body h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-price { font-size: 18px; font-weight: 900; color: var(--accent-ink); display: flex; align-items: baseline; gap: 4px; } .vd-price small { font-size: 12px; } .vd-price span { margin-inline-start: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vd-perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .vd-perf span { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 5px 4px; text-align: center; font-size: 12.5px; }
.vd-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }

/* ===== منتجات المسوّق ===== */
.mp-head { margin: 2px 0 12px; }
.mp-bar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mp-bar input { flex: 1 1 240px; max-width: 380px; } .mp-bar select { width: auto; }
.mp-bar input, .mp-bar select { height: 40px; border-radius: 12px; background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 0 12px; font: inherit; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mp-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.mp-card:hover { transform: translateY(-3px); border-color: var(--accent); } .mp-card.focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); } .mp-card[hidden] { display: none; }
.mp-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2, var(--bg)); display: flex; align-items: center; justify-content: center; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-comm { position: absolute; bottom: 10px; right: 10px; background: var(--gold-grad, var(--accent)); color: #0a0a0a; font-weight: 800; font-size: 12.5px; padding: 4px 12px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.mp-focus { position: absolute; top: 10px; left: 10px; background: #16a34a; color: #fff; font-weight: 800; font-size: 11.5px; padding: 3px 10px; border-radius: 99px; }
.mp-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mp-body h3 { margin: 0; font-size: 14.5px; line-height: 1.5; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; } .mp-body h3 a { color: var(--text); text-decoration: none; }
.mp-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .mp-price { font-size: 18px; font-weight: 900; color: var(--accent-ink); } .mp-price small { font-size: 12px; }
.mp-meta span { font-size: 11.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.mp-act { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: auto; } .mp-act .btn { padding: 9px 10px; font-size: 13px; text-align: center; white-space: nowrap; }
.mp-act2 { display: flex; gap: 12px; flex-wrap: wrap; } .mp-lnk { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); cursor: pointer; text-decoration: none; }
@media (max-width: 520px) { .mp-grid { grid-template-columns: 1fr; } }
.vd-bar, .vd-grid, .mp-bar, .mp-grid, .chips { flex-shrink: 0; }
.vd-bar { min-height: 40px; }
.chip-n { font-style: normal; color: var(--muted); font-weight: 600; }
