/* ============================================
   Bale Store - Seller Panel Styles
   Based on Figma Design System
   ============================================ */

/* Figma source: 01 Foundations + 03 Seller Web */

/* ===== Base Styles & Reset ===== */
*{box-sizing:border-box;margin:0;padding:0}
html{font-family:Vazirmatn,Tahoma,system-ui,sans-serif;color:var(--text);background:var(--page);line-height:1.6}
body{margin:0;direction:rtl}
button,input,select,textarea{font:inherit}
button,a{transition:.18s ease;cursor:pointer}
a{color:var(--primary);text-decoration:none}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* ===== Design Tokens (from Figma) ===== */
:root{
  /* Surface */
  --page:#f8fafc;
  --card:#ffffff;
  --raised:#ffffff;
  --interactive:#f1f5f9;

  /* Text */
  --text:#0f172a;
  --muted:#475569;
  --disabled:#94a3b8;

  /* Border */
  --border:#e2e8f0;
  --strong:#cbd5e1;

  /* Actions */
  --primary:#009654;
  --primary-hover:#007a44;

  /* Status */
  --success:#16a34a;
  --success-bg:#f0fdf4;
  --warning:#d97706;
  --warning-bg:#fffbeb;
  --error:#dc2626;
  --error-bg:#fef2f2;
  --info:#1d4ed8;
  --info-bg:#eff6ff;

  /* Sidebar */
  --sidebar:#ffffff;
  --sidebar-text:#475569;

  /* Radius (Figma scale) */
  --radius-sm:6px;
  --radius-md:10px;
  --radius-lg:14px;
  --radius-xl:20px;
  --radius-full:999px;
  --radius:14px; /* default */

  /* Spacing (4px base scale) */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;

  /* Typography */
  --font-display-lg:44px;
  --font-h1:30px;
  --font-h2:22px;
  --font-body-lg:16px;
  --font-body-md:14px;
  --font-label-sm:12px;

  /* Shadow */
  --shadow:none;
}

/* ===== Typography ===== */
.brand{display:flex;gap:10px;align-items:center;font-weight:900;font-size:16px}
.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--primary);color:#fff;font-weight:900}
.muted{color:var(--muted);font-size:14px}
.eyebrow{color:var(--primary);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0.5px}

/* ===== Forms ===== */
.field{display:grid;gap:8px;margin:18px 0}
.field>span,.field>label{font-size:13px;font-weight:650;color:var(--text)}
input,select,textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:var(--card);color:var(--text);font-size:14px}
textarea{min-height:100px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:2px solid color-mix(in srgb,var(--primary) 15%,transparent);outline-offset:0}
.field-hint{font-size:12px;color:var(--muted);margin-top:4px}
.field-error{font-size:12px;color:var(--error);margin-top:4px;display:block}
.field-error:not([hidden]){animation:slideDown 0.2s ease}
@keyframes slideDown{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
label.checkbox,label:has(>input[type="checkbox"]){display:flex;direction:rtl;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:8px;width:100%;text-align:right;cursor:pointer}
label.checkbox>input[type="checkbox"],label:has(>input[type="checkbox"])>input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;padding:0;border-radius:4px;accent-color:var(--primary)}
label.checkbox>span,label:has(>input[type="checkbox"])>span{flex:1;min-width:0}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;padding:11px 18px;text-decoration:none;font-weight:700;font-size:14px;cursor:pointer;transition:all .15s ease}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-hover)}
.btn-primary img{filter:brightness(0) invert(1)}
.btn-secondary{background:var(--interactive);color:var(--primary)}
.btn-secondary:hover{background:color-mix(in srgb,var(--interactive) 80%,var(--primary))}
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}
.btn-ghost:hover{background:var(--interactive)}
.btn-danger{background:var(--error-bg);color:var(--error)}
.btn-danger:hover{background:color-mix(in srgb,var(--error-bg) 80%,var(--error))}
.btn-block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
.btn-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
.create-shop-quota-reached{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.create-shop-quota-hint{margin:0;font-size:12px;color:var(--muted);max-width:280px;line-height:1.6}

/* ===== Alerts & Badges ===== */
.alert{padding:12px 16px;border-radius:10px;margin:16px 0;line-height:1.7;font-size:13px}
.alert-error{background:var(--error-bg);color:var(--error)}
.alert-info{background:var(--info-bg);color:var(--info)}
.alert-success{background:var(--success-bg);color:var(--success)}
.alert-warning{background:var(--warning-bg);color:var(--warning)}
.badge{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700}
.badge-success{color:var(--success);background:var(--success-bg)}
.badge-warning{color:var(--warning);background:var(--warning-bg)}
.badge-error{color:var(--error);background:var(--error-bg)}
.badge-info{color:var(--info);background:var(--info-bg)}

/* ===== Cards & Layout ===== */
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:0 1px 3px rgba(0,0,0,0.02)}
.card-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.card-title h2{font-size:16px;margin:0;font-weight:700}
.card-title>*:last-child:not(:first-child){margin-right:auto}
.page-actions{display:flex;align-items:center;gap:10px}
.grid{display:grid;gap:16px}
.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.layout-2{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
.stack{display:grid;gap:16px}
.empty{text-align:center;padding:48px 20px;color:var(--muted)}
.empty-icon{width:56px;height:56px;display:grid;place-items:center;margin:0 auto 16px;border-radius:14px;background:var(--interactive);color:var(--primary);font-size:24px}

/* ===== Tables ===== */
.table-wrap{overflow:auto;margin-top:16px}
table{width:100%;border-collapse:collapse}
th,td{text-align:right;padding:14px 12px;border-bottom:1px solid var(--border);white-space:nowrap;font-size:13px}
th{color:var(--muted);background:var(--page);font-weight:650}
tbody tr:hover{background:color-mix(in srgb,var(--interactive) 40%,transparent)}
.table-action{display:flex;gap:8px;flex-wrap:wrap}
.product-actions{position:relative;display:inline-flex}
.product-actions-trigger{display:grid;place-items:center;width:38px;height:34px;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--muted);font-size:18px;font-weight:900;letter-spacing:2px;line-height:1}
.product-actions-trigger:hover,.product-actions:focus-within .product-actions-trigger{background:var(--interactive);color:var(--text)}
.product-actions-menu{position:absolute;z-index:20;top:calc(100% + 6px);left:0;display:none;min-width:150px;padding:6px;border:1px solid var(--border);border-radius:10px;background:var(--card);box-shadow:0 12px 30px rgba(15,23,42,.14)}
.product-actions:hover .product-actions-menu,.product-actions:focus-within .product-actions-menu{display:grid}
.product-actions-menu button{width:100%;border:0;border-radius:8px;padding:9px 11px;background:transparent;color:var(--text);text-align:right;white-space:nowrap}
.product-actions-menu button:hover,.product-actions-menu button:focus-visible{background:var(--interactive)}
.product-actions-menu button.danger{color:var(--error)}
.product-table-wrap{overflow:visible}

/* ===== Dialogs ===== */
.dialog{width:min(94vw,620px);max-width:620px;max-height:92vh;border:0;border-radius:16px;padding:0;box-shadow:0 24px 70px rgba(0,0,0,0.3);margin:auto}
.dialog::backdrop{background:rgba(0,0,0,0.5)}
.dialog-centered{max-height:92vh;margin:auto}
.dialog-centered::backdrop{background:rgba(0,0,0,0.5)}
.dialog-head,.dialog-body,.dialog-foot{padding:20px 24px}
.dialog-head{display:flex;align-items:center;border-bottom:1px solid var(--border)}
.dialog-head h2{margin:0;font-size:18px;font-weight:700}
.dialog-head button{margin-right:auto}
.dialog-foot{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--border)}
.toast{position:fixed;z-index:100;left:24px;bottom:24px;max-width:400px;padding:14px 18px;border-radius:10px;background:var(--text);color:var(--page);box-shadow:0 8px 24px rgba(0,0,0,0.2);font-size:14px}

/* ===== Login Page (New Figma Design) ===== */
.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 640px;background:#F8FAFC}

/* Brand Hero Panel (Left Side - Green Gradient) */
.login-brand-panel{display:flex;flex-direction:column;justify-content:space-between;padding:80px;background:linear-gradient(135deg,#006C44 0%,#009654 50%,#10B981 100%);color:#fff}
.login-brand-logo{display:flex;align-items:center;gap:8px}
.login-logo-circle{width:8px;height:8px;border-radius:50%;background:#fff;flex-shrink:0}
.login-brand-badge{font-size:14px;font-weight:600;color:rgba(255,255,255,0.7);line-height:1.4}
.login-brand-content{display:flex;flex-direction:column;gap:24px;margin-top:auto;margin-bottom:auto}
.login-brand-content h1{font-size:44px;font-weight:800;line-height:1.4;margin:0}
.login-brand-content p{font-size:18px;line-height:1.7;color:#F0FDF4;margin:0}
.login-features{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap}
.login-feature-badge{display:flex;align-items:center;gap:8px;padding:8px 16px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:20px;font-size:13px;font-weight:500;color:#fff}
.login-feature-badge svg{flex-shrink:0}

/* Login Form Panel (Right Side - White) */
.login-form-panel{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:80px;background:#fff}
.login-form-container{width:420px;display:flex;flex-direction:column;gap:40px}
.login-header{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.login-app-icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:#E6F4EA;border-radius:18px;box-shadow:0 4px 12px rgba(15,23,42,0.03)}
.login-app-icon svg{stroke:#009654;stroke-width:2}
.login-header h2{font-size:28px;font-weight:900;color:#0F172A;margin:0}
.login-subtitle{font-size:14px;color:#475569;margin:0}

/* Google Sign-In Button */
#google-signin-wrapper{width:100%}
.login-google-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;font-size:15px;font-weight:600;color:#0F172A;cursor:pointer;transition:all .15s ease}
.login-google-btn:hover{background:#F8FAFC;border-color:#CBD5E1}
.login-google-btn svg{flex-shrink:0}

/* Divider */
.login-divider{display:flex;align-items:center;gap:16px;width:100%}
.login-divider span:first-child,.login-divider span:last-child{flex:1;height:1px;background:#E2E8F0}
.login-divider span:nth-child(2){font-size:13px;color:#94A3B8;white-space:nowrap}

/* Phone Login Form */
.login-phone-form{width:100%;display:flex;flex-direction:column;gap:20px}
.login-phone-group{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.login-phone-group label{font-size:13px;font-weight:600;color:#475569}
.login-phone-input{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid #E2E8F0;border-radius:12px}
.login-phone-input svg{flex-shrink:0;stroke:#0F172A}
.login-phone-input input{flex:1;border:0;background:transparent;font-size:15px;color:#0F172A;outline:none;text-align:right}
.login-phone-input input::placeholder{color:#94A3B8}
.login-send-code-btn{width:100%;padding:12px 20px;background:#009654;border:0;border-radius:12px;font-size:15px;font-weight:700;color:#fff;cursor:pointer;transition:all .15s ease}
.login-send-code-btn:hover{background:#007a44}
.login-send-code-btn:disabled{opacity:0.6;cursor:not-allowed}

/* OTP Input Group */
.login-otp-group{display:flex;flex-direction:column;align-items:center;gap:16px}
.login-otp-label{font-size:13px;color:#475569;margin:0;text-align:center}
.login-otp-inputs{display:flex;direction:ltr;justify-content:center;gap:8px;flex-wrap:wrap}
.login-otp-inputs input{width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#F8FAFC;border:2px solid #009654;border-radius:12px;font-size:20px;font-weight:700;color:#0F172A;text-align:center;outline:none}
.login-otp-inputs input:focus{background:#fff;border-color:#009654;box-shadow:0 0 0 3px rgba(0,150,84,0.1)}
.login-otp-inputs input:not(:focus){border-color:#E2E8F0}
.login-resend-timer{font-size:13px;font-weight:600;color:#009654;margin:0}

/* Error Message */
.login-error{width:100%;padding:12px 16px;background:#FEF2F2;color:#DC2626;border-radius:10px;font-size:13px;margin:0;text-align:center}

/* Terms Notice */
.login-terms{font-size:12px;color:#94A3B8;text-align:center;margin:0}

/* Responsive Design for Login */
@media(max-width:1100px){
  .login-page{grid-template-columns:1fr}
  .login-brand-panel{display:none}
  .login-form-panel{padding:40px 20px}
  .login-form-container{width:100%;max-width:420px}
}

@media(max-width:520px){
  .login-form-panel{padding:28px 20px}
  .login-header h2{font-size:24px}
  .login-app-icon{width:56px;height:56px}
  .login-app-icon svg{width:32px;height:32px}
  .login-form-container{gap:32px}
  .login-otp-inputs input{width:48px;height:48px;font-size:18px}
}

/* ===== Old Auth Page Styles (Kept for backward compatibility) ===== */
.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.auth-aside{order:2;background:var(--primary);padding:64px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center;color:#fff}
.auth-aside h1{font-size:28px;margin:40px 0 16px;line-height:1.4}
.auth-main{order:1;display:grid;place-items:center;padding:32px}
.auth-card{width:min(100%,480px);text-align:center;background:var(--card);border-radius:16px;padding:32px}
.auth-card h2{font-size:28px;margin:24px 0 12px;font-weight:800}
.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:24px 0}
.divider:before,.divider:after{content:"";height:1px;background:var(--border);flex:1}
.nav a.nav-danger{margin-top:10px;color:var(--error)}.nav a.nav-danger:hover,.nav a.nav-danger.active{background:var(--error-bg);color:var(--error)}
.shell{min-height:100vh;padding-right:264px}.content{min-width:0}.sidebar{position:fixed;z-index:30;right:0;top:0;bottom:0;width:264px;display:flex;flex-direction:column;padding:24px 20px;background:var(--card);color:var(--text);border-left:1px solid var(--border)}.sidebar .brand{color:var(--text);justify-content:flex-start;padding:0 0 22px}.brand-mark{width:36px;height:36px;border-radius:10px}.shop-switcher{display:flex;align-items:center;gap:10px;margin:0 0 22px;padding:12px;background:var(--interactive);border:1px solid var(--border);border-radius:10px;color:var(--text);cursor:pointer}.shop-avatar{display:none}.shop-switcher small{color:var(--muted)}.nav{display:flex;flex-direction:column;gap:6px}.nav a,.nav .nav-item{display:flex;direction:rtl;align-items:center;justify-content:flex-start;gap:10px;height:44px;padding:0 12px;color:var(--muted);border-radius:10px;text-decoration:none}.nav a:hover,.nav a.active{background:var(--primary-bg);color:#007a48}.nav-item-disabled{cursor:not-allowed;opacity:.72}.nav-icon{order:0!important;flex:0 0 18px;width:18px;height:18px;margin:0!important;border:0!important;border-radius:0!important;background:none!important}.topbar{display:flex;align-items:center;height:72px;padding:0 32px;background:var(--card);border-bottom:1px solid var(--border)}.main{max-width:none;padding:32px}.page-header{display:flex;justify-content:space-between;min-height:56px;align-items:center;margin-bottom:22px}.page-header h1{font-size:24px}.card{border-radius:14px;padding:22px}.metrics{gap:16px}.metric-card{height:132px;padding:18px}.metric-value{font-size:24px}.metric-label{font-size:13px}.metric-meta{font-size:12px}.layout-dashboard{grid-template-columns:minmax(0,704px) minmax(300px,388px);justify-content:space-between;gap:20px}.recent-orders{min-height:460px}.recent-row{display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:center;min-height:70px;border-bottom:1px solid var(--border);font-size:13px}.recent-customer small{display:block;color:var(--muted);margin-top:2px}.quick-links{display:grid;gap:14px}.quick-links a{color:var(--primary);text-decoration:none;font-size:13px;font-weight:650}.integration-lines{display:grid;gap:12px;color:var(--muted);font-size:13px}.integration-lines strong{color:var(--success)}.settings-stack{display:grid;gap:14px}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.settings-card{min-height:118px}.settings-card p{margin:7px 0;color:var(--muted);font-size:13px}.settings-actions{display:flex;gap:18px;flex-wrap:wrap}.settings-actions a,.settings-actions button{font-size:13px}.auth-page{grid-template-columns:1fr 1fr;background:#fff}.auth-aside{order:2;background:#2563eb;padding:64px;justify-content:flex-start;align-items:center;text-align:center}.auth-aside .brand,.auth-aside .auth-points,.auth-aside>small{display:none}.auth-aside>div{margin-top:16px}.auth-aside h1{font-size:28px;margin-top:40px}.auth-main{order:1}.auth-card{box-shadow:none;border:0;width:min(100%,480px);text-align:center}.auth-card>.brand,.auth-card>.eyebrow{display:none}.auth-card h2{font-size:28px}.auth-card .muted{font-size:13px}.auth-card #google-signin{display:flex;justify-content:center;margin-top:20px}.auth-card .divider,.auth-card #phone-login-form{display:none}
@media(max-width:1100px){.shell{padding-right:0}.sidebar{background:var(--card)}.layout-dashboard{grid-template-columns:1fr}.main{padding:24px}}
@media(max-width:700px){.auth-page{grid-template-columns:1fr}.auth-aside{display:none}.auth-card{padding:18px}.main{padding:20px 16px 90px}.page-header h1{font-size:22px}.metrics{grid-template-columns:1fr 1fr}.metric-card{height:118px}.layout-dashboard{display:block}.layout-dashboard>*{margin-bottom:14px}.topbar{padding:0 16px}.settings-grid{grid-template-columns:1fr}}
@media(prefers-color-scheme:dark){
  :root{
    /* Surface (Dark Mode) */
    --page:#0f172a;
    --card:#111827;
    --raised:#1e293b;
    --interactive:#1e293b;

    /* Text (Dark Mode) */
    --text:#f8fafc;
    --muted:#94a3b8;
    --disabled:#64748b;

    /* Border (Dark Mode) */
    --border:#334155;
    --strong:#475569;

    /* Actions (Dark Mode) */
    --primary:#60a5fa;
    --primary-hover:#93c5fd;

    /* Status (Dark Mode) */
    --success:#4ade80;
    --success-bg:#052e1a;
    --warning:#fbbf24;
    --warning-bg:#3b2708;
    --error:#f87171;
    --error-bg:#3f1215;
    --info:#60a5fa;
    --info-bg:#172554;

    /* Sidebar (Dark Mode) */
    --sidebar:#111827;
    --sidebar-text:#cbd5e1;
  }
  .input,input,select,textarea{background:#0f172a;color:var(--text)}
  th{background:#1e293b}
  tbody tr:hover{background:#1e293b}
  .auth-page{background:#0f172a}
  .auth-aside{background:#1d4ed8}
}
.auth-aside h1{font-size:0}.auth-aside h1:after{content:"پنل مدیریتی فروشيار";font-size:28px}.auth-aside h1+*{font-size:0}.auth-aside h1+*:after{content:"فایل محصولاتتان را به یک فروشگاه آماده فروش در بله تبدیل کنید.";font-size:16px;line-height:2}.auth-card h2{font-size:0}.auth-card h2:after{content:"ورود فروشندگان";font-size:28px}.auth-card h2+.muted{font-size:0}.auth-card h2+.muted:after{content:"برای مدیریت فروشگاه با حساب گوگل وارد شوید.";font-size:13px}

/* Login supports both configured authentication methods. */
.auth-card .divider{display:flex}
.auth-card #phone-login-form{display:block;text-align:right}
.auth-card h2+.muted:after{content:"با حساب گوگل یا شماره همراه وارد شوید."}
.btn[aria-busy="true"]::before{content:"";width:16px;height:16px;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;animation:button-spin .7s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}.form-result{margin:10px 0 0}.form-result.success{color:var(--success)}.form-result.error{color:var(--error)}
.field-error{display:block;width:100%;margin-top:6px;color:var(--error);font-size:12px;font-weight:650;line-height:1.7}.field input[aria-invalid="true"],.field select[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:var(--error);box-shadow:0 0 0 3px color-mix(in srgb,var(--error) 12%,transparent)}.checkbox:has(input[aria-invalid="true"]){color:var(--error)}

/* The dashboard is the single entry point for creating and selecting shops. */
.shops-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.dialog-head h2{margin:0 0 6px}.dialog-head p{margin:0}.dialog-form{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.create-shop-card{width:min(100%,760px)}.create-shop-actions{display:flex;gap:10px;margin-top:24px}
#payment-gateways-list{display:grid;gap:32px}
.wizard-kicker{display:block;margin-bottom:5px;color:var(--primary);font-size:12px;font-weight:800}.wizard-progress{height:5px;background:var(--border)}.wizard-progress span{display:block;width:50%;height:100%;background:var(--primary);transition:width .25s ease}.wizard-bot-help p{margin:6px 0 18px;color:var(--muted);line-height:1.8}
@media(max-width:1100px){.shops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.shops-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.dialog-foot{flex-direction:column}.dialog-foot .btn{width:100%}.create-shop-actions{flex-direction:column}.create-shop-actions .btn{width:100%}}

/* ===== Sales channels — Figma 125:1471 ===== */
.channels-page{display:flex;flex-direction:column;gap:20px}
.channels-intro{display:grid;gap:8px;margin-bottom:12px}.channels-intro h1{font-size:18px;font-weight:800}.channels-intro p,.channel-card>p{color:var(--muted);font-size:13px}
.channel-card{display:flex;flex-direction:column;gap:16px;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.channel-card-head{display:flex;direction:ltr;align-items:center;justify-content:space-between}.channel-card-head>*{direction:rtl}.channel-card-head h2{display:flex;align-items:center;gap:10px;font-size:15px}.channel-card-head h2 img{width:20px;height:20px}
.channel-badge{padding:4px 10px;border-radius:8px;background:#e6f4ea;color:#007a48;font-size:12px;font-weight:700}.channel-badge-error{background:var(--error-bg);color:var(--error)}.channel-count{color:var(--disabled);font-size:12px}
.channel-link-row{display:flex;direction:ltr;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--page)}
.channel-link-row code{flex:1;min-width:0;overflow:hidden;color:#007a48;font:600 14px Inter,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.channel-actions{display:flex;direction:ltr;gap:8px}.channel-open,.channel-copy-primary,.channel-product-row button{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap}
.channel-open{padding:6px 12px;border:1px solid var(--border);color:var(--muted);background:var(--card)}.channel-copy-primary{padding:6px 12px;border:0;background:#009654;color:#0f172a}.channel-copy-primary img{width:14px;height:14px}
.channel-inline-error{padding:12px;border-radius:10px;background:var(--error-bg);color:var(--error)!important}
.channel-products{gap:20px}.channel-products-list{display:grid;gap:12px}.channel-product-row{display:grid;direction:rtl;grid-template-columns:180px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border-radius:8px;background:var(--page)}
.channel-product-row strong{font-size:13px}.channel-product-row code{direction:ltr;overflow:hidden;color:var(--muted);font:400 12px Inter,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}.channel-product-row button{direction:rtl;padding:4px 12px;border:1px solid var(--border);color:var(--muted);background:transparent}.channel-product-row button img{width:12px;height:12px}
@media(max-width:700px){
  .channels-page{gap:14px}.channels-intro{margin-bottom:4px}.channels-intro h1{font-size:17px;line-height:1.7}.channels-intro p{line-height:1.8}
  .channel-card{padding:18px}.channel-card-head{align-items:flex-start;gap:10px}.channel-link-row{align-items:stretch;flex-direction:column}.channel-actions{width:100%}.channel-actions>*{flex:1}.channel-link-row code{width:100%;padding:4px 0}
  .channel-product-row{grid-template-columns:1fr auto}.channel-product-row code{grid-column:1/-1;grid-row:2}.channel-product-row button{grid-column:2;grid-row:1}
}

/* ===== Payments and connections — Figma 125:1624 ===== */
.payments-page{display:flex;flex-direction:column;gap:32px}
.payments-intro{display:grid;gap:8px}.payments-intro h1{font-size:18px;font-weight:800}.payments-intro p{color:var(--muted);font-size:13px}
.payments-grid{direction:ltr;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.connection-card{direction:rtl;display:flex;min-height:337px;flex-direction:column;gap:20px;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.connection-card-head{direction:ltr;display:flex;align-items:center;justify-content:space-between}.connection-card-head>*{direction:rtl}.connection-card-head h2{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800}.connection-card-head h2 img{width:24px;height:24px}
.connection-badge{padding:4px 10px;border-radius:8px;background:#e6f4ea;color:#007a48;font-size:12px;font-weight:700;white-space:nowrap}.connection-badge-muted{background:#f1f5f9;color:#64748b}.connection-badge-warning{background:var(--warning-bg);color:var(--warning)}
.connection-divider{height:1px;background:var(--border)}
.connection-status-list{display:grid;gap:12px}.connection-status-list h3{color:var(--disabled);font-size:12px}.connection-status-list p{display:flex;align-items:center;justify-content:space-between;font-size:13px}.connection-status-list span{color:var(--muted)}.connection-status-list strong{display:flex;align-items:center;gap:6px;font-size:13px}.connection-status-list strong i{order:-1;width:8px;height:8px;border-radius:50%;background:currentColor}.connection-status-list .is-active{color:#007a48}.connection-status-list .is-inactive{color:var(--warning)}
.zarinpal-details{display:grid;gap:12px;min-height:116px}.zarinpal-details h3{color:var(--muted);font-size:14px}.zarinpal-details p{color:var(--disabled);font-size:13px;line-height:1.8}
.connection-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto}.connection-card-foot small{color:var(--disabled);font-size:11px}
.connection-primary,.connection-secondary{min-height:35px;padding:8px 16px;border-radius:8px;font-size:12px;font-weight:700}.connection-primary{border:0;background:#009654;color:#0f172a}.connection-secondary{border:1px solid var(--border);background:var(--card);color:var(--muted)}
.token-security{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #009654;border-radius:12px;background:#e6f4ea;color:#007a48}.token-security img{flex:0 0 24px;width:24px;height:24px}.token-security div{display:grid;gap:4px}.token-security h2{font-size:13px}.token-security p{font-size:12px;line-height:1.7}
.gateway-form{display:grid;gap:18px}
@media(max-width:900px){.payments-grid{grid-template-columns:1fr}}
@media(max-width:700px){
  .payments-page{gap:20px}.payments-intro h1{font-size:17px;line-height:1.7}.payments-intro p{line-height:1.8}
  .connection-card{min-height:0;padding:18px}.connection-card-head{align-items:flex-start;gap:12px}.connection-card-head h2{font-size:15px;line-height:1.7}.connection-card-head h2 img{flex:0 0 22px;width:22px;height:22px}
  .connection-card-foot{align-items:stretch;flex-direction:column;gap:12px}.connection-card-foot button{width:100%}.token-security{align-items:flex-start;padding:16px}
}

/* ===== Bale connection workspace — Figma 127:1865 ===== */
.bale-workspace{min-width:0}.bale-health-view{display:grid;gap:32px}.bale-health-view[hidden],.bale-webhook-view[hidden]{display:none}
.bale-overall{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:100px;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.bale-overall-status{display:flex;align-items:center;gap:16px}.bale-overall-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e6f4ea;color:#007a48;font-size:24px;font-weight:900}.bale-overall.needs-attention .bale-overall-icon{background:var(--warning-bg);color:var(--warning)}.bale-overall-status h1{font-size:18px}.bale-overall-status p{margin-top:4px;color:var(--muted);font-size:13px}
.bale-overall-actions{display:flex;gap:12px}.bale-overall-actions>*{min-height:40px}
.bale-health-grid{direction:ltr;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.bale-health-card{direction:rtl;display:grid;height:146px;gap:12px;padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.bale-health-card-head{direction:ltr;display:flex;align-items:center;justify-content:space-between}.bale-health-card-head>*{direction:rtl}.bale-health-card-head h2{display:flex;align-items:center;gap:8px;font-size:14px}.bale-health-card-head h2 img{width:18px;height:18px}.bale-health-card-head>span{padding:4px 10px;border-radius:6px;font-size:12px;font-weight:700}.bale-health-card-head .healthy{background:#d1fae5;color:#065f46}.bale-health-card-head .attention{background:var(--warning-bg);color:var(--warning)}
.bale-health-card>p{color:var(--muted);font-size:13px}.bale-health-card>small{color:var(--disabled);font-size:12px}
.bale-management{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--card)}.bale-management h2{font-size:14px}.bale-management>div{display:flex;direction:ltr;gap:12px}.bale-management>div>*{direction:rtl;display:inline-flex;align-items:center;justify-content:center;min-height:40px}
.bale-danger{display:grid;gap:16px;padding:24px;border:1px solid #fca5a5;border-radius:16px;background:#fff8f8}.bale-danger h2{display:flex;align-items:center;gap:8px;color:#dc2626;font-size:16px}.bale-danger h2 img{width:20px;height:20px}.bale-danger p{color:var(--muted);font-size:13px;line-height:1.7}.bale-danger>div{display:flex;direction:ltr;gap:12px}.bale-danger button{min-height:40px;padding:10px 16px;border:1px solid #dc2626;border-radius:8px;background:transparent;color:#dc2626;font-size:13px;font-weight:700}
.bale-webhook-view{display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr);gap:24px;margin:-40px;padding:0;min-height:calc(100vh - 80px)}
.bale-stepper{padding:32px;border-left:1px solid var(--border);background:var(--card)}.bale-stepper h1{margin-bottom:24px;font-size:16px}.bale-stepper ol{display:grid;gap:16px}.bale-stepper li{display:flex;align-items:center;gap:12px}.bale-stepper li>b{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid var(--border);border-radius:50%;background:var(--page);color:var(--muted);font-size:12px}.bale-stepper li>b img{width:14px;height:14px}.bale-stepper li>span{display:grid;gap:2px}.bale-stepper li strong{color:var(--muted);font-size:14px;font-weight:500}.bale-stepper li small{color:var(--disabled);font-size:11px}.bale-stepper li.done b{border:0;background:#e6f4ea}.bale-stepper li.done strong{color:var(--text);font-weight:700}.bale-stepper li.done small,.bale-stepper li.active strong,.bale-stepper li.active small{color:#007a48}.bale-stepper li.active b{border:0;background:#009654;color:#fff}
.bale-wizard-core{display:flex;min-width:0;flex-direction:column;gap:24px;padding:40px}.bale-wizard-guide,.bale-webhook-card{padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--card)}.bale-wizard-guide{display:grid;gap:12px}.bale-wizard-guide h1{font-size:18px}.bale-wizard-guide p{color:var(--muted);font-size:14px;line-height:1.7}
.bale-webhook-card{display:grid;gap:16px;padding:32px}.bale-webhook-card>label{color:var(--muted);font-size:13px;font-weight:600}.bale-server-managed{display:grid;gap:5px;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--page)}.bale-server-managed strong{font-size:13px}.bale-server-managed small,.bale-webhook-card>small{color:var(--disabled);font-size:11px}.bale-check{display:flex;align-items:center;gap:10px;color:var(--text)!important}.bale-check input{width:20px;height:20px;accent-color:#009654}
.bale-copy-row{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--page)}.bale-copy-row code{direction:ltr;flex:1;min-width:0;overflow:hidden;color:var(--text);font:13px Inter,Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap}.bale-copy-row button{padding:6px 12px;border:1px solid var(--border);border-radius:8px;background:var(--card);font-size:12px;font-weight:600}
.bale-validation{display:flex;align-items:center;justify-content:space-between;padding:16px;border-radius:12px;background:var(--page)}.bale-validation strong{color:#007a48;font-size:13px}.bale-validation small{color:var(--disabled);font-size:12px}.bale-wizard-actions{display:flex;align-items:center;justify-content:space-between}.bale-wizard-actions>*{min-height:46px;padding-inline:24px}
@media(max-width:900px){
  .bale-health-grid{grid-template-columns:1fr}.bale-overall,.bale-management{align-items:stretch;flex-direction:column}.bale-overall-actions,.bale-management>div{width:100%;flex-wrap:wrap}.bale-overall-actions>*,.bale-management>div>*{flex:1}
  .bale-webhook-view{display:flex;margin:-24px;min-height:calc(100vh - 72px);flex-direction:column}.bale-stepper{padding:20px 24px;border:0;border-bottom:1px solid var(--border)}.bale-stepper ol{display:flex;overflow-x:auto}.bale-stepper li{min-width:max-content}.bale-stepper li>span{display:none}.bale-wizard-core{padding:24px}
}
@media(max-width:700px){
  .bale-health-view{gap:16px}.bale-overall,.bale-health-card,.bale-management,.bale-danger{padding:18px}.bale-health-card{height:auto}.bale-overall-status{align-items:flex-start}.bale-overall-status h1{font-size:17px}.bale-overall-actions>*{flex-basis:100%}
  .bale-management>div>*{flex-basis:100%}.bale-danger>div{flex-direction:column}.bale-danger button{width:100%}
  .bale-webhook-view{margin:-20px -16px}.bale-stepper{padding:16px}.bale-wizard-core{gap:16px;padding:20px 16px}.bale-wizard-guide,.bale-webhook-card{min-width:0;padding:18px}.bale-wizard-guide h1{font-size:17px}.bale-copy-row{align-items:stretch;flex-direction:column}.bale-copy-row code{display:block;width:100%;max-width:100%}.bale-copy-row button{width:100%}.bale-validation{align-items:flex-start;flex-direction:column;gap:8px}.bale-wizard-actions{align-items:stretch;flex-direction:column;gap:10px}.bale-wizard-actions>*{width:100%}
  .shell:has(.bale-workspace) .topbar-breadcrumb>span{display:none}.shell:has(.bale-workspace) [data-bale-page-title]{font-size:0}.shell:has(.bale-workspace) [data-bale-page-title]::after{content:attr(data-mobile-title);font-size:13px;white-space:nowrap}
}

@font-face{font-family:Vazirmatn;src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2") format("woff2");font-weight:500 600;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");font-weight:700 800;font-style:normal;font-display:swap}
@font-face{font-family:Vazirmatn;src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Black.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}
html,body,button,input,select,textarea{font-family:Vazirmatn,Tahoma,system-ui,sans-serif}

/* Seller onboarding has its own layout and must not inherit login-only overrides. */
.onboarding-page{min-height:100vh;display:grid;grid-template-columns:minmax(360px,42%) minmax(520px,58%);background:var(--card)}
.onboarding-sidebar{position:relative;overflow:hidden;display:flex;min-height:100vh;flex-direction:column;padding:48px clamp(36px,5vw,76px);color:#fff;background:linear-gradient(145deg,#173aa8 0%,#2563eb 52%,#4f7df0 100%)}
.onboarding-sidebar:before,.onboarding-sidebar:after{content:"";position:absolute;border-radius:50%;border:1px solid #ffffff1f}.onboarding-sidebar:before{width:420px;height:420px;left:-180px;top:-190px}.onboarding-sidebar:after{width:520px;height:520px;right:-300px;bottom:-300px}
.onboarding-brand{position:relative;z-index:1;display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-size:18px;font-weight:900}.onboarding-brand .brand-mark{background:#fff;color:#2563eb}
.onboarding-intro{position:relative;z-index:1;margin-top:clamp(54px,9vh,108px);max-width:520px}.onboarding-kicker{display:inline-block;color:#dbeafe;font-size:13px;font-weight:800}.onboarding-intro h1{margin:14px 0 12px;font-size:clamp(30px,3vw,44px);line-height:1.35}.onboarding-intro p{margin:0;color:#dbeafe;line-height:2}
.onboarding-steps{position:relative;z-index:1;display:grid;gap:12px;margin:42px 0 32px;padding:0;list-style:none;max-width:440px}.onboarding-steps li{display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:14px;color:#dbeafe}.onboarding-steps li.is-current{background:#ffffff18;box-shadow:inset 0 0 0 1px #ffffff24}.onboarding-step-number{display:grid;flex:0 0 36px;height:36px;place-items:center;border:1px solid #ffffff4a;border-radius:11px;font-weight:900}.onboarding-steps .is-complete .onboarding-step-number{border-color:#86efac;background:#ffffff;color:#15803d}.onboarding-steps strong,.onboarding-steps small{display:block}.onboarding-steps small{margin-top:3px;color:#bfdbfe;font-size:12px}.onboarding-sidebar-note{position:relative;z-index:1;margin-top:auto;color:#bfdbfe;font-size:12px}
.onboarding-main{display:grid;place-items:center;padding:44px clamp(24px,7vw,112px);background:linear-gradient(180deg,#fff,#f8fafc)}.onboarding-card{width:min(100%,560px)}.onboarding-mobile-brand{display:none}.onboarding-progress{height:5px;margin-bottom:34px;overflow:hidden;border-radius:20px;background:#e2e8f0}.onboarding-progress span{display:block;width:66.666%;height:100%;border-radius:inherit;background:#2563eb}.onboarding-card-head{text-align:right}.onboarding-card-head .onboarding-kicker{color:#2563eb}.onboarding-card-head h2{margin:10px 0 8px;font-size:30px}.onboarding-card-head p{margin:0 0 28px;color:var(--muted)}.onboarding-form .field{margin:0 0 18px}.onboarding-form .field>span{font-size:13px}.onboarding-form .field b{color:var(--error)}.onboarding-form input,.onboarding-form textarea{min-height:48px;background:var(--card)}.onboarding-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.slug-input{display:flex;direction:ltr;align-items:center;overflow:hidden;border:1px solid var(--strong);border-radius:12px;background:var(--interactive)}.slug-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #3157d51a}.slug-input span{padding:0 12px;color:var(--muted);font-size:12px;white-space:nowrap}.slug-input input{border:0;border-right:1px solid var(--border);border-radius:0;box-shadow:none!important}.onboarding-terms{font-size:13px;line-height:1.8}.onboarding-submit{min-height:50px;margin-top:20px}.onboarding-help{text-align:center;margin:22px 0 0;color:var(--muted);font-size:12px}.onboarding-help a{text-decoration:none;font-weight:750}
@media(max-width:860px){.onboarding-page{grid-template-columns:1fr}.onboarding-sidebar{display:none}.onboarding-main{min-height:100vh;padding:28px 20px}.onboarding-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:30px}.onboarding-progress{margin-bottom:26px}}
@media(max-width:520px){.onboarding-main{place-items:start center}.onboarding-card-head h2{font-size:25px}.onboarding-form-row{grid-template-columns:1fr;gap:0}.slug-input span{display:none}.slug-input input{border-right:0}.onboarding-help{line-height:1.8}}

/* Wizard dialog: keep only the active step visible and prevent stretched controls. */
[hidden]{display:none!important}
.dialog{max-height:92vh;overflow:hidden}
.dialog-form{display:flex;max-height:92vh;flex-direction:column}
.dialog-head{align-items:flex-start;gap:16px}
.dialog-head>div{min-width:0;flex:1}
.dialog-head button{width:40px;height:40px;flex:0 0 40px;align-self:flex-start;padding:0}
.dialog-body{overflow-y:auto}
.danger-link-row{display:flex;justify-content:flex-end;margin:-10px 0 18px}.danger-link{color:var(--error);font-size:13px;font-weight:800;text-decoration:none}.danger-link:hover{text-decoration:underline}.danger-page{max-width:820px;margin:auto}.danger-page .page-header{margin-top:24px}.danger-page .page-header h1{margin-top:12px}.danger-card{border-color:color-mix(in srgb,var(--error) 35%,var(--border))}.warning-list{display:grid;gap:12px;line-height:1.9}.copy-name{display:flex;align-items:center;gap:10px;margin-top:10px}.copy-name code{direction:rtl;flex:1;padding:12px;border:1px dashed var(--strong);border-radius:10px;background:var(--card);font-family:Vazirmatn,Tahoma,sans-serif}.delete-shop-name{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.delete-shop-name code{padding:4px 10px;border-radius:8px;background:var(--card);font-family:Vazirmatn,Tahoma,sans-serif}.delete-shop-name .btn{margin-inline-start:auto}.delete-consent{display:flex;align-items:flex-start;gap:10px;margin:16px 0 20px;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--page);line-height:1.8;cursor:pointer}.delete-consent input{width:18px;height:18px;flex:0 0 18px;margin-top:5px;accent-color:var(--error)}.delete-field-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.copy-name-button{border:0;background:none;color:var(--primary);font:inherit;font-weight:800;cursor:pointer}.field small{display:block;margin-top:7px;color:var(--muted);font-size:12px}.confirmation-dialog{width:min(94vw,560px)}
.wizard-dialog{width:min(96vw,900px)}.bale-wizard-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:0;padding:18px 22px;list-style:none;border-bottom:1px solid var(--border);background:var(--page)}.bale-wizard-steps li{position:relative;display:grid;justify-items:center;gap:6px;color:var(--muted);font-size:11px;text-align:center}.bale-wizard-steps li:not(:last-child):after{content:"";position:absolute;top:16px;left:calc(-50% + 20px);width:calc(100% - 28px);height:2px;background:var(--border)}.bale-wizard-steps b{z-index:1;width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;background:var(--card)}.bale-wizard-steps .active{color:var(--primary);font-weight:800}.bale-wizard-steps .active b,.bale-wizard-steps .done b{border-color:var(--primary);background:var(--primary);color:#fff}.bale-wizard-steps .done b{font-size:0}.bale-wizard-steps .done b:after{content:"✓";font-size:14px}.wizard-dialog .dialog-body{min-height:330px}.wizard-dialog h3{font-size:22px;margin:14px 0 8px}.wizard-instructions{padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--page)}.wizard-instructions ol{line-height:2.2}.wizard-help-link{display:block;width:max-content;margin:16px 0;color:var(--primary);font-size:13px;font-weight:800;text-decoration:none}.wizard-help-link:hover{text-decoration:underline}.wizard-error{margin:0 22px 14px}.wizard-ready{text-align:center}.wizard-ready .success-mark{margin-top:40px}@media(max-width:700px){.bale-wizard-steps{overflow-x:auto;grid-template-columns:repeat(6,90px)}.bale-wizard-steps span{display:none}.wizard-dialog .dialog-body{min-height:280px}}.shop-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shop-card-actions .btn{width:100%}@media(max-width:520px){.shop-card-actions{grid-template-columns:1fr}}

/* ===== Dashboard (Operations Page - Figma Frame 120:318) ===== */

/* Shared Figma shell */
.brand-mark{width:32px;height:32px;border-radius:8px}
.brand-mark img{width:18px;height:18px}
.shop-switcher{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px}
.shop-switcher-top,.shop-switcher-trigger{display:flex;align-items:center;justify-content:space-between;width:100%}
.shop-switcher-badges{display:flex;gap:4px}
.shop-switcher-badges small{padding:2px 6px;border:1px solid var(--border);border-radius:6px;background:var(--card);font-size:10px}
.shop-switcher-badges .shop-status{border:0;background:var(--primary-bg);color:var(--primary)}
.shop-switcher-trigger{color:var(--disabled);font-size:11px}
.shop-switcher-trigger img{width:12px;height:12px}
.sidebar-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:16px;border-top:1px solid var(--border)}
.sidebar-footer strong,.sidebar-footer small{display:block}
.sidebar-footer strong{font-size:13px}
.sidebar-footer small{margin-top:2px;color:var(--disabled);font-size:11px}
.sidebar-footer button{display:grid;place-items:center;width:32px;height:32px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.sidebar-footer button img{width:16px;height:16px}
.sidebar-account-link{color:var(--text)}
.sidebar-account-link:hover strong{color:var(--primary)}

/* Topbar Breadcrumb */
.topbar-breadcrumb{display:flex;align-items:center;gap:8px}
.topbar-shop-name{color:var(--muted);font-size:15px;font-weight:400}
.topbar-separator{color:var(--muted);font-size:15px}
.topbar-page-name{color:var(--text);font-size:15px;font-weight:700}

/* Topbar User Section */
.topbar-notification-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;transition:all .15s ease}
.topbar-notification-btn:hover{background:var(--interactive);color:var(--text)}
.topbar-notification-btn svg{width:20px;height:20px}
.topbar-divider{width:1px;height:16px;background:var(--border)}
.topbar-user-info{display:flex;align-items:center;gap:10px}
.topbar-user-name{font-size:13px;font-weight:400;color:var(--text)}
.topbar-user-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:18px;background:var(--primary-bg);color:var(--primary);font-size:14px;font-weight:700}
.topbar-user-section{display:flex;align-items:center;gap:16px;margin-right:24px}
.topbar-notification-btn img{width:20px;height:20px}
:root{--primary-bg:#E6F4EA}

/* KPI Metrics Row */
.dashboard-kpi-row{direction:ltr;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:32px}
.dashboard-kpi-card{direction:rtl}
.dashboard-kpi-card{display:flex;flex-direction:column;align-items:flex-end;gap:16px;padding:24px;background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 4px 12px rgba(15,23,42,0.02)}
.kpi-header{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}
.kpi-spacer{flex:1}
.kpi-label{font-size:14px;font-weight:400;color:var(--muted);text-align:right}
.kpi-badge{padding:2px 8px;background:#FEF3C7;color:#D97706;border-radius:6px;font-size:11px;font-weight:600}
.kpi-value{font-size:22px;font-weight:800;color:var(--text);text-align:right;width:100%}

/* Dashboard Split Layout */
.dashboard-split-layout{direction:ltr;display:grid;grid-template-columns:1fr 360px;align-items:start;gap:24px}
.dashboard-split-layout>*{direction:rtl}

/* Orders Card */
.dashboard-orders-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 4px 12px rgba(15,23,42,0.02)}
.dashboard-card-header{direction:ltr;display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.dashboard-card-header>*{direction:rtl}
.dashboard-card-title{font-size:16px;font-weight:700;color:var(--text);margin:0}
.dashboard-view-all-link{font-size:13px;font-weight:600;color:var(--primary);text-decoration:none;transition:color .15s ease}
.dashboard-view-all-link:hover{color:var(--primary-hover)}
.dashboard-card-divider{height:1px;background:var(--border);margin-bottom:20px}

/* Orders Table */
.dashboard-orders-table-wrap{display:flex;flex-direction:column}
.dashboard-table-header{direction:ltr;display:grid;grid-template-columns:100px 110px 130px 150px 1fr;padding:10px 16px;background:var(--page);border-radius:8px;font-size:11px;font-weight:600;color:var(--muted)}
.dashboard-table-body{display:flex;flex-direction:column}
.dashboard-table-row{direction:ltr;display:grid;grid-template-columns:100px 110px 130px 150px 1fr;padding:16px;border-bottom:1px solid var(--border);align-items:center}
.dashboard-table-header>*,.dashboard-table-row>*{direction:rtl}
.dashboard-table-row:last-child{border-bottom:0}
.dashboard-col-date{font-size:13px;font-weight:400;color:var(--muted)}
.dashboard-col-status{display:flex;justify-content:center}
.dashboard-col-amount{font-size:13px;font-weight:600;color:var(--text);text-align:right}
.dashboard-col-customer{font-size:13px;font-weight:400;color:var(--muted);text-align:right}
.dashboard-col-id{font-size:13px;font-weight:700;color:var(--primary);text-align:right}
.dashboard-status-badge-success{display:inline-block;padding:2px 10px;background:#D1FAE5;color:#065F46;border-radius:6px;font-size:12px;font-weight:600}
.dashboard-status-badge-warning{display:inline-block;padding:2px 10px;background:#FEF3C7;color:#D97706;border-radius:6px;font-size:12px;font-weight:600}
.dashboard-status-badge-muted{display:inline-block;padding:2px 10px;background:var(--interactive);color:var(--muted);border-radius:6px;font-size:12px;font-weight:600}
.dashboard-table-loading,.dashboard-table-empty{padding:32px;text-align:center;color:var(--muted);font-size:13px}

/* Right Sidebar */
.dashboard-right-sidebar{display:flex;flex-direction:column;gap:24px}

/* Health Status Card */
.dashboard-health-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 4px 12px rgba(15,23,42,0.02)}
.dashboard-health-header{direction:ltr;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:16px}
.dashboard-health-title{font-size:15px;font-weight:700;color:var(--text);margin:0}
.dashboard-health-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:12px;background:var(--primary-bg)}
.dashboard-health-icon img{width:12px;height:12px}
.dashboard-health-list{display:flex;flex-direction:column}
.dashboard-health-item{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border)}
.dashboard-health-item:last-child{border-bottom:0}
.dashboard-health-label{font-size:13px;font-weight:400;color:var(--muted);text-align:right}
.dashboard-health-status{display:flex;align-items:center;gap:6px}
.dashboard-status-badge{font-size:13px;font-weight:600;color:var(--muted)}
.dashboard-status-badge.success{color:#065F46}
.dashboard-status-badge.muted{color:var(--muted)}
.dashboard-status-dot{width:6px;height:6px;border-radius:50%;background:var(--border)}
.dashboard-status-dot.active{background:var(--primary)}

/* Checklist Card */
.dashboard-checklist-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 4px 12px rgba(15,23,42,0.02)}
.dashboard-checklist-title{font-size:15px;font-weight:700;color:var(--text);margin:0 0 16px;text-align:right}
.dashboard-checklist-list{display:flex;flex-direction:column}
.dashboard-checklist-item{display:flex;align-items:center;gap:12px;padding:10px 0}
.dashboard-checklist-text{flex:1;font-size:13px;font-weight:400;color:var(--muted);text-align:right}
.dashboard-checklist-text.completed{text-decoration:underline;color:var(--disabled)}
.dashboard-checkbox{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid var(--muted);border-radius:4px;background:transparent;flex-shrink:0}
.dashboard-checkbox.checked{background:var(--primary);border-color:var(--primary)}
.dashboard-checkbox.checked img{width:10px;height:10px}
.dashboard-checkbox:not(.checked) img{display:none}

/* Responsive Dashboard */
@media(min-width:1101px){
  .shell{min-height:100vh;padding-right:280px}
  .sidebar{width:280px}
  .topbar{display:flex;align-items:center;height:80px;padding:0 40px}
  .main{max-width:none;padding:40px}
  .dashboard-kpi-row{align-items:start}
  .dashboard-kpi-card{height:198px}
  .dashboard-kpi-card:nth-child(2){height:120px}
}

@media(max-width:1280px){
  .dashboard-split-layout{grid-template-columns:1fr 320px;gap:20px}
  .dashboard-table-header,.dashboard-table-row{grid-template-columns:90px 100px 120px 130px 1fr;gap:12px}
}

@media(max-width:1100px){
  .dashboard-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .dashboard-split-layout{grid-template-columns:1fr;gap:24px}
  .dashboard-right-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}
}

@media(max-width:700px){
  .dashboard-kpi-row{grid-template-columns:1fr;gap:12px}
  .dashboard-kpi-card{padding:18px}
  .kpi-value{font-size:20px}
  .dashboard-orders-card,.dashboard-health-card,.dashboard-checklist-card{padding:20px}
  .dashboard-table-header{display:none}
  .dashboard-table-row{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px}
  .dashboard-table-row:last-child{margin-bottom:0}
  .dashboard-col-date,.dashboard-col-status,.dashboard-col-amount,.dashboard-col-customer,.dashboard-col-id{text-align:right;justify-content:flex-start}
  .dashboard-col-date:before{content:'تاریخ: ';font-weight:600;color:var(--text);margin-left:4px}
  .dashboard-col-amount:before{content:'مبلغ: ';font-weight:600;color:var(--text);margin-left:4px}
  .dashboard-col-customer:before{content:'مشتری: ';font-weight:600;color:var(--text);margin-left:4px}
  .dashboard-col-id:before{content:'کد: ';font-weight:600;color:var(--text);margin-left:4px}
  .dashboard-right-sidebar{grid-template-columns:1fr}
  .dashboard-card-header{align-items:flex-start;flex-direction:column-reverse;gap:8px}
  .topbar-breadcrumb{font-size:13px}
  .topbar-shop-name,.topbar-page-name{font-size:13px}
  .topbar-user-name{display:none}
}

/* Additional styles for operations and other pages */
.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:18px;margin:14px 0;background:var(--page);border:1px solid var(--border);border-radius:12px}
.filter-bar .field{margin:0;flex:1;min-width:160px}
.filter-bar .search-wide{flex:2;min-width:240px}
.filter-bar .btn{margin-top:auto}
.filter-toggle{display:none}
.link-row,.links{display:grid;gap:10px}
.link-row{grid-template-columns:120px 1fr auto;align-items:center;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--card);font-size:13px}
.link-row input{border:0;background:var(--page);font-size:12px;padding:8px 10px}
.link-row span{font-weight:650;color:var(--text)}
.desktop-table{width:100%}
.desktop-table tbody tr{transition:background .15s}
.desktop-table tbody tr:hover{background:var(--interactive)}
.topbar-title{flex:1;font-size:15px;font-weight:700;color:var(--text)}
.topbar-actions{display:flex;align-items:center;gap:10px}
.secondary-action{font-size:13px}
.menu-button{display:none;width:40px;height:40px;border:0;background:transparent;color:var(--text);font-size:20px;cursor:pointer}
.sidebar-overlay{display:none;position:fixed;inset:0;z-index:20;background:rgba(0,0,0,0.5)}
.summary{display:flex;justify-content:space-between;padding:14px 0;border-top:1px solid var(--border);margin-top:12px;font-size:14px}
.summary strong{font-size:16px;color:var(--text)}
.import-preview-table{min-width:1280px}.import-preview-table .import-description{min-width:220px;white-space:normal;line-height:1.8}.import-preview-table .import-image-url{max-width:260px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1100px){.menu-button{display:block}.sidebar{transform:translateX(100%);transition:transform .25s ease}.sidebar.open{transform:translateX(0)}.sidebar-overlay.open{display:block}.filter-bar{flex-direction:column;align-items:stretch}.filter-bar .field,.filter-bar .btn{width:100%}}
@media(max-width:700px){.filter-toggle{display:inline-flex;margin-bottom:12px}.filter-bar.mobile-collapsible{display:none;margin-top:0}.filter-bar.mobile-collapsible.open{display:flex}.product-table-wrap{overflow:auto}}
@media(max-width:700px){.link-row{grid-template-columns:1fr;gap:8px}.link-row span{grid-row:1}.link-row input{grid-row:2}.link-row button{grid-row:3}}

/* Products list — Figma frame 122:574 */
.products-page{display:flex;flex-direction:column;gap:32px}
.products-add-button{border-radius:12px;padding:10px 18px}
.products-filter-card,.products-table-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:24px}
.products-filter-card{direction:ltr;display:flex;align-items:center;gap:16px}
.products-filter-tabs{direction:rtl;display:flex;gap:4px;padding:4px;background:var(--page);border-radius:12px}
.products-filter-tabs button{border:1px solid transparent;border-radius:8px;padding:8px 16px;background:transparent;color:var(--muted);font-size:13px;white-space:nowrap}
.products-filter-tabs button.active{border-color:var(--border);background:var(--card);color:#007a48;font-weight:700}
.products-search{direction:rtl;display:flex;align-items:center;gap:12px;flex:1;min-width:220px;padding:10px 16px;border:1px solid var(--border);border-radius:10px;background:var(--page)}
.products-search svg{width:18px;height:18px;fill:none;stroke:var(--disabled);stroke-width:2;flex:none}
.products-search input{min-width:0;padding:0;border:0;border-radius:0;background:transparent;font-size:13px}
.products-search input:focus{outline:0}
.products-card-heading{direction:ltr;display:flex;align-items:center;justify-content:space-between}
.products-card-heading h2{direction:rtl;font-size:16px}
.products-card-heading a{direction:rtl;font-size:13px;font-weight:600}
.products-card-divider{height:1px;margin:20px 0;background:var(--border)}
.product-table-wrap{overflow-x:auto}
.products-table-grid{direction:ltr;display:grid;grid-template-columns:60px 120px 110px 100px 140px 120px minmax(220px,1fr) 60px;align-items:center;min-width:950px;padding:0 16px}
.products-table-grid>*{direction:rtl;min-width:0;text-align:right}
.products-table-head{min-height:40px;border-radius:8px;background:var(--page);color:var(--disabled);font-size:11px;font-weight:600}
.products-table-head>:first-child,.products-table-head>:nth-child(3),.products-table-head>:last-child{text-align:center}
.products-table-row{min-height:64px;border-bottom:1px solid var(--border);color:var(--muted);font-size:13px}
.products-table-row>div:first-child,.products-table-row>div:nth-child(3){display:flex;justify-content:center}
.products-table-row time{color:var(--disabled)}
.products-table-row strong,.products-table-row b{color:var(--text);font-size:13px}
.products-table-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.products-table-row code{direction:ltr;color:var(--muted);font:13px Vazirmatn,Tahoma,sans-serif;text-align:left}
.product-image{display:grid;place-items:center;width:40px;height:40px;margin:auto;border-radius:8px;overflow:hidden;background:var(--interactive);color:var(--disabled)}
.product-image img{width:100%;height:100%;object-fit:cover}
.products-badge{display:inline-block;padding:2px 10px;border-radius:6px;font-size:12px;font-weight:600;white-space:nowrap}
.products-badge.published{background:#d1fae5;color:#065f46}
.products-badge.draft{background:#fef3c7;color:#d97706}
.products-badge.archived{background:#e2e8f0;color:#475569}
.products-table-row .product-actions-trigger{width:32px;height:30px;border:0;background:transparent}
.products-pagination{direction:ltr;display:flex;align-items:center;justify-content:space-between;padding-top:20px}
.products-pagination[hidden]{display:none}
.products-pagination>div{display:flex;gap:4px}
.products-pagination button{min-width:32px;padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--muted);font-size:12px}
.products-pagination button.active{border-color:var(--primary);background:var(--primary);color:#fff;font-weight:700}
.products-pagination p{direction:rtl;color:var(--muted);font-size:13px}

@media(max-width:900px){
  .products-filter-card{align-items:stretch;flex-direction:column}
  .products-filter-tabs{overflow-x:auto}
}
@media(max-width:700px){
  .products-page{gap:20px}
  .products-filter-card,.products-table-card{padding:16px}
  .products-card-heading{align-items:flex-start;gap:10px}
  .products-pagination{align-items:flex-start;flex-direction:column-reverse;gap:12px}
}

/* Create product — Figma frame 122:791 */
.create-product-layout{direction:ltr;display:grid;grid-template-columns:360px minmax(0,1fr);align-items:start;gap:24px}
.create-product-layout>*{direction:rtl}
.create-product-settings,.create-product-main{display:flex;flex-direction:column;gap:24px}
.create-product-card{display:flex;flex-direction:column;gap:24px;padding:32px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.create-product-card.compact{gap:16px;padding:24px}
.create-product-card h1{font-size:18px}
.create-product-card h2{font-size:15px}
.create-product-card hr{height:1px;border:0;background:var(--border)}
.create-product-card label{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:13px;font-weight:600}
.create-product-card label.checkbox{flex-direction:row;align-items:center;flex-wrap:nowrap;margin:0;color:var(--text);font-weight:400}
.create-product-card input,.create-product-card select,.create-product-card textarea{padding:12px 16px;background:#fff}
.create-product-card textarea{height:150px}
.create-product-hint{color:var(--disabled);font-size:12px;line-height:1.8}
.product-upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:132px;border:1px dashed var(--border);border-radius:12px;text-align:center;cursor:pointer}
.product-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.product-upload img{width:48px;height:48px;margin-bottom:8px}
.product-upload strong{color:#007a48;font-size:14px}
.product-upload small{color:var(--disabled);font-size:12px;font-weight:400}
.create-product-row{direction:ltr;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.create-product-row>*{direction:rtl}
.price-input{direction:ltr;display:flex;align-items:center;border:1px solid var(--border);border-radius:10px;background:#fff}
.price-input input{direction:ltr;border:0;text-align:right}
.price-input b{padding:0 16px;color:var(--muted);font-size:13px;font-weight:400}
.create-product-actions{direction:ltr;display:flex;gap:12px}
.create-product-actions>*{direction:rtl;padding:12px 24px}

@media(max-width:900px){
  .create-product-layout{grid-template-columns:1fr}
  .create-product-main{order:1}
  .create-product-settings{order:2}
}
@media(max-width:700px){
  .create-product-card,.create-product-card.compact{padding:18px}
  .create-product-row{grid-template-columns:1fr}
  .product-upload{height:160px;padding:16px}
  .product-upload small{white-space:normal}
  .create-product-actions{display:grid;grid-template-columns:1fr 1fr}
}

/* Excel import — Figma frame 122:935 */
.excel-import-page{display:flex;flex-direction:column;gap:32px}
.import-stepper{direction:rtl;display:flex;align-items:center;justify-content:space-between;padding:24px 40px;border:1px solid var(--border);border-radius:16px;background:var(--card);list-style:none}
.import-stepper li{display:flex;align-items:center;gap:8px;color:var(--disabled);font-size:14px;white-space:nowrap}
.import-stepper li b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--page);font-size:12px}
.import-stepper li.active{color:#007a48;font-weight:700}
.import-stepper li.active b{background:var(--primary);color:#fff}
.import-stepper i{width:80px;height:1px;background:var(--border)}
.import-stepper li.active+i{background:var(--primary)}
.import-upload-card{display:flex;flex-direction:column;gap:28px;padding:32px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.import-upload-card>header{direction:rtl;display:flex;align-items:center;justify-content:space-between}
.import-upload-card h1{font-size:16px}
.import-upload-card header p{margin-top:4px;color:var(--muted);font-size:13px}
.import-upload-card>hr{height:1px;border:0;background:var(--border)}
.import-template-download{display:flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--border);border-radius:10px;background:var(--page);font-size:13px;font-weight:600}
.import-template-download img{width:16px;height:16px}
#import-form{display:flex;flex-direction:column;gap:24px}
.import-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:220px;padding:50px;border:1px dashed var(--primary);border-radius:12px;background:#e6f4ea;text-align:center;cursor:pointer}
.import-dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}
.import-file-icon{display:grid;place-items:center;width:56px;height:56px;margin-bottom:10px;border-radius:50%;background:#d1fae5}
.import-file-icon img{width:24px;height:24px}
.import-dropzone strong{color:#065f46;font-size:15px}
.import-dropzone small{color:var(--muted);font-size:12px}
.import-price-unit{display:flex;align-items:center;gap:24px;border:0}
.import-price-unit legend{width:100%;margin-bottom:12px;color:var(--text);font-size:14px;font-weight:700}
.import-price-unit label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.import-price-unit input{width:18px;height:18px;padding:0;accent-color:var(--primary)}
.import-preview-button{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.import-preview-section{display:flex;flex-direction:column;gap:20px}
.import-preview-section[hidden]{display:none}
.import-preview-section>header{direction:rtl;display:flex;align-items:center;justify-content:space-between}
.import-preview-section h2{font-size:16px}
#preview-stats{display:flex;gap:8px}
#preview-stats span,.import-action{display:inline-block;padding:2px 8px;border-radius:6px;font-size:12px;font-style:normal;font-weight:600;white-space:nowrap}
#preview-stats .create,.import-action.create{background:#d1fae5;color:#065f46}
#preview-stats .update,.import-action.update{background:#fef3c7;color:#d97706}
#preview-stats .reject,.import-action.reject{background:#fef2f2;color:#ef4444}
.import-action.unchanged{background:var(--page);color:var(--muted)}
.import-preview-card{padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.import-preview-row{direction:rtl;display:grid;grid-template-columns:60px minmax(220px,1fr) 130px 120px minmax(260px,1fr);align-items:center;min-width:900px;padding:12px 16px;border-bottom:1px solid var(--border);color:var(--muted);font-size:13px}
.import-preview-head{padding-block:10px;border:0;border-radius:8px;background:var(--page);color:var(--disabled);font-size:11px;font-weight:600}
.import-preview-row>:first-child,.import-preview-row>:nth-child(4){text-align:center}
.import-preview-row strong,.import-preview-row b{color:var(--text);font-size:13px}
.import-preview-row p{color:var(--disabled)}
.import-preview-list{overflow-x:auto}
.import-preview-section>#commit{align-self:flex-start}

@media(max-width:900px){
  .import-stepper{padding:20px}
  .import-stepper i{width:32px}
}
@media(max-width:700px){
  .excel-import-page{gap:20px}
  .import-stepper{align-items:flex-start;padding:16px;overflow-x:auto}
  .import-stepper li{flex-direction:column;text-align:center;font-size:11px}
  .import-stepper i{flex:0 0 24px;margin-top:12px}
  .import-upload-card{gap:20px;padding:18px}
  .import-upload-card>header{align-items:flex-start;flex-direction:column;gap:16px}
  .import-dropzone{min-height:200px;padding:24px 16px}
  .import-dropzone strong,.import-dropzone small{white-space:normal}
  .import-price-unit{align-items:flex-start;flex-direction:column;gap:12px}
  .import-preview-section>header{align-items:flex-start;flex-direction:column;gap:12px}
  .import-preview-section h2{width:100%;overflow-wrap:anywhere}
  #preview-stats{flex-wrap:wrap}
  .import-preview-card{padding:14px}
  .import-preview-head{display:none}
  .import-preview-row{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px;padding:14px;border:1px solid var(--border);border-radius:10px}
  .import-preview-row>*{text-align:right!important}
  .import-preview-row>*:before{content:attr(data-label) ": ";color:var(--disabled);font-weight:600}
  .import-preview-section>#commit{width:100%}
}

/* ===== Store Center Page (Dashboard) ===== */
.store-center-page{min-height:100vh;background:var(--page);display:flex;flex-direction:column}

/* Navbar */
.store-center-navbar{display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:80px;background:var(--card);border-bottom:1px solid var(--border);direction:ltr}
.navbar-right,.navbar-left{direction:rtl}
.navbar-right{display:flex;align-items:center;gap:24px}
.navbar-left{display:flex;align-items:center;gap:32px}

/* Navbar Brand */
.navbar-brand{display:flex;align-items:center;gap:8px}
.navbar-brand-text{font-size:18px;font-weight:900;color:var(--text)}
.navbar-brand-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--primary);border-radius:8px}
.navbar-brand-icon img{width:15px;height:14px;filter:brightness(0) invert(1)}

/* Navbar Search */
.navbar-search{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--page);border-radius:10px;width:280px}
.navbar-search img{width:18px;height:18px;flex-shrink:0;opacity:0.6}
.navbar-search input{flex:1;border:0;background:transparent;color:var(--text);font-size:13px;outline:none}
.navbar-search input::placeholder{color:var(--muted)}
.navbar-search:focus-within{outline:2px solid var(--primary);outline-offset:2px}

/* Navbar User Section */
.navbar-user-section{display:flex;align-items:center;gap:24px}
.navbar-notification-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;transition:all .15s ease}
.navbar-notification-btn:hover{background:var(--interactive)}
.navbar-notification-btn img{width:24px;height:24px;opacity:0.8}
.navbar-notification-btn:hover img{opacity:1}

/* Create shop — Figma frame 120:246 */
.create-store-body{min-width:320px;background:#f8fafc;color:#0f172a}
.create-store-wizard{min-height:100vh;background:#f8fafc;line-height:normal}
.create-store-header{direction:ltr;height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border:1px solid #e2e8f0;background:#fff}
.create-store-back,.create-store-brand{display:flex;align-items:center;color:#475569}
.create-store-back{direction:rtl;gap:8px;font-size:14px}
.create-store-back img{width:16px;height:16px}
.create-store-brand{direction:rtl;gap:12px;color:#0f172a}
.create-store-brand strong{font-size:18px;font-weight:900}
.create-store-brand small{color:#94a3b8;font-size:13px}
.create-store-brand-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#009654}
.create-store-brand-mark img{width:16px;height:16px}
.create-store-brand-divider{width:1px;height:16px;background:#e2e8f0}
.create-store-main{display:flex;flex-direction:column;align-items:center;gap:40px;padding:60px 20px 80px}
.create-store-steps{direction:ltr;width:640px;display:flex;align-items:center;justify-content:space-between;padding:20px 40px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 4px 6px rgba(15,23,42,.02);list-style:none}
.create-store-steps li{direction:rtl;display:flex;align-items:center;gap:8px;color:#94a3b8;font-size:14px;white-space:nowrap}
.create-store-steps li:not(:last-child)::after{content:"";width:40px;height:1px;margin-inline:30px 0;background:#e2e8f0}
.create-store-steps li span{width:24px;height:24px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:700}
.create-store-steps li strong{font-weight:400}
.create-store-steps li.active{color:#009654}
.create-store-steps li.active span,.create-store-steps li.done span{border-color:#009654;background:#009654;color:#fff}
.create-store-steps li.active strong{font-weight:700}
.create-store-steps li.done{color:#009654}
.create-store-card{width:640px;padding:40px;border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:0 12px 12px rgba(15,23,42,.03)}
.create-store-panel{min-width:0;border:0}
.create-store-card-head{padding-bottom:32px;border-bottom:1px solid #e2e8f0;text-align:right}
.create-store-card-head h1{font-size:20px;font-weight:800}
.create-store-card-head p{margin-top:8px;color:#94a3b8;font-size:14px}
.create-store-fields{display:flex;flex-direction:column;gap:20px;padding:32px 0}
.create-store-field{display:flex;flex-direction:column;gap:8px;margin:0;color:#475569;font-size:14px;font-weight:600}
.create-store-field>span:first-child{align-self:flex-end}
.create-store-field b{color:#ef4444}
.create-store-field input,.create-store-field select,.create-store-field textarea{min-height:48px;padding:12px;border-color:#e2e8f0;border-radius:10px;color:#0f172a;background:#fff;font-size:14px}
.create-store-field textarea{height:100px;min-height:100px}
.create-store-field input::placeholder,.create-store-field textarea::placeholder{color:#94a3b8}
.create-store-slug{display:flex;direction:rtl;align-items:center;min-height:48px;overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.create-store-slug:focus-within{border-color:#009654;outline:2px solid rgba(0,150,84,.15)}
.create-store-slug input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;text-align:right}
.create-store-slug>span{width:16px;height:16px;display:grid;place-items:center;margin-inline-end:8px;border:1px solid #009654;border-radius:50%;color:#009654;font-size:11px}
.create-store-slug small{padding:0 12px;color:#94a3b8;font:400 14px Inter,Arial,sans-serif;white-space:nowrap}
.create-store-preview{display:flex;align-items:center;gap:6px;color:#94a3b8;font-size:12px;font-weight:400}
.create-store-preview span{color:#007a48;font-family:Inter,Arial,sans-serif}
.create-store-address{margin:32px 0;padding:18px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#007a48;text-align:center}
.create-store-terms{margin:32px 0;padding:18px;border:1px solid #e2e8f0;border-radius:10px}
.create-store-actions{direction:ltr;display:flex;gap:12px;padding-top:32px;border-top:1px solid #e2e8f0}
.create-store-next,.create-store-cancel{min-height:48px;display:flex;align-items:center;justify-content:center;padding:12px 24px;border-radius:12px;font-size:15px;font-weight:700}
.create-store-next{direction:rtl;flex:1;border:0;background:#009654;color:#fff}
.create-store-next:hover{background:#007a44}
.create-store-cancel{direction:rtl;width:120px;border:1px solid #e2e8f0;color:#94a3b8;background:#fff}
.create-store-next[hidden]{display:none}
@media(max-width:700px){
  .create-store-header{height:64px;padding:0 16px}
  .create-store-brand small,.create-store-brand-divider{display:none}
  .create-store-back{font-size:0}
  .create-store-back img{width:18px;height:18px}
  .create-store-main{gap:20px;padding:24px 16px 40px}
  .create-store-steps,.create-store-card{width:100%}
  .create-store-steps{padding:14px 16px}
  .create-store-steps li{gap:5px;font-size:12px}
  .create-store-steps li:not(:last-child)::after{width:20px;margin-inline:10px 0}
  .create-store-card{padding:24px 18px;border-radius:18px}
  .create-store-card-head{padding-bottom:24px}
  .create-store-card-head h1{font-size:18px}
  .create-store-card-head p{font-size:13px;line-height:1.8}
  .create-store-fields{padding:24px 0}
  .create-store-slug small{display:none}
  .create-store-preview{flex-wrap:wrap}
  .create-store-actions{position:sticky;bottom:0;margin:0 -18px -24px;padding:16px 18px;background:#fff}
  .create-store-cancel{width:92px}
}
@media(max-width:430px){
  .create-store-steps li strong{display:none}
  .create-store-steps li:not(:last-child)::after{width:52px;margin-inline:16px 0}
}

/* ===== Store settings — Figma frame 128:2372 ===== */
.shell:has(.store-settings-page){padding-right:280px}
.shell:has(.store-settings-page) .sidebar{width:280px;padding:24px}
.shell:has(.store-settings-page) .topbar{height:80px;padding-inline:40px}
.shell:has(.store-settings-page) .main{padding:28px 40px 40px}
.store-settings-page{display:flex;flex-direction:column;gap:24px}
.store-settings-card,.store-danger-card{width:100%;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:28px}
.store-settings-card form{display:flex;flex-direction:column;gap:24px}
.store-settings-card h1,.store-danger-card h2{margin:0;font-size:16px;font-weight:800;color:#0f172a}
.store-settings-divider{height:1px;background:#e2e8f0}
.store-settings-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.store-settings-field{display:flex;flex-direction:column;gap:8px;margin:0;color:#475569;font-size:13px;font-weight:700}
.store-settings-field input,.store-settings-field textarea{min-height:48px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:12px;color:#0f172a;font-size:14px;font-weight:400}
.store-settings-field textarea{height:100px;min-height:100px;padding:16px;line-height:1.6}
.store-settings-field small{color:#94a3b8;font-size:11px;font-weight:400}
.store-settings-readonly{min-height:48px;display:flex;align-items:center;gap:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:12px;opacity:.6;font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:400}
.store-settings-readonly span{color:#94a3b8}
.store-settings-readonly strong{min-width:0;overflow:hidden;color:#475569;text-overflow:ellipsis;font-weight:400}
.store-settings-status-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
.store-settings-status{display:flex;align-items:center;gap:12px;margin:0;color:#0f172a;font-size:14px;font-weight:700;cursor:pointer}
.store-settings-status input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
.store-settings-toggle{position:relative;display:block;width:44px;height:24px;border-radius:999px;background:#cbd5e1;transition:.18s ease}
.store-settings-toggle::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.22);transition:.18s ease}
.store-settings-status input:checked+.store-settings-toggle{background:#009654}
.store-settings-status input:checked+.store-settings-toggle::after{transform:translateX(-20px)}
.store-settings-status input:focus-visible+.store-settings-toggle{outline:2px solid #009654;outline-offset:3px}
.store-settings-status.is-suspended{cursor:not-allowed;color:#b91c1c}
.store-settings-status.is-suspended .store-settings-toggle{background:#fee2e2}
.store-settings-public-link{display:flex;align-items:center;gap:8px;margin:0;color:#94a3b8;font-size:13px}
.store-settings-public-link a{color:#007a48;font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:600}
.store-settings-save{align-self:flex-start;min-height:48px;border:0;border-radius:12px;background:#009654;padding:12px 32px;color:#fff;font-size:14px;font-weight:700}
.store-settings-save:hover{background:#007a44}
.store-settings-save:disabled{opacity:.6;cursor:wait}
.store-danger-card{display:flex;flex-direction:column;gap:20px;border-color:#fee2e2;background:#fff5f5}
.store-danger-card header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.store-danger-card h2{color:#b91c1c}
.store-danger-card header span{border-radius:6px;background:#fee2e2;padding:4px 12px;color:#b91c1c;font-size:11px;font-weight:700}
.store-danger-content{display:flex;align-items:center;gap:24px}
.store-danger-content>div{flex:1;text-align:right}
.store-danger-content h3{margin:0 0 4px;color:#b91c1c;font-size:14px}
.store-danger-content p{margin:0;color:#7f1d1d;font-size:13px;line-height:1.8}
.store-danger-content>a{flex:0 0 auto;min-height:48px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#b91c1c;padding:12px 24px;color:#fff;font-size:14px;font-weight:700}
.store-danger-content>a:hover{background:#991b1b}

@media(max-width:1100px){
  .shell:has(.store-settings-page){padding-right:0}
  .shell:has(.store-settings-page) .sidebar{width:280px}
  .shell:has(.store-settings-page) .main{padding:24px}
}
@media(max-width:700px){
  .shell:has(.store-settings-page) .topbar{height:64px;padding-inline:16px}
  .shell:has(.store-settings-page) .topbar-breadcrumb>span:last-child{display:none}
  .shell:has(.store-settings-page) .main{padding:20px 16px 32px}
  .store-settings-card,.store-danger-card{padding:20px 16px;border-radius:14px}
  .store-settings-row{grid-template-columns:1fr;gap:20px}
  .store-settings-status-row,.store-danger-content{align-items:stretch;flex-direction:column}
  .store-settings-public-link{align-items:flex-start;flex-direction:column}
  .store-settings-public-link a{max-width:100%;overflow-wrap:anywhere}
  .store-settings-save,.store-danger-content>a{width:100%}
  .store-danger-card header{align-items:flex-start}
}

/* ===== Delete shop modal — Figma frame 128:2553 ===== */
.delete-shop-settings-preview{display:flex;flex-direction:column;gap:24px}
.delete-shop-settings-preview h1{margin:0;font-size:16px;font-weight:800;color:#0f172a}
.delete-shop-preview-button{flex:0 0 auto;min-height:48px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#b91c1c;padding:12px 24px;color:#fff;font-size:14px;font-weight:700}
.delete-shop-dialog{width:min(calc(100vw - 32px),540px);max-width:540px;max-height:calc(100vh - 32px);overflow:auto;margin:auto;border:0;border-radius:24px;background:#fff;padding:0;box-shadow:0 16px 20px rgba(0,0,0,.25)}
.delete-shop-dialog::backdrop{background:rgba(15,23,42,.5)}
.delete-shop-modal{display:flex;flex-direction:column;padding:32px}
.delete-shop-modal-head{display:flex;flex-direction:column;align-items:center;text-align:center}
.delete-shop-warning-icon{width:56px;height:56px;display:grid;place-items:center;margin-bottom:16px;border-radius:50%;background:#fef2f2}
.delete-shop-warning-icon img{width:24px;height:24px}
.delete-shop-modal-head h1{margin:0;color:#0f172a;font-size:20px;font-weight:800;line-height:1.6}
.delete-shop-modal-head p{margin:8px 0 0;color:#64748b;font-size:13px;font-weight:400;line-height:1.9}
.delete-shop-consequences{display:flex;flex-direction:column;gap:10px;margin:24px 0;padding:0;list-style:none;color:#475569;font-size:13px;line-height:1.8}
.delete-shop-consequences li{position:relative;padding-inline-start:18px}
.delete-shop-consequences li::before{content:"";position:absolute;top:9px;inset-inline-start:0;width:6px;height:6px;background:url("../seller_auth/icons/delete-shop/bullet-danger.svg") center/6px 6px no-repeat}
.delete-shop-consequences li:last-child{color:#64748b}
.delete-shop-consequences li:last-child::before{background-image:url("../seller_auth/icons/delete-shop/bullet-muted.svg")}
.delete-shop-divider{display:block;width:100%;height:1px;margin:0 0 24px}
.delete-shop-confirmation{position:relative!important;display:grid!important;grid-template-columns:18px 1fr;align-items:center!important;gap:10px!important;margin:0 0 20px;color:#334155;font-size:13px;line-height:1.8;cursor:pointer}
.delete-shop-confirmation input{position:absolute;width:1px!important;height:1px!important;overflow:hidden;opacity:0}
.delete-shop-confirmation>span{position:relative;grid-column:1;width:18px;min-width:18px;height:18px;border:1px solid #cbd5e1;border-radius:5px;background:#fff}
.delete-shop-confirmation>span img{position:absolute;inset:4px;width:10px;height:10px}
.delete-shop-confirmation>strong{grid-column:2;font-weight:600}
.delete-shop-confirmation input:checked+span{border-color:#b91c1c;background:#b91c1c}
.delete-shop-confirmation input:checked+span::after{content:"";position:absolute;top:3px;left:3px;width:10px;height:6px;border-bottom:2px solid #fff;border-left:2px solid #fff;transform:rotate(-45deg)}
.delete-shop-confirmation input:focus-visible+span{outline:2px solid #b91c1c;outline-offset:3px}
.delete-shop-name-field{display:flex;flex-direction:column;gap:8px;margin:0;color:#475569;font-size:13px;font-weight:700}
.delete-shop-name-field input{height:48px;border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px;color:#0f172a;font-size:14px;font-weight:400}
.delete-shop-name-field input::placeholder{color:#94a3b8}
.delete-shop-name-field input:focus{border-color:#b91c1c;outline:2px solid rgba(185,28,28,.12)}
.delete-shop-error{margin:12px 0 0;border-radius:10px;background:#fef2f2;padding:10px 12px;color:#b91c1c;font-size:12px;line-height:1.7}
.delete-shop-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
.delete-shop-actions button{min-height:48px;border-radius:12px;padding:12px 16px;font-size:14px;font-weight:700}
.delete-shop-cancel{border:1px solid #e2e8f0;background:#fff;color:#475569}
.delete-shop-cancel:hover{background:#f8fafc}
.delete-shop-submit{border:1px solid #b91c1c;background:#b91c1c;color:#fff}
.delete-shop-submit:hover{background:#991b1b}
.delete-shop-submit:disabled{border-color:#e2e8f0;background:#e2e8f0;color:#94a3b8;cursor:not-allowed}

@media(max-width:700px){
  .delete-shop-background{min-width:640px}
  .delete-shop-dialog{width:min(calc(100vw - 24px),540px);max-height:calc(100vh - 24px);border-radius:20px}
  .delete-shop-modal{padding:24px 20px}
  .delete-shop-consequences{margin-block:20px;font-size:12px}
  .delete-shop-actions{grid-template-columns:1fr}
}
.navbar-user-info{display:flex;align-items:center;gap:12px}
.navbar-user-text{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.navbar-user-name{font-size:14px;font-weight:700;color:var(--text)}
.navbar-user-role{font-size:11px;font-weight:400;color:var(--muted)}
.navbar-user-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:20px;background:var(--primary-bg);color:var(--primary);font-size:14px;font-weight:700}

/* Main Content */
.store-center-main{max-width:1360px;width:100%;margin:0 auto;padding:40px;display:flex;flex-direction:column;gap:32px}

/* Header */
.store-center-header{display:flex;align-items:center;justify-content:space-between;direction:ltr}
.store-center-header>*{direction:rtl}
.store-center-welcome{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.store-center-welcome h1{font-size:24px;font-weight:800;color:var(--text);margin:0}
.store-center-welcome p{font-size:14px;font-weight:400;color:var(--muted);margin:0}

/* Banner */
.store-center-banner{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px;background:#D1FAE5;border:1px solid #A7F3D0;border-radius:12px}
.store-center-banner img{width:18px;height:18px;flex-shrink:0;filter:invert(18%) sepia(58%) saturate(2816%) hue-rotate(137deg) brightness(94%) contrast(98%)}
.store-center-banner p{flex:1;font-size:13px;font-weight:500;color:#065F46;margin:0;text-align:right;line-height:1.6}

/* Shops Section */
.store-center-shops{display:flex;flex-direction:column;gap:16px}
.store-center-section-title{font-size:16px;font-weight:700;color:var(--text);margin:0;text-align:right}

/* Shops Grid */
.store-center-shops-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:24px}

/* Shop Card */
.shop-card{display:flex;flex-direction:column;gap:20px;padding:24px;background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 4px 12px rgba(15,23,42,0.03);transition:all .2s ease}
.shop-card-error{border-color:#EF4444;border-width:1.5px;box-shadow:0 8px 16px rgba(239,68,68,0.06)}

/* Shop Card Header */
.shop-card-header{display:flex;align-items:center;justify-content:space-between;gap:20px;direction:ltr}
.shop-card-header>*{direction:rtl}
.shop-card-badges{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.shop-badge{padding:4px 10px;border-radius:8px;font-size:12px;font-weight:600}
.shop-badge-active{background:#D1FAE5;color:#10B981}
.shop-badge-draft{background:#FEF3C7;color:#F59E0B}
.shop-badge-warning{background:#FEF3C7;color:#F59E0B}
.shop-badge-error{background:#FEF2F2;color:#EF4444}
.shop-badge-role{background:var(--page);color:var(--muted)}

.shop-card-title{display:flex;align-items:center;gap:12px;justify-content:space-between}
.shop-card-info{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:1}
.shop-card-info h3{font-size:16px;font-weight:700;color:var(--text);margin:0}
.shop-card-id{font-size:11px;font-weight:400;color:var(--muted)}
.shop-card-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:var(--page);color:var(--primary);font-size:18px;font-weight:700;flex-shrink:0}

.shop-card-divider{height:1px;background:var(--border)}

/* Connection Status */
.shop-card-connection{display:flex;align-items:center;justify-content:space-between;padding:12px;background:var(--primary-bg);border-radius:12px}
.shop-connection-success{background:#E6F4EA}
.shop-connection-warning{background:#FEF3C7}
.shop-connection-error{background:#FEF2F2}
.shop-connection-info{display:flex;align-items:center;gap:8px}
.shop-connection-dot{width:8px;height:8px;border-radius:50%;background:var(--border);flex-shrink:0}
.shop-dot-active{background:var(--primary)}
.shop-dot-warning{background:#F59E0B}
.shop-dot-error{background:#EF4444}
.shop-connection-text{font-size:13px;font-weight:600;color:#007A48}
.shop-connection-warning .shop-connection-text{color:#B45309}
.shop-connection-error .shop-connection-text{color:#EF4444}
.shop-card-connection img{width:20px;height:20px;flex-shrink:0;filter:invert(39%) sepia(68%) saturate(1327%) hue-rotate(131deg) brightness(93%) contrast(101%)}
.shop-connection-error img{filter:invert(33%) sepia(94%) saturate(4090%) hue-rotate(348deg) brightness(94%) contrast(92%)}

/* Shop Metrics */
.shop-card-metrics{display:flex;align-items:center;justify-content:space-between}
.shop-metric{display:flex;align-items:center;gap:6px;flex-direction:row-reverse}
.shop-metric-value{font-size:14px;font-weight:600;color:var(--text)}
.shop-metric-label{font-size:13px;font-weight:400;color:var(--muted)}
.shop-metric-badge{padding:2px 8px;border-radius:6px;font-size:13px;font-weight:700}
.shop-metric-badge-warning{background:#FEF3C7;color:#F59E0B}
.shop-metric-badge-muted{background:var(--page);color:var(--muted)}

/* Shop Card Button */
.shop-card-button{display:flex;align-items:center;justify-content:center;padding:12px 20px;background:var(--primary);color:#fff;border-radius:12px;font-size:15px;font-weight:700;text-decoration:none;transition:all .15s ease}
.shop-card-button:hover{background:var(--primary-hover)}
.shop-card-error .shop-card-button{background:var(--card);color:var(--text);border:1px solid var(--border)}
.shop-card-error .shop-card-button:hover{background:var(--interactive)}

/* Statistics Section */
.store-center-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:24px;background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 4px 12px rgba(15,23,42,0.03)}
.store-stat-card{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.store-stat-label{font-size:12px;font-weight:400;color:var(--muted)}
.store-stat-value{font-size:20px;font-weight:800;color:var(--text)}
.store-stat-change{display:flex;align-items:center;gap:4px;flex-direction:row-reverse}
.store-stat-dot{width:4px;height:4px;border-radius:50%;background:var(--muted);flex-shrink:0}
.store-stat-dot.store-dot-success{background:var(--primary)}
.store-stat-text{font-size:11px;font-weight:600;color:var(--primary)}
.store-stat-neutral .store-stat-text{color:var(--muted)}
.store-stat-neutral .store-stat-dot{background:var(--muted)}

/* Empty State */
.store-center-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 32px;text-align:center}
.store-center-empty svg{width:64px;height:64px;stroke:var(--muted);margin-bottom:24px}
.store-center-empty h2{font-size:22px;font-weight:700;color:var(--text);margin:0 0 8px}
.store-center-empty p{font-size:14px;color:var(--muted);margin:0 0 24px}

/* Responsive */
@media(max-width:1200px){
  .store-center-shops-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px}
  .store-center-stats{grid-template-columns:repeat(3,1fr);gap:24px}
}

@media(max-width:900px){
  .store-center-navbar{padding:0 24px}
  .store-center-main{padding:24px}
  .navbar-search{width:220px}
  .store-center-header{flex-direction:column-reverse;align-items:stretch;gap:20px}
  .store-center-header .btn{order:0;width:100%}
  .store-center-welcome{align-items:flex-start}
  .store-center-shops-grid{grid-template-columns:1fr}
  .store-center-stats{grid-template-columns:1fr;gap:16px}
}

@media(max-width:640px){
  .store-center-navbar{display:grid;grid-template-columns:1fr auto;height:auto;min-height:72px;padding:12px 16px;gap:12px 16px}
  .navbar-right{grid-column:1;grid-row:1;justify-self:start}
  .navbar-left{display:contents}
  .navbar-brand{grid-column:2;grid-row:1}
  .navbar-search{grid-column:1/-1;grid-row:2;width:auto;max-width:none}
  .navbar-user-text{display:none}
  .store-center-main{padding:20px 16px}
  .store-center-welcome h1{font-size:20px}
  .shop-card{padding:20px}
  .shop-card-metrics{flex-direction:column;align-items:stretch;gap:12px}
  .shop-metric{justify-content:space-between}
}

/* ===== Order detail drawer — Figma 125:1303 ===== */
.orders-page{display:grid;gap:24px}
.shell:has(.orders-page){padding-right:260px}
.shell:has(.orders-page) .sidebar{width:260px}
.orders-header{display:flex;align-items:center;justify-content:space-between}
.orders-header h1{font-size:22px;font-weight:800}
.orders-export{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid var(--border);border-radius:10px;color:var(--muted);background:var(--card);font-size:13px;font-weight:700}
.orders-card{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.orders-table-wrap{overflow-x:auto}
.orders-table th,.orders-table td{height:58px;padding:12px 16px;font-size:13px}
.orders-table th{height:44px;border:0;border-radius:8px;color:var(--disabled);font-weight:400}
.orders-table .order-code{color:#007a48}
.order-detail-link{border:0;background:transparent;color:var(--primary);font:inherit;font-weight:700}
.order-status{display:inline-flex;padding:4px 12px;border-radius:8px;font-size:12px;font-weight:700}
.order-status-paid,.order-status-fulfilled{background:#d1fae5;color:#065f46}
.order-status-pending_payment,.order-status-draft{background:var(--warning-bg);color:var(--warning)}
.order-status-cancelled{background:var(--error-bg);color:var(--error)}
.order-drawer{width:400px;max-width:100%;height:100dvh;max-height:none;margin:0;inset:0 auto 0 0;border:0;border-left:1px solid var(--border);border-radius:0;background:var(--card);color:var(--text);box-shadow:12px 0 30px rgba(15,23,42,.08)}
.order-drawer[open]{display:flex;flex-direction:column}
.order-drawer::backdrop{background:rgba(248,250,252,.6)}
.order-drawer-head{display:flex;direction:ltr;align-items:center;justify-content:space-between;margin:24px 24px 0;padding-bottom:24px;border-bottom:1px solid var(--border)}
.order-drawer-head h2{direction:rtl;font-size:16px;font-weight:800}
.order-drawer-close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:var(--page);color:var(--muted);font-size:17px}
.order-drawer-body{display:flex;flex:1;flex-direction:column;gap:0;padding:0 24px 24px;overflow-y:auto}
.order-drawer-section{padding:20px 0 24px;border-bottom:1px solid var(--border)}
.order-drawer-section h3{margin-bottom:14px;color:var(--disabled);font-size:13px}
.order-timeline{display:grid;gap:12px}
.order-timeline>div{display:flex;gap:12px;align-items:center}
.timeline-check{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#e6f4ea;color:#009654;font-size:12px;font-weight:900}
.order-timeline p,.buyer-row p{display:grid;gap:2px}
.order-timeline strong{font-size:13px}.order-timeline small,.buyer-row small{color:var(--disabled);font-size:11px}
.buyer-row{display:flex;align-items:center;gap:12px}
.buyer-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e6f4ea;color:#009654;font-weight:800}
.buyer-row strong{font-size:14px}.delivery-label{margin-top:12px;color:var(--disabled);font-size:11px;font-weight:700}.delivery-address{margin-top:4px;color:var(--muted);font-size:13px;line-height:1.8}
.receipt-items{display:grid;gap:12px}.receipt-items p,.order-summary p{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.receipt-items small{color:var(--disabled)}.receipt-items strong{white-space:nowrap}
.order-summary{display:grid;gap:10px;padding:20px 0}.order-summary p:first-child strong{font-size:13px}.order-summary b{color:#009654;font-size:16px}.order-summary p:last-child{color:var(--disabled);font-size:12px}.order-summary p:last-child span:last-child{color:var(--muted);font-weight:700}
.order-complete{width:100%;margin-top:4px;border-radius:12px}

@media(max-width:700px){
  .shell:has(.orders-page){padding-right:0}
  .orders-header{align-items:stretch;gap:12px}.orders-header h1{font-size:20px}.orders-export{align-self:flex-start}
  .orders-card{padding:0;border:0;background:transparent}.orders-table thead{display:none}.orders-table,.orders-table tbody,.orders-table tr,.orders-table td{display:block;width:100%}
  .orders-table tr{display:grid;gap:10px;margin-bottom:12px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
  .orders-table td{display:flex;justify-content:space-between;gap:12px;height:auto;padding:0;border:0;white-space:normal}.orders-table td::before{content:attr(data-label);color:var(--disabled);font-size:12px}
  .order-drawer{width:100%}.order-drawer::backdrop{background:rgba(15,23,42,.45)}
}

/* ===== Team members — Figma 128:2242 ===== */
.team-page{display:grid;gap:32px}
.team-heading{display:flex;align-items:center;justify-content:space-between}
.team-heading h1{font-size:18px;font-weight:800}
.team-add-button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 16px;border-radius:12px;background:var(--primary);color:#00150b;font-size:14px;font-weight:700}
.team-add-button:hover{background:var(--primary-hover);color:#fff}
.team-add-button img{width:16px;height:16px}
.team-table-card{padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.team-table-header,.team-row{display:grid;grid-template-columns:minmax(240px,1fr) 250px 130px 150px;align-items:center}
.team-table-header{min-height:43px;padding:12px 16px;border-radius:8px;background:var(--page);color:var(--disabled);font-size:12px;font-weight:700}
.team-row{min-height:59px;padding:16px;border-bottom:1px solid var(--border);color:var(--muted);font-size:13px}
.team-row:last-child{border-bottom:0}
.team-row>strong{color:var(--text);font-size:14px}
.team-row-pending{color:var(--disabled)}
.team-email{direction:ltr;text-align:right;font-size:14px}
.team-role{display:inline-flex;justify-content:center;width:max-content;padding:4px 12px;border-radius:6px;font-size:12px;font-weight:700}
.team-role-owner{background:#e6f4ea;color:#007a48}
.team-role-admin{background:#d1fae5;color:#065f46}
.team-role-pending{background:#fef3c7;color:#d97706}
.team-invite-card{display:grid;gap:20px;padding:28px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.team-invite-card h2{padding-bottom:20px;border-bottom:1px solid var(--border);font-size:16px;font-weight:800}
.team-invite-card form{display:grid;grid-template-columns:minmax(260px,1fr) 240px 180px;gap:16px;align-items:end}
.team-invite-card label{display:grid;gap:8px;color:var(--muted);font-size:13px;font-weight:700}
.team-invite-card input,.team-invite-card select{height:46px;margin:0;padding:12px;border-radius:12px}
.team-invite-card input{text-align:right}
.team-invite-card select{background:var(--page);color:var(--text);opacity:1}
.team-invite-card form>button{height:46px;border:0;border-radius:12px;background:var(--primary);color:#00150b;font-size:14px;font-weight:700}
.team-invite-card form>button:hover{background:var(--primary-hover);color:#fff}
.team-form-message{grid-column:1/-1;color:var(--success);font-size:13px}
.team-form-message.is-error{color:var(--error)}
.team-notice{display:flex;align-items:center;gap:8px;min-height:52px;padding:16px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#1e40af;font-size:13px}
.team-notice img{flex:0 0 16px;width:16px;height:16px}

@media(max-width:900px){
  .team-table-header,.team-row{grid-template-columns:minmax(180px,1fr) 220px 120px 130px}
  .team-table-card{overflow-x:auto}
  .team-table-header,.team-row{min-width:760px}
  .team-invite-card form{grid-template-columns:1fr 220px}
  .team-invite-card form>button{grid-column:1/-1}
}

@media(max-width:700px){
  .shell:has(.team-page) .topbar-breadcrumb>span{display:none}
  .team-page{gap:18px}.team-heading{align-items:stretch;flex-direction:column;gap:14px}.team-heading h1{font-size:18px}.team-add-button{justify-content:center}
  .team-table-card{padding:0;border:0;overflow:visible;background:transparent}.team-table-header{display:none}.team-table-body{display:grid;gap:12px}
  .team-row{display:grid;grid-template-columns:1fr;min-width:0;gap:10px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
  .team-row>*{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;text-align:left}.team-row>*::before{content:attr(data-label);color:var(--disabled);font-size:12px;font-weight:400}
  .team-row .team-email{direction:ltr;text-align:left}.team-row .team-email::before{direction:rtl;margin-right:auto}
  .team-invite-card{gap:16px;padding:18px}.team-invite-card form{grid-template-columns:1fr}.team-invite-card form>button{grid-column:auto}.team-notice{align-items:flex-start;line-height:1.8}
}

/* ===== Account security — Figma 128:2498 ===== */
.account-security-body{min-width:320px;background:#f8fafc;color:#0f172a}
.account-security-page{min-height:100vh;background:#f8fafc}
.account-security-topbar{height:80px;display:flex;align-items:center;justify-content:space-between;padding-inline:80px;border-bottom:1px solid #e2e8f0;background:#fff}
.account-security-brand,.account-security-back{display:flex;align-items:center;gap:8px}
.account-security-brand{color:#0f172a;font-size:18px;font-weight:900}
.account-security-brand-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#009654}
.account-security-brand-mark img{width:18px;height:18px}
.account-security-back{color:#475569;font-size:14px}
.account-security-back img{width:16px;height:16px}
.account-security-main{width:min(760px,calc(100% - 32px));display:flex;flex-direction:column;gap:32px;margin-inline:auto;padding-block:60px 80px}
.account-security-card{display:flex;flex-direction:column;gap:24px;padding:32px;border:1px solid #e2e8f0;border-radius:20px;background:#fff}
.account-profile-card{align-items:center;gap:20px}
.account-avatar{width:80px;height:80px;display:grid;place-items:center;border-radius:50%;background:#e6f4ea;color:#007a48;font-size:32px;font-weight:800}
.account-profile-copy{display:grid;justify-items:center;gap:6px}
.account-profile-copy h1{font-size:20px;font-weight:900}
.account-profile-copy p{color:#475569;font-family:Inter,Arial,sans-serif;font-size:14px}
.account-security-card>h2{font-size:16px;font-weight:800}
.account-security-divider{height:1px;background:#e2e8f0}
.account-identity-list{display:grid}
.account-identity-row{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:12px;border-bottom:1px solid #e2e8f0}
.account-identity-info{display:flex;align-items:center;gap:12px}
.account-identity-icon{position:relative;display:block;flex:0 0 24px;width:24px;height:24px}
.account-identity-icon img{position:absolute;inset:0;width:24px;height:24px}
.account-identity-icon.is-google img{top:-1px;right:-1px;bottom:auto;left:auto;width:25px;height:25px}
.account-identity-info div{display:grid;justify-items:end;gap:2px}
.account-identity-info strong{font-size:14px}
.account-identity-info span{color:#475569;font-family:Inter,Arial,sans-serif;font-size:13px}
.account-identity-badge{padding:4px 12px;border-radius:6px;background:#d1fae5;color:#065f46;font-size:12px;font-weight:700}
.account-identity-badge.is-missing{background:#f1f5f9;color:#64748b}
.account-connect-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.account-connect-row p{color:#94a3b8;font-size:13px}
.account-connect-button{min-height:38px;padding:8px 16px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#0f172a;font-size:13px;font-weight:700}
.account-connect-button:hover{background:#f8fafc}
.account-session-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.account-session-button{min-height:48px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#0f172a;font-size:14px;font-weight:700}
.account-session-button:hover{background:#f8fafc}
.account-session-button.is-danger{color:#b91c1c}
.account-session-notice{padding:16px;border:1px solid #fef3c7;border-radius:12px;background:#fffbeb;color:#92400e;font-size:13px;line-height:1.8}
.account-security-message{margin:0;color:#b91c1c;font-size:13px}
.account-security-dialog{width:min(92vw,520px);border:0;border-radius:20px;padding:0;background:#fff;color:#0f172a;box-shadow:0 24px 70px rgba(15,23,42,.24)}
.account-security-dialog::backdrop{background:rgba(15,23,42,.45)}
.account-security-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 18px;border-bottom:1px solid #e2e8f0}
.account-security-dialog-head h2{font-size:17px}
.account-security-dialog-close{width:34px;height:34px;border:0;border-radius:8px;background:#f8fafc;font-size:20px}
.account-security-dialog-body{display:grid;gap:20px;padding:24px}
.account-link-option{display:grid;gap:12px;padding:16px;border:1px solid #e2e8f0;border-radius:14px}
.account-link-option h3{display:flex;align-items:center;gap:10px;font-size:14px}
.account-link-option p{color:#64748b;font-size:12px;line-height:1.8}
.account-link-option label{display:grid;gap:7px;color:#475569;font-size:12px;font-weight:700}
.account-link-option input{height:44px;border-radius:10px}
.account-link-option button{min-height:42px;border:0;border-radius:10px;background:#009654;color:#fff;font-weight:700}
.account-link-option button:disabled{opacity:.55}

@media(max-width:700px){
  .account-security-topbar{height:64px;padding-inline:16px}
  .account-security-brand{font-size:15px}.account-security-brand-mark{width:30px;height:30px}
  .account-security-back{font-size:0}.account-security-back img{width:18px;height:18px}
  .account-security-main{gap:20px;padding-block:24px 40px}
  .account-security-card{gap:20px;padding:22px 18px;border-radius:16px}
  .account-avatar{width:68px;height:68px;font-size:27px}
  .account-identity-row{align-items:flex-start;flex-direction:column}
  .account-identity-badge{align-self:flex-start}
  .account-connect-row{align-items:stretch;flex-direction:column}
  .account-connect-button{width:100%}
  .account-session-actions{grid-template-columns:1fr}
}

/* ===== Mobile seller flow — Figma 128:2685 ===== */
.mobile-topbar,.mobile-bottom-nav,.mobile-more-header,.mobile-active-shop,.mobile-account-menu,.mobile-system-status,.mobile-products-list,.mobile-orders-tools{display:none}
.login-controls{display:flex;flex-direction:column;gap:40px}

@media(max-width:700px){
  html,body{min-width:320px;background:#f8fafc;color:#0f172a}
  body{padding-bottom:84px}
  .shell{min-height:100dvh;padding:0}
  .content{min-height:100dvh}
  .main{padding:16px 16px 100px}

  .topbar{position:sticky;z-index:15;top:0;height:60px;padding:0 16px;border-bottom:1px solid #e2e8f0;background:#fff}
  .topbar>.menu-button,.topbar>.topbar-title,.topbar>.topbar-actions{display:none}
  .mobile-topbar{display:flex;width:100%;align-items:center;justify-content:space-between}
  .mobile-page-title{margin-inline-start:auto;color:#0f172a;font-size:17px;font-weight:800}
  .mobile-topbar-action,.mobile-topbar-add,.mobile-topbar-download{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:8px;background:#f8fafc}
  .mobile-topbar-add{background:#009654}
  .mobile-topbar-download{background:#e6f4ea}
  .mobile-shop-pill{display:flex;align-items:center;gap:7px;min-height:32px;padding:6px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#0f172a}
  .mobile-shop-pill strong{max-width:190px;overflow:hidden;text-overflow:ellipsis;font-size:12px;white-space:nowrap}

  .sidebar{z-index:40;inset:0;width:100%;padding:0 16px 104px;transform:translateX(100%);overflow-y:auto;border:0;background:#f8fafc;color:#0f172a}
  .sidebar.open{transform:translateX(0)}
  .sidebar .brand,.sidebar .shop-switcher{display:none}
  .mobile-more-header{display:flex;height:60px;align-items:center;justify-content:space-between;margin-inline:-16px;padding-inline:16px;border-bottom:1px solid #e2e8f0;background:#fff}
  .mobile-more-header strong{font-size:17px;font-weight:800}
  .mobile-more-header>span,.mobile-more-close{width:24px}
  .mobile-more-close{border:0;background:transparent;color:#94a3b8;font-size:24px;line-height:1;opacity:0}
  .mobile-active-shop{display:grid;grid-template-columns:auto 1fr 40px;align-items:center;gap:12px;margin:16px 0 20px;padding:16px;border:1px solid #009654;border-radius:14px;background:#e6f4ea}
  .mobile-active-shop-role{padding:2px 8px;border-radius:6px;color:#007a48;font-size:11px;font-weight:700;white-space:nowrap}
  .mobile-active-shop-copy{display:grid;justify-items:end;gap:3px}
  .mobile-active-shop-copy strong{color:#007a48;font-size:14px}
  .mobile-active-shop-copy small{color:#475569;font-size:11px}
  .mobile-active-shop-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:#009654}
  .sidebar .nav{gap:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
  .sidebar .nav .nav-overview,.sidebar .nav .nav-orders,.sidebar .nav .nav-products{display:none}
  .sidebar .nav .nav-more-item,.sidebar .nav .mobile-account-menu{display:flex;height:60px;padding:0 16px;border-bottom:1px solid #e2e8f0;border-radius:0;background:#fff;color:#0f172a;font-size:14px;font-weight:700}
  .sidebar .nav .nav-more-item:last-child{border-bottom:0}
  .sidebar .nav .nav-more-item .nav-icon{width:16px;height:16px;padding:0}
  .sidebar .nav .nav-more-item::before{content:"";width:14px;height:14px;margin-inline-start:auto;background:url("icons/mobile/chevron-left.svg") center/contain no-repeat}
  .sidebar-footer{margin-top:20px;padding:0;border:0}
  .sidebar-footer .sidebar-account-link{display:none}
  .sidebar-footer form{width:100%}
  .sidebar-footer button{display:flex;width:100%;height:46px;align-items:center;justify-content:center;gap:10px;border-radius:12px;background:#fee2e2;color:#ef4444;font-size:14px;font-weight:700}
  .sidebar-footer button::before{content:"خروج از حساب کاربری"}
  .sidebar-footer button img{width:16px;height:16px}
  .sidebar-overlay{z-index:35}

  .mobile-bottom-nav{position:fixed;z-index:50;right:0;bottom:0;left:0;display:flex;height:84px;align-items:flex-start;justify-content:space-between;padding:9px 16px 24px;border-top:1px solid #e2e8f0;background:#fff}
  .mobile-bottom-item{display:flex;width:72px;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:#94a3b8;font-size:11px;font-weight:500}
  .mobile-bottom-item img{width:20px;height:20px}
  body:has(.mobile-dashboard-page) .mobile-nav-overview,
  body:has(.products-page) .mobile-nav-products,
  body:has(.orders-page) .mobile-nav-orders{color:#009654;font-weight:700}
  body:has(.mobile-dashboard-page) .mobile-nav-overview img{content:url("icons/mobile/home-active.svg")}
  body:has(.products-page) .mobile-nav-products img{content:url("icons/mobile/products-active.svg")}
  body:has(.orders-page) .mobile-nav-orders img{content:url("icons/mobile/orders-active.svg")}
  body:has(.sidebar.mobile-more-open) .mobile-nav-more{color:#009654;font-weight:700}
  body:has(.sidebar.mobile-more-open) .mobile-nav-more img{content:url("icons/mobile/menu-active.svg")}

  .mobile-dashboard-page{display:flex;flex-direction:column;gap:20px}
  .dashboard-kpi-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
  .dashboard-kpi-card{min-height:82px;gap:8px;padding:12px;border-radius:12px;box-shadow:none}
  .dashboard-kpi-card .kpi-header{width:100%;min-height:19px}
  .dashboard-kpi-card .kpi-label{color:#94a3b8;font-size:12px;font-weight:400}
  .dashboard-kpi-card .kpi-value{font-size:16px;font-weight:800;white-space:nowrap}
  .dashboard-kpi-card .kpi-badge{padding:2px 8px;border-radius:6px;background:#fee2e2;color:#ef4444;font-size:11px}
  .dashboard-kpi-card:nth-child(1){grid-column:1;grid-row:2}
  .dashboard-kpi-card:nth-child(2){grid-column:2;grid-row:2}
  .dashboard-kpi-card:nth-child(3){grid-column:1;grid-row:1}
  .dashboard-kpi-card:nth-child(4){grid-column:2;grid-row:1}
  .mobile-system-status{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
  .mobile-system-status h2{font-size:13px;font-weight:700}
  #mobile-health-status{display:flex;flex-wrap:wrap;gap:8px}
  #mobile-health-status span{padding:2px 8px;border-radius:6px;background:#d1fae5;color:#065f46;font-size:11px;font-weight:700}
  #mobile-health-status span.is-inactive{background:#fee2e2;color:#b91c1c}
  .dashboard-split-layout{display:block}
  .dashboard-right-sidebar{display:none}
  .dashboard-orders-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  .dashboard-card-header{display:flex;flex-direction:row;align-items:center;margin-bottom:12px}
  .dashboard-card-title{font-size:14px;font-weight:800}
  .dashboard-view-all-link{font-size:12px}
  .dashboard-card-divider,.dashboard-table-header{display:none}
  .dashboard-table-body{gap:8px}
  .dashboard-table-row{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"amount code" "status customer";gap:4px 12px;margin:0;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
  .dashboard-col-date{display:none}
  .dashboard-col-id{grid-area:code;color:#009654;font-size:13px;font-weight:800;text-align:right}
  .dashboard-col-customer{grid-area:customer;color:#475569;font-size:12px;text-align:right}
  .dashboard-col-amount{grid-area:amount;color:#0f172a;font-size:13px;font-weight:700;text-align:left}
  .dashboard-col-status{grid-area:status;justify-content:flex-start}
  .dashboard-col-date::before,.dashboard-col-amount::before,.dashboard-col-customer::before,.dashboard-col-id::before{content:none}
  .dashboard-status-badge-success,.dashboard-status-badge-warning,.dashboard-status-badge-muted{padding:2px 8px;font-size:10px}

  .products-page{gap:12px}
  .products-filter-card{display:flex;align-items:stretch;gap:12px;padding:0;border:0;border-radius:0;background:transparent}
  .products-search{order:1;min-height:38px;padding:8px 12px;border-radius:10px;background:#fff}
  .products-search input{font-size:11px}
  .products-filter-tabs{order:2;gap:8px;padding:0;overflow-x:auto;background:transparent}
  .products-filter-tabs button{padding:6px 14px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;font-size:11px}
  .products-filter-tabs button.active{border-color:#009654;background:#009654;color:#fff}
  .products-filter-tabs button[data-status="archived"]{display:none}
  .products-tab-count{display:none}
  .products-table-card{padding:0;border:0;border-radius:0;background:transparent}
  .products-card-heading,.products-card-divider,.product-table-wrap,.products-pagination{display:none}
  .mobile-products-list{display:flex;flex-direction:column;gap:8px}
  .mobile-product-card{direction:ltr;display:grid;grid-template-columns:116px 1fr 52px;align-items:center;gap:10px;min-height:80px;padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
  .mobile-product-card>*{direction:rtl}
  .mobile-product-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
  .mobile-product-meta strong{font-size:12px;white-space:nowrap}
  .mobile-product-meta small{color:#94a3b8;font-size:9px;white-space:nowrap}
  .mobile-product-meta .products-badge{padding:2px 7px;font-size:9px}
  .mobile-product-copy{display:grid;justify-items:end;gap:4px;min-width:0}
  .mobile-product-copy b{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#0f172a;font-size:12px;white-space:nowrap}
  .mobile-product-copy code{color:#94a3b8;font:10px Vazirmatn,Tahoma,sans-serif}
  .mobile-product-image{display:grid;place-items:center;width:52px;height:52px;overflow:hidden;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#94a3b8}
  .mobile-product-image img{width:100%;height:100%;object-fit:cover}
  .products-page + .card{display:none}

  .orders-page{gap:12px}
  .orders-header{display:none}
  .mobile-orders-tools{display:flex;flex-direction:column;gap:12px}
  .mobile-orders-search{display:flex;min-height:38px;align-items:center;gap:10px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
  .mobile-orders-search input{padding:0;border:0;border-radius:0;background:transparent;font-size:11px}
  .mobile-orders-search input:focus{outline:0}
  .mobile-order-tabs{display:flex;gap:8px;overflow-x:auto}
  .mobile-order-tabs button{padding:6px 13px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#475569;font-size:10px;white-space:nowrap}
  .mobile-order-tabs button.active{border-color:#009654;background:#009654;color:#fff;font-weight:700}
  .orders-card{padding:0;border:0;background:transparent}
  .orders-table-wrap{overflow:visible}
  .orders-table thead{display:none}
  .orders-table,.orders-table tbody{display:block}
  .orders-table tr{direction:ltr;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-bottom:8px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
  .orders-table td{display:block;width:auto;height:auto;padding:0;border:0;font-size:11px;white-space:normal}
  .orders-table td>*{direction:rtl}
  .orders-table td::before{content:none}
  .orders-table td:nth-child(1){grid-column:2;grid-row:1;color:#009654;text-align:right}
  .orders-table td:nth-child(2){grid-column:2;grid-row:3;color:#475569;text-align:right}
  .orders-table td:nth-child(3){grid-column:1;grid-row:3;color:#0f172a;text-align:left}
  .orders-table td:nth-child(4){grid-column:1;grid-row:4;text-align:left}
  .orders-table td:nth-child(5){grid-column:1;grid-row:1;color:#94a3b8;text-align:left}
  .orders-table td:nth-child(6){display:none}
  .orders-table tr::after{content:"";grid-column:1/-1;grid-row:2;height:1px;background:#e2e8f0}
  .orders-table .order-code{font-size:12px}
  .order-status{padding:2px 8px;font-size:9px}

  .login-page{display:block;min-height:100dvh;background:#f8fafc}
  .login-form-panel{min-height:100dvh;justify-content:space-between;padding:60px 24px 22px;background:#f8fafc}
  .login-form-container{display:flex;width:100%;max-width:none;flex:1;flex-direction:column;justify-content:space-between;gap:36px}
  .login-header{gap:8px;padding-top:24px}
  .login-app-icon{width:64px;height:64px;border-radius:20px}
  .login-app-icon svg{width:32px;height:32px}
  .login-header h2{font-size:24px;font-weight:900}
  .login-subtitle{font-size:12px}
  .login-controls{display:flex;flex-direction:column;gap:24px;margin-top:auto;margin-bottom:auto}
  .login-google-btn{min-height:48px;padding:12px 14px}
  .login-divider{gap:16px}
  .login-divider span:nth-child(2){font-size:11px}
  .login-phone-form{gap:16px}
  .login-phone-group{gap:8px}
  .login-phone-input{min-height:48px;padding:12px}
  .login-phone-input input{direction:ltr;text-align:right}
  .login-send-code-btn{min-height:48px;padding:12px}
  .login-terms{font-size:10px}
}
