:root {
    --marketer-primary: #0f766e;
    --marketer-primary-dark: #115e59;
    --marketer-accent: #f59e0b;
    --marketer-bg: #f1f5f9;
    --marketer-card: #ffffff;
    --marketer-text: #0f172a;
    --marketer-muted: #64748b;
    --marketer-border: #e2e8f0;
    --marketer-danger: #b91c1c;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.marketer-app {
    background: var(--marketer-bg);
    color: var(--marketer-text);
    font-family: estedadFa, Tahoma, sans-serif;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.marketer-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 10px 16px;
    background: var(--marketer-primary);
    color: #fff;
    box-shadow: 0 3px 12px rgba(15, 118, 110, .2);
}
.marketer-brand, .marketer-user-menu, .marketer-user-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.marketer-brand { font-weight: 700; }
.marketer-brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
}
.marketer-user-menu { font-size: 12px; }
.marketer-user-menu a { font-size: 18px; }
.marketer-main { min-height: calc(100vh - 60px); }
.marketer-container { width: min(100%, 980px); margin: 0 auto; padding: 18px 14px 28px; }
.marketer-page-heading { display: flex; justify-content: space-between; margin-bottom: 16px; }
.marketer-page-heading h1 { margin: 0; font-size: 22px; }
.marketer-page-heading p { margin: 7px 0 0; color: var(--marketer-muted); font-size: 12px; }
.marketer-grid { display: grid; gap: 12px; }
.marketer-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.marketer-card {
    background: var(--marketer-card);
    border: 1px solid var(--marketer-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
}
.marketer-stat { display: flex; align-items: center; gap: 12px; }
.marketer-stat-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #ccfbf1; color: var(--marketer-primary-dark); font-size: 20px; }
.marketer-stat strong { display: block; font-size: 23px; }
.marketer-stat span { color: var(--marketer-muted); font-size: 12px; }
.marketer-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.marketer-section-title h2 { margin: 0; font-size: 17px; }
.marketer-section-title a { color: var(--marketer-primary); font-size: 12px; }
.marketer-list { display: grid; gap: 10px; }
.marketer-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; border: 1px solid var(--marketer-border); border-radius: 13px; background: #fff; }
.marketer-list-item-main { min-width: 0; }
.marketer-list-item-main strong, .marketer-list-item-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketer-list-item-main span { margin-top: 5px; color: var(--marketer-muted); font-size: 12px; }
.marketer-list-item-side { flex: 0 0 auto; text-align: left; }
.marketer-list-item-side small { display: block; color: var(--marketer-muted); font-size: 11px; }
.marketer-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 11px; }
.marketer-badge-success { background: #dcfce7; color: #166534; }
.marketer-badge-warning { background: #fef3c7; color: #92400e; }
.marketer-badge-danger { background: #fee2e2; color: #991b1b; }
.marketer-empty { padding: 24px 12px; border: 1px dashed var(--marketer-border); border-radius: 13px; color: var(--marketer-muted); text-align: center; }
.marketer-search { display: flex; gap: 8px; margin-bottom: 12px; }
.marketer-search input, .marketer-form input, .marketer-form select, .marketer-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #fff;
    color: var(--marketer-text);
}
.marketer-form textarea { min-height: 90px; resize: vertical; }
.marketer-form label { display: block; margin-bottom: 6px; color: #475569; font-size: 13px; font-weight: 700; }
.marketer-form-group { margin-bottom: 13px; }
.marketer-form-grid { display: grid; gap: 12px; }
.marketer-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border: 0; border-radius: 11px; cursor: pointer; }
.marketer-btn-primary { background: var(--marketer-primary); color: #fff; }
.marketer-btn-secondary { background: #e2e8f0; color: #334155; }
.marketer-btn-success { background: #16a34a; color: #fff; }
.marketer-btn-danger { background: #dc2626; color: #fff; }
.marketer-btn-block { width: 100%; }
.marketer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.marketer-alert { margin-bottom: 13px; padding: 11px 12px; border-radius: 11px; font-size: 13px; }
.marketer-alert-success { background: #dcfce7; color: #166534; }
.marketer-alert-danger { background: #fee2e2; color: var(--marketer-danger); }
.marketer-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.marketer-detail-header h2 { margin: 0; font-size: 19px; }
.marketer-detail-header p { margin: 6px 0 0; color: var(--marketer-muted); font-size: 13px; direction: ltr; text-align: right; }
.marketer-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.marketer-info-item { padding: 11px; border-radius: 11px; background: #f8fafc; }
.marketer-info-item small, .marketer-info-item strong { display: block; }
.marketer-info-item small { color: var(--marketer-muted); margin-bottom: 5px; }
.marketer-info-item strong { overflow-wrap: anywhere; }
.marketer-followup-card { border-right: 4px solid var(--marketer-accent); }
.marketer-followup-card.is-done { border-right-color: #16a34a; }
.marketer-followup-card.is-cancelled { border-right-color: #dc2626; }
.marketer-followup-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: var(--marketer-muted); font-size: 12px; }
.marketer-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--marketer-border);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}
.marketer-password-card { max-width: 560px; margin: 0 auto; }
.marketer-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 2px; color: #64748b; font-size: 10px; }
.marketer-bottom-nav i { font-size: 19px; }
.marketer-bottom-nav a.is-active { color: var(--marketer-primary); font-weight: 700; }
.marketer-login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: linear-gradient(145deg, #115e59, #0f766e 50%, #14b8a6); }
.marketer-login-card { width: min(100%, 390px); padding: 24px; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 20px 60px rgba(15, 23, 42, .2); }
.marketer-login-logo { display: grid; width: 62px; height: 62px; margin: 0 auto 12px; place-items: center; border-radius: 18px; background: #ccfbf1; color: var(--marketer-primary-dark); font-size: 28px; }
.marketer-login-card h1 { margin: 0; text-align: center; font-size: 22px; }
.marketer-login-card > p { margin: 8px 0 20px; color: var(--marketer-muted); text-align: center; font-size: 13px; }
.marketer-login-error { margin-bottom: 12px; padding: 10px; border-radius: 10px; background: #fee2e2; color: var(--marketer-danger); font-size: 13px; }
@media (min-width: 700px) {
    .marketer-container { padding: 26px 20px 40px; }
    .marketer-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .marketer-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketer-bottom-nav { position: static; width: min(100% - 40px, 940px); margin: 0 auto 20px; border: 1px solid var(--marketer-border); border-radius: 15px; box-shadow: none; }
    body.marketer-app { padding-bottom: 0; }
}

.marketer-login-brand {
    flex-wrap: wrap;
}

/* سفارش‌های پنل بازاریاب */
.marketer-order-quick-action { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.marketer-order-quick-action strong, .marketer-order-quick-action small { display:block; }
.marketer-order-quick-action small { margin-top:5px; color:var(--marketer-muted); font-size:12px; }
.marketer-order-layout { display:grid; gap:14px; }
.marketer-order-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.marketer-order-toolbar strong, .marketer-order-toolbar small { display:block; }
.marketer-order-toolbar small { margin-top:5px; color:var(--marketer-muted); font-size:11px; }
.marketer-order-categories { display:flex; gap:8px; overflow:auto; padding:2px 0 12px; }
.marketer-order-category { flex:0 0 auto; padding:8px 12px; border:1px solid var(--marketer-border); border-radius:999px; background:#fff; color:#475569; font-size:12px; }
.marketer-order-category.is-active { border-color:var(--marketer-primary); background:#ccfbf1; color:var(--marketer-primary-dark); font-weight:700; }
.marketer-order-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.marketer-product-card { overflow:hidden; padding:0; }
.marketer-product-card > img, .marketer-product-placeholder { display:block; width:100%; height:145px; object-fit:cover; background:#f8fafc; }
.marketer-product-placeholder { display:grid; place-items:center; color:#94a3b8; font-size:28px; }
.marketer-product-body { padding:12px; }
.marketer-product-body h3 { margin:0; font-size:14px; }
.marketer-product-body p { min-height:34px; margin:7px 0; color:var(--marketer-muted); font-size:11px; line-height:1.8; }
.marketer-product-meta { display:flex; align-items:center; justify-content:space-between; gap:5px; margin:8px 0; font-size:12px; }
.marketer-product-meta span { color:var(--marketer-primary-dark); font-weight:700; }
.marketer-product-meta small { color:var(--marketer-muted); font-size:10px; }
.marketer-product-add { display:flex; gap:5px; }
.marketer-product-add input { width:68px; min-height:38px; padding:7px; border:1px solid #cbd5e1; border-radius:9px; }
.marketer-product-add .marketer-btn { min-height:38px; flex:1; padding:7px 8px; font-size:11px; }
.marketer-order-cart { align-self:start; }
.marketer-cart-items { display:grid; gap:8px; margin-top:12px; }
.marketer-cart-item { padding:10px; border:1px solid var(--marketer-border); border-radius:11px; }
.marketer-cart-item > div:first-child strong, .marketer-cart-item > div:first-child small { display:block; }
.marketer-cart-item small { margin-top:4px; color:var(--marketer-muted); font-size:11px; }
.marketer-cart-quantity { display:flex; gap:5px; margin-top:8px; }
.marketer-cart-quantity input { width:80px; min-height:36px; padding:6px; border:1px solid #cbd5e1; border-radius:8px; }
.marketer-cart-quantity .marketer-btn { min-height:36px; padding:6px 8px; font-size:11px; }
.marketer-cart-item-bottom { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.marketer-link-danger { border:0; background:transparent; color:var(--marketer-danger); cursor:pointer; font-size:11px; }
.marketer-order-totals { display:grid; grid-template-columns:1fr auto; gap:6px; margin:14px 0; padding-top:10px; border-top:1px solid var(--marketer-border); font-size:12px; }
.marketer-order-totals strong { text-align:left; }
.marketer-order-final-form { margin-top:14px; padding-top:14px; border-top:1px solid var(--marketer-border); }
.marketer-order-submit { margin-top:8px; }
.marketer-order-start-card { max-width:600px; margin:20px auto; text-align:center; }
.marketer-order-start-card h2 { margin-top:0; }
.marketer-order-start-card p { color:var(--marketer-muted); line-height:1.9; }
.marketer-customer-results { display:grid; gap:5px; margin-top:5px; }
.marketer-customer-result { display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:100%; padding:9px 10px; border:1px solid var(--marketer-border); border-radius:9px; background:#fff; cursor:pointer; text-align:right; }
.marketer-customer-result span { color:var(--marketer-muted); font-size:11px; }
.marketer-selected-customer { margin-top:7px; padding:8px 10px; border-radius:9px; background:#ecfdf5; color:#166534; font-size:12px; }
.marketer-selected-customer strong, .marketer-selected-customer span { display:block; }
.marketer-selected-customer span { margin-top:3px; font-size:11px; }
.marketer-order-list-card { border-right:4px solid var(--marketer-primary); }
@media (min-width: 700px) {
    .marketer-order-layout { grid-template-columns:minmax(0,1.6fr) minmax(310px,.9fr); align-items:start; }
    .marketer-order-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 480px) { .marketer-order-quick-action { align-items:stretch; flex-direction:column; } }

.marketer-cart-toggle { position: sticky; top: 72px; z-index: 12; display:flex; align-items:center; gap:8px; margin:0 0 12px auto; padding:10px 14px; border:0; border-radius:999px; background:var(--marketer-primary); color:#fff; box-shadow:0 8px 20px rgba(15,118,110,.22); cursor:pointer; }
.marketer-cart-toggle b { display:grid; min-width:23px; height:23px; place-items:center; border-radius:50%; background:#fff; color:var(--marketer-primary-dark); font-size:11px; }
.marketer-modal[hidden] { display:none !important; }
.marketer-modal { position:fixed; inset:0; z-index:100; overflow:auto; padding:20px 14px; background:rgba(15,23,42,.58); }
.marketer-modal.marketer-order-cart { width:auto; max-width:none; margin:0; border:0; border-radius:0; background:rgba(15,23,42,.58); box-shadow:none; }
.marketer-modal.marketer-order-cart > * { max-width:580px; margin-right:auto; margin-left:auto; }
.marketer-modal.marketer-order-cart > .marketer-modal-close { margin-bottom:8px; }
.marketer-order-cart > .marketer-detail-header, .marketer-order-cart > .marketer-cart-items, .marketer-order-cart > .marketer-order-totals, .marketer-order-cart > .marketer-order-final-form, .marketer-order-cart > .marketer-order-submit, .marketer-order-cart > .marketer-empty, .marketer-order-cart > .marketer-cart-continue { background:#fff; }
.marketer-order-cart > .marketer-detail-header { padding:16px; border-radius:16px 16px 0 0; }
.marketer-order-cart > .marketer-cart-items, .marketer-order-cart > .marketer-order-totals, .marketer-order-cart > .marketer-order-final-form, .marketer-order-cart > .marketer-order-submit, .marketer-order-cart > .marketer-empty, .marketer-order-cart > .marketer-cart-continue { padding-right:16px; padding-left:16px; }
.marketer-order-cart > .marketer-cart-items { padding-top:12px; }
.marketer-order-cart > .marketer-order-totals { margin:0; padding-top:14px; padding-bottom:14px; }
.marketer-order-cart > .marketer-order-final-form { margin-top:0; padding-top:15px; padding-bottom:5px; }
.marketer-order-cart > .marketer-order-submit { padding-top:8px; padding-bottom:16px; border-radius:0 0 16px 16px; }
.marketer-cart-continue { width:calc(100% - 32px); margin:12px 16px 0; padding:12px; border-radius:0; }
.marketer-modal-close { display:block; width:38px; height:38px; margin-right:0; border:0; border-radius:50%; background:#fff; color:#334155; font-size:25px; line-height:1; cursor:pointer; }
.marketer-product-modal { display:flex; align-items:center; justify-content:center; }
.marketer-product-modal-content { display:grid; width:min(100%,720px); grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); overflow:hidden; border-radius:18px; background:#fff; box-shadow:0 25px 70px rgba(15,23,42,.25); }
.marketer-product-modal-content > img { width:100%; height:100%; min-height:290px; object-fit:cover; background:#f8fafc; }
.marketer-product-modal-info { padding:24px; }
.marketer-product-modal-info h2 { margin:8px 0; font-size:20px; }
.marketer-product-modal-info p { min-height:100px; color:var(--marketer-muted); line-height:2; white-space:pre-line; }
.marketer-product-modal-meta { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-top:1px solid var(--marketer-border); border-bottom:1px solid var(--marketer-border); color:var(--marketer-primary-dark); font-size:13px; font-weight:700; }
.marketer-quantity-picker { display:flex; align-items:center; gap:14px; margin:14px 0; }
.marketer-quantity-picker button { width:38px; height:38px; border:0; border-radius:10px; background:#ccfbf1; color:var(--marketer-primary-dark); font-size:22px; cursor:pointer; }
.marketer-quantity-picker output { min-width:35px; text-align:center; font-size:18px; font-weight:700; }
.marketer-product-id { margin-bottom:5px; color:var(--marketer-muted); font-size:10px; }
.marketer-product-card { position:relative; transition:transform .18s ease, box-shadow .18s ease; cursor:pointer; }
.marketer-product-card:hover { transform:translateY(-3px); box-shadow:0 12px 25px rgba(15,23,42,.11); }
.marketer-product-card > img, .marketer-product-placeholder { height:155px; }
.marketer-product-body h3 { margin:5px 0 0; font-size:14px; }
.marketer-product-actions { display:flex; gap:6px; }
.marketer-product-actions .marketer-product-add { flex:1; }
.marketer-product-actions .marketer-btn { min-height:38px; padding:7px 9px; font-size:11px; }
.marketer-product-details { flex:0 0 auto; }
.marketer-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:18px 0 4px; }
.marketer-pagination a { display:grid; width:36px; height:36px; place-items:center; border:1px solid var(--marketer-border); border-radius:10px; background:#fff; color:#475569; font-size:12px; }
.marketer-pagination a.is-active { border-color:var(--marketer-primary); background:var(--marketer-primary); color:#fff; font-weight:700; }
body.marketer-modal-open { overflow:hidden; }
.marketer-order-layout { display:block; }
.marketer-order-toolbar { padding:15px 17px; border:1px solid #e5e7eb; background:linear-gradient(135deg,#ffffff,#f8fffe); box-shadow:0 8px 24px rgba(15,23,42,.05); }
.marketer-order-categories { margin:0 0 14px; padding:4px 2px 10px; scrollbar-width:thin; }
.marketer-category-group { position:relative; flex:0 0 auto; }
.marketer-category-group > .marketer-order-category { display:flex; align-items:center; gap:7px; }
.marketer-category-chevron { color:#94a3b8; font-size:15px; line-height:1; }
.marketer-subcategories { display:none; position:absolute; top:calc(100% + 6px); right:0; z-index:15; min-width:180px; padding:6px; border:1px solid #dbe4ea; border-radius:12px; background:#fff; box-shadow:0 12px 28px rgba(15,23,42,.12); }
.marketer-subcategories.is-open { display:grid; gap:3px; }
.marketer-subcategory { display:block; padding:8px 10px; border-radius:8px; color:#475569; font-size:11px; white-space:nowrap; }
.marketer-subcategory:hover, .marketer-subcategory.is-active { background:#ecfdf5; color:#0f766e; }
.marketer-order-category { border-color:#dbe4ea; background:#fff; transition:all .18s ease; }
.marketer-order-category:hover { border-color:#99f6e4; background:#f0fdfa; }
.marketer-order-products { display:flex; flex-direction:column; gap:9px; }
.marketer-product-card { display:flex; align-items:center; gap:14px; min-height:112px; padding:10px; border:1px solid #e4e9ee; border-radius:15px; background:#fff; box-shadow:0 4px 14px rgba(15,23,42,.045); }
.marketer-product-card > img, .marketer-product-card > .marketer-product-placeholder { width:92px; height:92px; flex:0 0 92px; border-radius:12px; object-fit:cover; }
.marketer-product-placeholder { background:linear-gradient(145deg,#eefbf9,#e2e8f0); }
.marketer-product-body { min-width:0; flex:1; padding:1px 3px; }
.marketer-product-id { color:#94a3b8; font-size:10px; letter-spacing:.1px; }
.marketer-product-id strong { color:#64748b; font-weight:700; }
.marketer-product-body h3 { margin:4px 0 7px; overflow:hidden; color:#172033; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.marketer-product-meta { justify-content:flex-start; gap:18px; margin:0 0 9px; }
.marketer-product-meta span { color:#0f766e; font-size:12px; }
.marketer-product-meta small { color:#64748b; font-size:11px; }
.marketer-product-actions { display:flex; gap:7px; }
.marketer-product-actions .marketer-btn { min-height:35px; border-radius:9px; box-shadow:none; font-size:11px; }
.marketer-product-actions .marketer-product-add { flex:0 0 auto; }
.marketer-product-actions .marketer-product-add .marketer-btn-primary { min-width:118px; }
.marketer-product-details { background:#f1f5f9; color:#475569; }
.marketer-product-card:hover { transform:none; border-color:#99f6e4; box-shadow:0 9px 22px rgba(15,118,110,.10); }
.marketer-order-products.is-loading { opacity:.5; pointer-events:none; }
.marketer-pagination { margin:16px 0 0; }
.marketer-pagination a { width:34px; height:34px; border-radius:9px; }
.marketer-cart-toggle { top:68px; margin-bottom:14px; }
.marketer-modal-close { position:sticky; top:0; z-index:2; margin-right:auto; box-shadow:0 3px 12px rgba(15,23,42,.12); }
.marketer-product-modal .marketer-modal-close { position:absolute; top:24px; right:24px; margin:0; }
.marketer-product-modal-content { position:relative; }
.marketer-cart-item { border-color:#e5e7eb; background:#fbfdfd; }
.marketer-cart-item-bottom strong { color:#0f766e; }
@media (max-width:560px) {
    .marketer-subcategories { position:fixed; top:auto; right:14px; left:14px; bottom:80px; min-width:0; max-height:45vh; overflow:auto; }
    .marketer-product-card { align-items:flex-start; gap:10px; min-height:0; padding:9px; }
    .marketer-product-card > img, .marketer-product-card > .marketer-product-placeholder { width:78px; height:78px; flex-basis:78px; }
    .marketer-product-body h3 { font-size:13px; }
    .marketer-product-meta { flex-wrap:wrap; gap:5px 12px; margin-bottom:8px; }
    .marketer-product-actions .marketer-product-add .marketer-btn-primary { min-width:0; }
    .marketer-product-actions .marketer-btn { padding:7px 9px; }
}
@media (max-width:600px) {
    .marketer-product-modal-content { display:block; max-height:calc(100vh - 40px); overflow:auto; }
    .marketer-product-modal-content > img { height:210px; min-height:0; }
    .marketer-product-modal-info { padding:18px; }
}

/* سفارش کالا: جست‌وجو، دسته‌بندی و مودال نهایی */
.marketer-product-search {
    display: grid;
    gap: 7px;
    margin: 0 0 12px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}
.marketer-product-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: #172033;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.marketer-product-search input:focus {
    border-color: #5eead4;
    box-shadow: 0 0 0 4px rgba(20,184,166,.11);
}
.marketer-order-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    margin-bottom: 0;
    padding: 0;
}
.marketer-order-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    transition: .18s ease;
}
.marketer-order-category:hover,
.marketer-order-category.is-active {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #0f766e;
}
.marketer-category-chevron { color: #0f766e; font-size: 15px; line-height: 1; }
.marketer-subcategory-panel {
    display: grid;
    gap: 9px;
    margin: 10px 0 15px;
    padding: 11px;
    border: 1px solid #d5eee9;
    border-radius: 13px;
    background: linear-gradient(135deg, #f0fdfa, #fbfffe);
}
.marketer-subcategory-panel[hidden],
.marketer-subcategory-list[hidden] { display: none !important; }
.marketer-subcategory-heading { color: #0f766e; font-size: 11px; font-weight: 800; }
.marketer-subcategory-list { display: flex; flex-wrap: wrap; gap: 6px; }
.marketer-subcategory {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #d8e7e5;
    border-radius: 8px;
    background: #fff;
    color: #52616f;
    font-size: 10px;
    line-height: 1.4;
}
.marketer-subcategory:hover,
.marketer-subcategory.is-active { border-color: #14b8a6; background: #ccfbf1; color: #115e59; }
.marketer-product-modal { align-items: center; justify-content: center; padding: 16px; }
.marketer-product-modal > .marketer-modal-close {
    position: absolute;
    top: 14px;
    right: max(14px, calc((100vw - min(720px, 100vw - 28px)) / 2));
    z-index: 20;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    box-shadow: 0 6px 18px rgba(15,23,42,.18);
}
.marketer-product-modal-content {
    position: relative;
    width: min(100%, 720px);
    grid-template-columns: 280px minmax(0, 1fr);
    border: 1px solid rgba(255,255,255,.8);
}
.marketer-product-modal-content > img {
    width: 280px;
    min-height: 330px;
    object-fit: contain;
    background: linear-gradient(145deg, #f0fdfa, #f8fafc);
}
.marketer-product-modal-info { padding: 28px 25px 22px; }
.marketer-product-modal-info h2 { color: #172033; line-height: 1.7; }
.marketer-product-modal-info p { max-height: 170px; overflow: auto; margin: 15px 0; padding-left: 3px; }
.marketer-quantity-picker button { border: 1px solid #99f6e4; background: #ecfdf5; }
@media (max-width: 600px) {
    .marketer-product-modal { align-items: center; justify-content: center; padding: 16px 10px; }
    .marketer-product-modal > .marketer-modal-close { top: 10px; right: 10px; }
    .marketer-product-modal-content { width: 100%; max-height: calc(100vh - 64px); }
    .marketer-product-modal-content > img { width: 100%; height: 220px; min-height: 0; object-fit: contain; }
    .marketer-product-modal-info { padding: 17px; }
}

.marketer-upload {
    overflow: hidden;
    border: 1px dashed #b8cbd8;
    border-radius: 14px;
    background: #f8fbff;
}

.marketer-upload-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    margin: 0 !important;
    padding: 15px;
    color: var(--marketer-primary-dark) !important;
    cursor: pointer;
}

.marketer-upload-trigger i {
    font-size: 22px;
}

.marketer-file-input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
}

.marketer-upload-hint {
    display: block;
    margin-top: 7px;
    color: var(--marketer-muted);
    font-size: 11px;
    line-height: 1.8;
}

.marketer-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-top: 1px solid var(--marketer-border);
    background: #fff;
}

.marketer-upload-preview[hidden] {
    display: none;
}

.marketer-upload-preview img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 10px;
    background: #eaf2f7;
    object-fit: cover;
}

.marketer-upload-preview-info {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.marketer-upload-preview-info > span {
    min-width: 0;
    overflow: hidden;
    color: var(--marketer-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketer-upload-preview-info .marketer-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
}

.marketer-shop-image {
    margin-top: 14px;
    overflow: hidden;
    border-radius: 14px;
    background: #eaf2f7;
}

.marketer-shop-image img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.marketer-detail-note {
    margin-top: 10px;
}

@media (max-width: 480px) {
    .marketer-upload-preview-info {
        align-items: flex-start;
        flex-direction: column;
    }
}

.marketer-login-page {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-family: estedadFa, Tahoma, sans-serif;
}
.marketer-login-glow {
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    filter: blur(2px);
}
.marketer-login-glow-one { top: -110px; right: -80px; }
.marketer-login-glow-two { bottom: -130px; left: 0px; width: 340px; height: 340px; background: rgba(129, 212, 250, .22); }
.marketer-login-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 420px);
    padding: 34px 30px 24px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 80px rgba(1, 87, 155, .28), 0 8px 20px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
}
.marketer-login-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #01579b, #03a9f4, #81d4fa);
    content: "";
}
.marketer-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--marketer-primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    direction: ltr;
}
.marketer-login-logo {
    width: 58px;
    height: 58px;
    margin: 0;
    border: 1px solid #b3e5fc;
    border-radius: 18px;
    background: linear-gradient(145deg, #e1f5fe, #b3e5fc);
    box-shadow: 0 8px 18px rgba(3, 169, 244, .18);
}
.marketer-login-card h1 { font-size: 25px; color: #12344d; }
.marketer-login-card > p { margin-bottom: 24px; font-size: 13px; }
.marketer-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.marketer-login-input-wrap > i {
    position: absolute;
    right: 13px;
    z-index: 1;
    color: #78909c;
    pointer-events: none;
}
.marketer-login-input-wrap input {
    min-height: 50px;
    padding-right: 42px;
    border-radius: 13px;
    background: #f8fcff;
}
.marketer-login-input-wrap input:focus { background: #fff; }
.marketer-login-input-wrap input.is-invalid {
    border-color: #ef5350;
    box-shadow: 0 0 0 3px rgba(239, 83, 80, .12);
}
.marketer-login-password-toggle {
    position: absolute;
    left: 7px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #78909c;
    cursor: pointer;
}
.marketer-login-field-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: #d32f2f;
    font-size: 11px;
}
.marketer-login-card .marketer-btn-primary {
    min-height: 50px;
    margin-top: 5px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0288d1, #03a9f4);
    box-shadow: 0 10px 20px rgba(3, 169, 244, .22);
    font-weight: 700;
}
.marketer-login-card .marketer-btn-primary:hover {
    background: linear-gradient(135deg, #0277bd, #0288d1);
}
.marketer-login-error {
    border: 1px solid #ffcdd2;
    background: #fff5f5;
    text-align: center;
}
.marketer-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: #90a4ae;
    font-size: 11px;
}
@media (max-width: 430px) {
    .marketer-login-card { padding: 30px 20px 22px; }
}
:root {
    --marketer-primary: #03a9f4;
    --marketer-primary-dark: #0288d1;
    --marketer-accent: #f59e0b;
    --marketer-bg: #f4f8fb;
    --marketer-card: #ffffff;
    --marketer-text: #263238;
    --marketer-muted: #607d8b;
    --marketer-border: #dce6ec;
    --marketer-danger: #c62828;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.marketer-app {
    background: var(--marketer-bg);
    color: var(--marketer-text);
    font-family: estedadFa, Tahoma, sans-serif;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.marketer-topbar {
    position: sticky;
    top: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 10px 16px;
    background: var(--marketer-primary);
    color: #fff;
    box-shadow: 0 3px 12px rgba(3, 169, 244, .25);
}
.marketer-brand, .marketer-user-menu, .marketer-user-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.marketer-brand { font-weight: 700; }
.marketer-brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
}
.marketer-user-menu { font-size: 12px; }
.marketer-user-menu a { font-size: 18px; }
.marketer-main { min-height: calc(100vh - 60px); }
.marketer-container { width: min(100%, 980px); margin: 0 auto; padding: 18px 14px 28px; }
.marketer-page-heading { display: flex; justify-content: space-between; margin-bottom: 16px; }
.marketer-page-heading h1 { margin: 0; font-size: 22px; }
.marketer-page-heading p { margin: 7px 0 0; color: var(--marketer-muted); font-size: 12px; }
.marketer-grid { display: grid; gap: 12px; }
.marketer-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.marketer-card {
    background: var(--marketer-card);
    border: 1px solid var(--marketer-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 5px 18px rgba(38, 50, 56, .05);
}
.marketer-stat { display: flex; align-items: center; gap: 12px; }
.marketer-stat-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #e1f5fe; color: var(--marketer-primary-dark); font-size: 20px; }
.marketer-stat strong { display: block; font-size: 23px; }
.marketer-stat span { color: var(--marketer-muted); font-size: 12px; }
.marketer-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.marketer-section-title h2 { margin: 0; font-size: 17px; }
.marketer-section-title a { color: var(--marketer-primary-dark); font-size: 12px; }
.marketer-list { display: grid; gap: 10px; }
.marketer-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; border: 1px solid var(--marketer-border); border-radius: 13px; background: #fff; }
.marketer-list-item-main { min-width: 0; }
.marketer-list-item-main strong, .marketer-list-item-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketer-list-item-main span { margin-top: 5px; color: var(--marketer-muted); font-size: 12px; }
.marketer-list-item-side { flex: 0 0 auto; text-align: left; }
.marketer-list-item-side small { display: block; color: var(--marketer-muted); font-size: 11px; }
.marketer-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e1f5fe; color: #0277bd; font-size: 11px; }
.marketer-badge-success { background: #dcfce7; color: #166534; }
.marketer-badge-warning { background: #fef3c7; color: #92400e; }
.marketer-badge-danger { background: #fee2e2; color: #991b1b; }
.marketer-empty { padding: 24px 12px; border: 1px dashed var(--marketer-border); border-radius: 13px; color: var(--marketer-muted); text-align: center; }
.marketer-search { display: flex; gap: 8px; margin-bottom: 12px; }
.marketer-search input, .marketer-form input, .marketer-form select, .marketer-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 45px;
    border: 1px solid #c5d5df;
    border-radius: 11px;
    background: #fff;
    color: var(--marketer-text);
}
.marketer-form input:focus, .marketer-form select:focus, .marketer-form textarea:focus {
    border-color: var(--marketer-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(3, 169, 244, .12);
}
.marketer-form textarea { min-height: 90px; resize: vertical; }
.marketer-form label { display: block; margin-bottom: 6px; color: #455a64; font-size: 13px; font-weight: 700; }
.marketer-form-group { margin-bottom: 13px; }
.marketer-form-grid { display: grid; gap: 12px; }
.marketer-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; border: 0; border-radius: 11px; cursor: pointer; }
.marketer-btn-primary { background: var(--marketer-primary); color: #fff; }
.marketer-btn-primary:hover { background: var(--marketer-primary-dark); }
.marketer-btn-secondary { background: #e5edf2; color: #37474f; }
.marketer-btn-success { background: #16a34a; color: #fff; }
.marketer-btn-danger { background: #dc2626; color: #fff; }
.marketer-btn-block { width: 100%; }
.marketer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.marketer-alert { margin-bottom: 13px; padding: 11px 12px; border-radius: 11px; font-size: 13px; }
.marketer-alert-success { background: #dcfce7; color: #166534; }
.marketer-alert-danger { background: #fee2e2; color: var(--marketer-danger); }
.marketer-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.marketer-detail-header h2 { margin: 0; font-size: 19px; }
.marketer-detail-header p { margin: 6px 0 0; color: var(--marketer-muted); font-size: 13px; direction: ltr; text-align: right; }
.marketer-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.marketer-info-item { padding: 11px; border-radius: 11px; background: #f5f9fb; }
.marketer-info-item small, .marketer-info-item strong { display: block; }
.marketer-info-item small { color: var(--marketer-muted); margin-bottom: 5px; }
.marketer-info-item strong { overflow-wrap: anywhere; }
.marketer-followup-card { border-right: 4px solid var(--marketer-accent); }
.marketer-followup-card.is-done { border-right-color: #16a34a; }
.marketer-followup-card.is-cancelled { border-right-color: #dc2626; }
.marketer-followup-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: var(--marketer-muted); font-size: 12px; }
.marketer-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--marketer-border);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -4px 16px rgba(38, 50, 56, .08);
}
.marketer-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 2px; color: #607d8b; font-size: 10px; }
.marketer-bottom-nav i { font-size: 19px; }
.marketer-bottom-nav a.is-active { color: var(--marketer-primary-dark); font-weight: 700; }
.marketer-login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: linear-gradient(145deg, #0277bd, #03a9f4 50%, #4fc3f7); }
.marketer-login-card { width: min(100%, 390px); padding: 24px; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 20px 60px rgba(15, 23, 42, .2); }
.marketer-login-logo { display: grid; width: 62px; height: 62px; margin: 0 auto 12px; place-items: center; border-radius: 18px; background: #e1f5fe; color: var(--marketer-primary-dark); font-size: 28px; }
.marketer-login-card h1 { margin: 0; text-align: center; font-size: 22px; }
.marketer-login-card > p { margin: 8px 0 20px; color: var(--marketer-muted); text-align: center; font-size: 13px; }
.marketer-login-error { margin-bottom: 12px; padding: 10px; border-radius: 10px; background: #fee2e2; color: var(--marketer-danger); font-size: 13px; }
@media (min-width: 700px) {
    .marketer-container { padding: 26px 20px 40px; }
    .marketer-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .marketer-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketer-bottom-nav { position: static; width: min(100% - 40px, 940px); margin: 0 auto 20px; border: 1px solid var(--marketer-border); border-radius: 15px; box-shadow: none; }
    body.marketer-app { padding-bottom: 0; }
}

.marketer-login-logo {
    display: block;
    width: 176px;
    height: auto;
    margin: 0;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 15px;
    background: linear-gradient(135deg, #0b3b91, #1685f7);
    box-shadow: 0 9px 20px rgba(25, 118, 243, .2);
    object-fit: contain;
}

.marketer-profile-back {
    margin-bottom: 12px;
}

.marketer-profile-hero {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255,255,255,.22), transparent 32%),
        linear-gradient(135deg, #075985 0%, #0284c7 48%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(2, 132, 199, .22);
}

.marketer-profile-hero::after {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(255,255,255,.09);
    border-radius: 50%;
    content: '';
}

.marketer-profile-hero-main,
.marketer-profile-tool-heading > div,
.marketer-profile-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.marketer-profile-hero-main {
    position: relative;
    z-index: 1;
}

.marketer-profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.marketer-profile-avatar {
    display: block;
    width: 86px;
    height: 86px;
    border: 4px solid rgba(255,255,255,.88);
    border-radius: 24px;
    background: rgba(255,255,255,.16);
    box-shadow: 0 10px 25px rgba(2, 40, 70, .18);
    object-fit: cover;
}

.marketer-profile-avatar-placeholder {
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.82);
    font-size: 32px;
}

.marketer-profile-avatar-status {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 3px solid #0284c7;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
}

.marketer-profile-hero-copy {
    min-width: 0;
}

.marketer-profile-kicker {
    margin-bottom: 5px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
}

.marketer-profile-hero h2 {
    margin: 0;
    font-size: 23px;
}

.marketer-profile-hero p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.marketer-profile-hero p span {
    padding: 0 5px;
    opacity: .65;
}

.marketer-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.marketer-profile-hero .marketer-badge {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.16);
    color: #fff;
}

.marketer-profile-hero .marketer-badge-success {
    background: rgba(34,197,94,.24);
    color: #ecfdf5;
}

.marketer-profile-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.marketer-profile-actions .marketer-btn {
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 7px 16px rgba(2, 40, 70, .14);
}

.marketer-profile-actions .marketer-btn-primary {
    background: #fff;
    color: #0369a1;
}

.marketer-btn-location {
    background: rgba(15, 23, 42, .2);
    color: #fff;
}

.marketer-profile-tools-grid {
    display: grid;
    gap: 13px;
    margin-top: 13px;
}

.marketer-profile-tool-card {
    scroll-margin-top: 78px;
    padding: 17px;
}

.marketer-profile-tool-heading {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-left: 24px;
    cursor: pointer;
    list-style: none;
}

.marketer-profile-tool-heading::-webkit-details-marker {
    display: none;
}

.marketer-profile-tool-heading::after {
    position: absolute;
    top: 3px;
    left: 0;
    color: #94a3b8;
    content: '⌄';
    font-size: 19px;
    line-height: 1;
    transition: transform .2s ease;
}

.marketer-profile-tool-card[open] > .marketer-profile-tool-heading::after {
    transform: rotate(180deg);
}

.marketer-profile-tool-card:not([open]) > .marketer-profile-tool-heading {
    margin-bottom: 0;
}

.marketer-profile-tool-content {
    padding-top: 0;
}

.marketer-profile-tool-heading > div {
    align-items: flex-start;
}

.marketer-profile-tool-heading h3,
.marketer-profile-section-heading h3 {
    margin: 0;
    font-size: 16px;
}

.marketer-profile-tool-heading p,
.marketer-profile-section-heading p {
    margin: 5px 0 0;
    color: var(--marketer-muted);
    font-size: 11px;
    line-height: 1.8;
}

.marketer-profile-tool-icon,
.marketer-profile-section-heading > span {
    display: grid;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 13px;
    font-size: 18px;
}

.marketer-profile-tool-icon-image,
.marketer-profile-section-heading > span {
    background: #e0f2fe;
    color: #0369a1;
}

.marketer-profile-tool-icon-location {
    background: #dcfce7;
    color: #15803d;
}

.marketer-profile-tool-label {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
}

.marketer-profile-image-preview {
    position: relative;
    display: grid;
    min-height: 150px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fbff, #eff6ff);
}

.marketer-profile-image-preview img {
    display: block;
    width: 100%;
    max-height: 245px;
    object-fit: contain;
}

.marketer-profile-image-preview > div {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 150px;
    color: #94a3b8;
    font-size: 12px;
}

.marketer-profile-image-preview > div i {
    color: #93c5fd;
    font-size: 27px;
}

.marketer-profile-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.marketer-profile-tool-actions .marketer-btn {
    flex: 1 1 auto;
    min-height: 42px;
    padding-inline: 11px;
    font-size: 12px;
}

.marketer-profile-tool-actions .marketer-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.marketer-profile-file-name {
    min-height: 18px;
    margin: 9px 2px 0;
    color: var(--marketer-muted);
    font-size: 11px;
}

.marketer-profile-tool-alert {
    display: none;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.8;
}

.marketer-profile-tool-alert.is-visible {
    display: block;
}

.marketer-profile-tool-alert.is-success {
    background: #ecfdf5;
    color: #166534;
}

.marketer-profile-tool-alert.is-error {
    background: #fff1f2;
    color: #be123c;
}

.marketer-profile-map {
    width: 100%;
    height: 285px;
    min-height: 285px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #e2e8f0;
}

.marketer-profile-map.leaflet-container {
    height: 285px;
    min-height: 285px;
    font-family: estedadFa, Tahoma, sans-serif;
}

.marketer-profile-location-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.marketer-profile-location-fields label {
    display: block;
    color: var(--marketer-muted);
    font-size: 10px;
}

.marketer-profile-location-fields input {
    width: 100%;
    min-height: 39px;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
}

.marketer-profile-section-grid {
    display: grid;
    gap: 13px;
    margin-top: 13px;
}

.marketer-profile-data-card {
    padding: 17px;
}

.marketer-profile-section-heading {
    align-items: flex-start;
    margin-bottom: 14px;
}

.marketer-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.marketer-profile-info-grid > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 11px;
    background: #f8fafc;
}

.marketer-profile-info-grid small,
.marketer-profile-info-grid strong {
    display: block;
}

.marketer-profile-info-grid small {
    margin-bottom: 5px;
    color: var(--marketer-muted);
    font-size: 10px;
}

.marketer-profile-info-grid strong {
    overflow-wrap: anywhere;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.8;
}

.marketer-profile-info-wide {
    grid-column: 1 / -1;
}

.marketer-profile-equipment-list {
    margin-top: 14px;
}

.marketer-profile-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.marketer-profile-equipment-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--marketer-border);
    border-radius: 12px;
    background: #f8fafc;
}

.marketer-profile-equipment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--marketer-border);
}

.marketer-profile-equipment-heading > div {
    min-width: 0;
}

.marketer-profile-equipment-heading strong,
.marketer-profile-equipment-heading small {
    display: block;
    overflow-wrap: anywhere;
}

.marketer-profile-equipment-heading small {
    margin-top: 4px;
    color: var(--marketer-muted);
    direction: ltr;
    text-align: right;
    font-size: 11px;
}

.marketer-profile-equipment-heading .marketer-badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.marketer-profile-equipment-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.marketer-profile-equipment-meta > div {
    min-width: 0;
}

.marketer-profile-equipment-meta small,
.marketer-profile-equipment-meta span {
    display: block;
    overflow-wrap: anywhere;
}

.marketer-profile-equipment-meta small {
    color: var(--marketer-muted);
    font-size: 10px;
}

.marketer-profile-equipment-meta span {
    margin-top: 3px;
    color: var(--marketer-text);
    font-size: 11px;
}

.marketer-profile-notes {
    min-height: 90px;
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    line-height: 2;
}

.marketer-equipment-card .marketer-detail-header > div {
    min-width: 0;
}

.marketer-equipment-card .marketer-detail-header strong {
    overflow-wrap: anywhere;
}

.marketer-equipment-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--marketer-border);
}

.marketer-equipment-meta-grid > div {
    min-width: 0;
}

.marketer-equipment-meta-grid small,
.marketer-equipment-meta-grid span {
    display: block;
    overflow-wrap: anywhere;
}

.marketer-equipment-meta-grid small {
    color: var(--marketer-muted);
    font-size: 10px;
}

.marketer-equipment-meta-grid span {
    margin-top: 3px;
    color: var(--marketer-text);
    font-size: 11px;
}

.marketer-profile-meta-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    color: var(--marketer-muted);
    font-size: 10px;
}

.marketer-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.marketer-is-hidden {
    display: none !important;
}

.marketer-create-page {
    display: grid;
    gap: 14px;
}

.marketer-create-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 10%, rgba(255,255,255,.2), transparent 30%),
        linear-gradient(135deg, #075985, #0284c7 55%, #06b6d4);
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 132, 199, .2);
}

.marketer-create-hero::after {
    position: absolute;
    right: -48px;
    bottom: -76px;
    width: 180px;
    height: 180px;
    border: 22px solid rgba(255,255,255,.1);
    border-radius: 50%;
    content: '';
}

.marketer-create-hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 15px;
    background: rgba(255,255,255,.16);
    font-size: 24px;
}

.marketer-create-hero > div:nth-child(2) {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.marketer-create-kicker {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
}

.marketer-create-hero h2 {
    margin: 0;
    font-size: 20px;
}

.marketer-create-hero p {
    max-width: 680px;
    margin: 7px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    line-height: 1.9;
}

.marketer-create-hero-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    white-space: nowrap;
    font-size: 10px;
}

.marketer-create-card {
    padding: 18px;
}

.marketer-create-form {
    display: grid;
    gap: 2px;
}

.marketer-create-section-title {
    align-items: center;
    justify-content: flex-start;
    margin: 12px 0 11px;
    padding: 10px 11px;
    border: 1px solid #e5edf2;
    border-radius: 14px;
    background: linear-gradient(90deg, #f3f9fc, #fff);
}

.marketer-create-section-title:first-of-type {
    margin-top: 0;
}

.marketer-create-section-title > div {
    min-width: 0;
}

.marketer-create-section-title h2 {
    font-size: 15px;
}

.marketer-create-section-title small {
    display: block;
    margin-top: 3px;
    color: var(--marketer-muted);
    font-size: 10px;
    font-weight: 400;
}

.marketer-create-section-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: #e1f5fe;
    color: var(--marketer-primary-dark);
}

.marketer-create-form .marketer-form-group {
    margin-bottom: 12px;
}

.marketer-create-form input,
.marketer-create-form select,
.marketer-create-form textarea {
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.marketer-create-form input:focus,
.marketer-create-form select:focus,
.marketer-create-form textarea:focus {
    background: #fbfeff;
}

.marketer-create-submit {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e8eef2;
}

.marketer-create-submit-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--marketer-muted);
    font-size: 11px;
    line-height: 1.8;
}

.marketer-create-submit-note i {
    color: #16a34a;
}

.marketer-create-form.has-content .marketer-create-submit .marketer-btn-primary {
    box-shadow: 0 9px 20px rgba(3, 169, 244, .2);
}

@media (min-width: 700px) {
    .marketer-create-card {
        padding: 24px;
    }

    .marketer-create-submit {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .marketer-create-submit .marketer-btn {
        width: auto;
        min-width: 250px;
    }
}

@media (max-width: 560px) {
    .marketer-create-hero {
        align-items: flex-start;
    }

    .marketer-create-hero-badge {
        display: none;
    }

    .marketer-create-hero h2 {
        font-size: 17px;
    }

    .marketer-create-card {
        padding: 13px;
    }
}

@media (min-width: 700px) {
    .marketer-profile-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 24px;
    }

    .marketer-profile-actions {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .marketer-profile-tools-grid,
    .marketer-profile-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketer-profile-tool-card:first-child,
    .marketer-profile-location-card,
    .marketer-profile-data-card:last-child {
        grid-column: 1 / -1;
    }
}

/* بازطراحی نهایی رابط ثبت سفارش */
.marketer-order-layout { max-width: 1180px; margin: 0 auto; }
.marketer-order-toolbar { position: relative; overflow: hidden; margin-bottom: 14px; padding: 20px 22px; border: 1px solid #dfe9ed; border-radius: 18px; background: linear-gradient(135deg,#fff,#f3fbfa); box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.marketer-order-toolbar strong { display: block; color: #172033; font-size: 17px; }
.marketer-order-toolbar small { display: block; margin-top: 6px; color: #64748b; line-height: 1.8; }
.marketer-product-search { margin: 0 0 12px; padding: 13px 15px 15px; border: 1px solid #e1e9ed; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.04); }
.marketer-product-search span { color: #334155; font-size: 12px; }
.marketer-product-search input { min-height: 46px; border-radius: 11px; background: #f8fafc; box-shadow: none; }
.marketer-order-categories { flex-wrap: nowrap; gap: 7px; margin: 0 0 10px; padding: 7px; overflow-x: auto; overflow-y: hidden; border: 1px solid #e0e8eb; border-radius: 15px; background: #f8fafc; scrollbar-width: thin; }
.marketer-order-category { min-width: max-content; min-height: 37px; border-color: transparent; border-radius: 10px; background: transparent; color: #64748b; font-size: 11px; }
.marketer-order-category:hover { background: #e6f7f4; color: #0f766e; }
.marketer-order-category.is-active { border-color: #0f766e; background: #0f766e; color: #fff; box-shadow: 0 5px 12px rgba(15,118,110,.18); }
.marketer-order-category.is-active .marketer-category-chevron { color: #ccfbf1; }
.marketer-subcategory-panel { margin: 0 0 15px; padding: 13px 14px; border: 1px solid #ccebe6; border-radius: 15px; background: #f0fdfa; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.marketer-subcategory-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #115e59; font-size: 11px; }
.marketer-subcategory-heading::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #14b8a6; }
.marketer-subcategory-list { gap: 7px; }
.marketer-subcategory { min-height: 34px; padding: 7px 11px; border-color: #cfe5e2; border-radius: 9px; background: rgba(255,255,255,.85); color: #42616a; }
.marketer-subcategory.is-active { border-color: #0f766e; background: #0f766e; color: #fff; }
.marketer-order-products { display: grid; grid-template-columns: 1fr; gap: 10px; }
.marketer-product-card { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 14px; min-height: 116px; padding: 10px; border: 1px solid #e2e8ed; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.045); }
.marketer-product-card > img, .marketer-product-card > .marketer-product-placeholder { width: 96px; height: 96px; border-radius: 13px; object-fit: cover; }
.marketer-product-body { padding: 2px 0; }
.marketer-product-id { margin-bottom: 2px; color: #94a3b8; font-size: 10px; }
.marketer-product-body h3 { margin: 4px 0 7px; color: #172033; font-size: 14px; line-height: 1.7; white-space: normal; }
.marketer-product-meta { justify-content: flex-start; gap: 16px; margin: 0 0 10px; }
.marketer-product-meta span { color: #0f766e; font-size: 12px; }
.marketer-product-meta small { color: #64748b; font-size: 11px; }
.marketer-product-actions { display: flex; gap: 0; }
.marketer-product-add { width: 100%; }
.marketer-product-actions .marketer-btn { width: 100%; min-height: 38px; border-radius: 10px; font-size: 11px; }
.marketer-product-card:hover { transform: translateY(-1px); border-color: #8bded3; box-shadow: 0 10px 24px rgba(15,118,110,.10); }
.marketer-product-card:active { transform: translateY(0); }
.marketer-product-card:has(.marketer-product-add button:disabled) { cursor: not-allowed; opacity: .72; }
.marketer-product-card:has(.marketer-product-add button:disabled):hover { transform: none; box-shadow: 0 5px 16px rgba(15,23,42,.045); }
.marketer-alert[data-marketer-alert] { position: fixed; right: 20px; bottom: 22px; z-index: 500; width: min(390px,calc(100vw - 40px)); margin: 0; padding: 14px 17px; border: 1px solid rgba(255,255,255,.72); border-radius: 14px; box-shadow: 0 14px 35px rgba(15,23,42,.20); font-size: 12px; line-height: 1.9; animation: marketer-order-toast-in .22s ease-out; }
.marketer-alert[data-marketer-alert].marketer-alert-success { background: #ecfdf5; color: #166534; }
.marketer-alert[data-marketer-alert].marketer-alert-danger { background: #fff1f2; color: #be123c; }
@keyframes marketer-order-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.marketer-cart-modal { display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15,23,42,.64); }
.marketer-cart-modal-panel { position: relative; width: min(100%,650px); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: #fff; box-shadow: 0 28px 75px rgba(15,23,42,.30); scrollbar-width: thin; }
.marketer-cart-modal .marketer-modal-close { position: absolute; top: 14px; left: 14px; z-index: 5; display: grid; place-items: center; width: 37px; height: 37px; margin: 0; border: 1px solid #dbe4ea; background: #fff; color: #475569; box-shadow: 0 5px 15px rgba(15,23,42,.10); }
.marketer-cart-modal .marketer-detail-header { padding: 23px 24px 18px; border-bottom: 1px solid #e9eef1; background: linear-gradient(135deg,#fff,#f0fdfa); }
.marketer-cart-modal .marketer-detail-header h2 { color: #172033; font-size: 18px; }
.marketer-cart-modal .marketer-cart-items { display: grid; gap: 9px; margin: 0; padding: 16px 20px 4px; }
.marketer-cart-modal .marketer-cart-item { padding: 13px; border: 1px solid #e3eaed; border-radius: 14px; background: #fbfdfd; }
.marketer-cart-modal .marketer-cart-item > div:first-child strong { display: block; padding-left: 40px; color: #172033; line-height: 1.8; }
.marketer-cart-modal .marketer-cart-item > div:first-child small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; }
.marketer-cart-modal .marketer-cart-quantity { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.marketer-cart-modal .marketer-cart-quantity input { width: 78px; min-height: 38px; text-align: center; font-weight: 700; }
.marketer-cart-modal .marketer-cart-quantity .marketer-btn { min-height: 38px; border-radius: 9px; }
.marketer-cart-modal .marketer-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed #dbe4ea; }
.marketer-cart-modal .marketer-cart-item-bottom strong { color: #0f766e; }
.marketer-cart-modal .marketer-order-totals { grid-template-columns: 1fr auto; margin: 14px 20px 0; padding: 14px 0 0; border-top: 1px solid #e6edf0; }
.marketer-cart-modal .marketer-order-final-form { margin: 16px 20px 0; padding: 17px 0 0; border-top: 1px solid #e6edf0; }
.marketer-cart-modal .marketer-order-submit { margin: 12px 20px 20px; }
.marketer-cart-modal .marketer-cart-continue { width: calc(100% - 40px); margin: 15px 20px 0; border-radius: 11px; }
.marketer-cart-modal .marketer-empty { margin: 20px; padding: 28px 18px; border: 1px dashed #cbd5e1; border-radius: 13px; background: #f8fafc; text-align: center; }
.marketer-cart-modal .marketer-form-group label { color: #334155; font-weight: 700; }
.marketer-cart-modal .marketer-order-final-form textarea { min-height: 88px; }
@media (min-width: 980px) { .marketer-order-products { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
    .marketer-order-toolbar { padding: 16px; }
    .marketer-product-card { grid-template-columns: 76px minmax(0,1fr); gap: 11px; min-height: 98px; padding: 8px; border-radius: 14px; }
    .marketer-product-card > img, .marketer-product-card > .marketer-product-placeholder { width: 76px; height: 76px; border-radius: 11px; }
    .marketer-product-body h3 { margin-top: 3px; font-size: 12px; }
    .marketer-product-meta { flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
    .marketer-product-actions .marketer-btn { min-height: 35px; }
    .marketer-cart-modal { padding: 10px; }
    .marketer-cart-modal-panel { max-height: calc(100vh - 20px); border-radius: 19px; }
    .marketer-cart-modal .marketer-detail-header { padding: 19px 17px 15px; }
    .marketer-cart-modal .marketer-cart-items { padding: 12px 12px 3px; }
    .marketer-cart-modal .marketer-order-totals { margin-right: 12px; margin-left: 12px; }
    .marketer-cart-modal .marketer-order-final-form { margin-right: 12px; margin-left: 12px; }
    .marketer-cart-modal .marketer-order-submit { margin-right: 12px; margin-left: 12px; }
    .marketer-cart-modal .marketer-cart-continue { width: calc(100% - 24px); margin-right: 12px; margin-left: 12px; }
    .marketer-alert[data-marketer-alert] { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

/* سفارش: فشرده‌سازی هدر و تاکید بصری روی سبد خرید */
body.marketer-app:has(.marketer-order-layout) .marketer-container { padding-top: 8px; }
body.marketer-app:has(.marketer-order-layout) .marketer-page-heading { margin-bottom: 8px; }
body.marketer-app:has(.marketer-order-layout) .marketer-page-heading h1 { font-size: 18px; }
body.marketer-app:has(.marketer-order-layout) .marketer-page-heading p { margin-top: 2px; font-size: 11px; }
.marketer-cart-toggle { position: fixed; top: auto; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 35; min-height: 50px; margin: 0; padding: 9px 13px; border: 2px solid #fff; border-radius: 15px; background: #f59e0b; color: #fff; box-shadow: 0 10px 26px rgba(180,83,9,.30); }
.marketer-cart-toggle:hover { background: #d97706; }
.marketer-cart-toggle i { font-size: 17px; }
.marketer-cart-toggle b { min-width: 25px; height: 25px; background: #fff; color: #b45309; }
.marketer-cart-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin: 16px 20px 20px; padding-top: 15px; border-top: 1px solid #e6edf0; }
.marketer-cart-actions .marketer-btn { min-height: 45px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.marketer-cart-actions .marketer-btn-success { background: #0f766e; box-shadow: 0 7px 16px rgba(15,118,110,.18); }
.marketer-cart-actions .marketer-btn-success:hover { background: #115e59; }
.marketer-cart-actions .marketer-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.marketer-cart-modal .marketer-cart-quantity { justify-content: flex-start; }
.marketer-quantity-step { display: grid; width: 37px; height: 37px; place-items: center; padding: 0; border: 1px solid #99f6e4; border-radius: 10px; background: #ecfdf5; color: #0f766e; cursor: pointer; font-size: 21px; line-height: 1; }
.marketer-quantity-step:hover { background: #ccfbf1; }
.marketer-cart-modal .marketer-cart-quantity input { width: 52px; padding: 6px 3px; border-color: #cbd5e1; background: #fff; }
.marketer-checkout-modal { display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15,23,42,.66); }
.marketer-checkout-panel { position: relative; width: min(100%, 620px); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid rgba(255,255,255,.85); border-radius: 24px; background: #fff; box-shadow: 0 28px 75px rgba(15,23,42,.3); }
.marketer-checkout-panel > .marketer-modal-close { position: absolute; top: 15px; left: 15px; z-index: 2; display: grid; place-items: center; width: 37px; height: 37px; margin: 0; border: 1px solid #dbe4ea; background: #fff; box-shadow: 0 5px 15px rgba(15,23,42,.1); }
.marketer-checkout-header { padding: 23px 24px 18px; border-bottom: 1px solid #e7eef0; background: linear-gradient(135deg,#fff,#f0fdfa); }
.marketer-checkout-kicker { color: #0f766e; font-size: 11px; font-weight: 800; }
.marketer-checkout-header h2 { margin: 4px 0 3px; color: #172033; font-size: 19px; }
.marketer-checkout-header p { margin: 0; color: #64748b; font-size: 11px; }
.marketer-checkout-panel .marketer-order-submit { margin: 0; padding: 20px 24px 22px; }
.marketer-checkout-panel .marketer-form-group:last-of-type { margin-bottom: 15px; }
.marketer-checkout-panel .marketer-form select { appearance: auto; }
.marketer-checkout-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #e6edf0; }
.marketer-checkout-actions .marketer-btn { min-height: 45px; font-size: 12px; font-weight: 700; }
.marketer-checkout-actions .marketer-btn-success { background: #16a34a; box-shadow: 0 7px 16px rgba(22,163,74,.18); }
@media (max-width: 560px) {
    .marketer-cart-toggle { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
    .marketer-cart-actions { margin-right: 12px; margin-left: 12px; }
    .marketer-checkout-modal { padding: 10px; }
    .marketer-checkout-panel { max-height: calc(100vh - 20px); border-radius: 19px; }
    .marketer-checkout-header { padding: 19px 17px 15px; }
    .marketer-checkout-panel .marketer-order-submit { padding: 16px 17px 18px; }
}

/* ناوبار و داشبورد بازاریاب */
.marketer-bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.marketer-bottom-nav a { min-width: 0; white-space: nowrap; }
.marketer-bottom-nav a span { overflow: hidden; text-overflow: ellipsis; }
.marketer-dashboard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 22px; }
.marketer-dashboard-action { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px; border: 1px solid #dbe7ea; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.05); }
.marketer-dashboard-action > i { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; font-size: 20px; }
.marketer-dashboard-action > span { min-width: 0; flex: 1; }
.marketer-dashboard-action strong, .marketer-dashboard-action small { display: block; }
.marketer-dashboard-action strong { color: #172033; font-size: 13px; }
.marketer-dashboard-action small { margin-top: 4px; overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.marketer-dashboard-action b { color: #64748b; font-size: 17px; }
.marketer-dashboard-action-customer > i { background: #dbeafe; color: #2563eb; }
.marketer-dashboard-action-order > i { background: #fef3c7; color: #d97706; }
.marketer-dashboard-action-equipment > i { background: #ccfbf1; color: #0f766e; }
.marketer-dashboard-action-followup > i { background: #ede9fe; color: #6d28d9; }
.marketer-customer-result { position: relative; }
.marketer-customer-result.is-blocked { opacity: .88; }
.marketer-customer-status { display: inline-flex; align-items: center; width: fit-content; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; }
.marketer-customer-status.is-active { color: #087f5b; background: #e6fcf5; }
.marketer-customer-status.is-blocked { color: #b42318; background: #fff1f0; }
.marketer-fixed-field-note { display: block; margin-top: 6px; color: #64748b; font-size: 11px; }
.marketer-form-group input:disabled { cursor: not-allowed; background: #f1f5f9; color: #64748b; }
.marketer-order-toolbar { align-items: center; }
.marketer-order-toolbar-time { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #bce7e1; border-radius: 10px; background: #ecfdf5; color: #0f766e; font-size: 13px; font-weight: 800; direction: ltr; }
.marketer-order-toolbar > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.marketer-order-toolbar > div:first-child > div { min-width: 0; }
.marketer-cart-toggle { bottom: calc(106px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
    .marketer-dashboard-actions { grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
    .marketer-dashboard-action { padding: 12px; }
    .marketer-order-toolbar > div:first-child { gap: 8px; }
    .marketer-order-toolbar-time { flex: 0 0 auto; padding: 6px 9px; font-size: 11px; }
    .marketer-cart-toggle { bottom: calc(106px + env(safe-area-inset-bottom)); }
}

/* داشبورد موبایلی بازاریاب */
body.marketer-page-home {
    --dashboard-ink: #172033;
    --dashboard-muted: #7b8798;
    --dashboard-bg: #f7faff;
    background: var(--dashboard-bg);
}
body.marketer-page-home .marketer-topbar {
    min-height: 58px;
    padding: 9px 17px;
    border-bottom: 1px solid #edf1f7;
    background: rgba(255,255,255,.94);
    color: var(--dashboard-ink);
    box-shadow: 0 4px 18px rgba(52, 75, 112, .06);
    backdrop-filter: blur(14px);
}
body.marketer-page-home .marketer-brand { color: #1967e8; font-size: 12px; }
body.marketer-page-home .marketer-brand-mark { width: 32px; height: 32px; background: #eaf2ff; color: #1967e8; }
body.marketer-page-home .marketer-user-menu > span { display: none; }
body.marketer-page-home .marketer-user-menu a { color: #7c8798; font-size: 17px; }
body.marketer-page-home .marketer-main { min-height: calc(100vh - 58px); }
body.marketer-page-home .marketer-container { width: min(100%, 590px); padding: 18px 14px 30px; }
body.marketer-page-home .marketer-page-heading { display: none; }

.marketer-dashboard { color: var(--dashboard-ink); }
.marketer-dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 3px 3px 16px;
}
.marketer-dashboard-welcome-copy { min-width: 0; }
.marketer-dashboard-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #1967e8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}
.marketer-dashboard-welcome h1 { margin: 0; color: #152238; font-size: 21px; font-weight: 800; }
.marketer-dashboard-welcome h1 span { font-size: 18px; }
.marketer-dashboard-welcome p { margin: 7px 0 0; color: var(--dashboard-muted); font-size: 11px; }
.marketer-dashboard-profile { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.marketer-dashboard-profile > img { width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 14px rgba(30, 64, 120, .16); }
.marketer-dashboard-notification { position: relative; display: grid; width: 28px; height: 34px; place-items: center; color: #65738a; font-size: 20px; }
.marketer-dashboard-notification b { position: absolute; top: 4px; right: 3px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #f04f5f; }
.marketer-dashboard-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 0 13px;
    border: 1px solid #edf1f7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(43, 72, 120, .06);
}
.marketer-dashboard-search > i { color: #92a0b5; font-size: 17px; }
.marketer-dashboard-search input { min-width: 0; flex: 1; height: 46px; border: 0; outline: 0; background: transparent; color: var(--dashboard-ink); font-size: 12px; }
.marketer-dashboard-search input::placeholder { color: #a5afbd; }
.marketer-dashboard-search button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 10px; background: #edf4ff; color: #1967e8; cursor: pointer; }
.marketer-dashboard-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.marketer-dashboard-stat { display: flex; align-items: flex-start; gap: 9px; min-height: 119px; padding: 14px 12px; overflow: hidden; border: 1px solid transparent; border-radius: 17px; box-shadow: 0 8px 20px rgba(43, 72, 120, .05); }
.marketer-dashboard-stat-blue { border-color: #d8e9ff; background: linear-gradient(145deg, #eaf4ff, #dcecff); }
.marketer-dashboard-stat-green { border-color: #d4f3e7; background: linear-gradient(145deg, #eafff6, #d9f7eb); }
.marketer-dashboard-stat-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; font-size: 15px; }
.marketer-dashboard-stat-blue .marketer-dashboard-stat-icon { background: #c8ddff; color: #1b67df; }
.marketer-dashboard-stat-green .marketer-dashboard-stat-icon { background: #bfeeda; color: #0fa36d; }
.marketer-dashboard-stat-copy { min-width: 0; }
.marketer-dashboard-stat-copy small, .marketer-dashboard-stat-copy strong, .marketer-dashboard-stat-copy em { display: block; }
.marketer-dashboard-stat-copy small { color: #526780; font-size: 11px; font-weight: 700; }
.marketer-dashboard-stat-copy strong { margin-top: 8px; color: #142744; font-size: 20px; line-height: 1; }
.marketer-dashboard-stat-copy em { margin-top: 11px; color: #188363; font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.marketer-dashboard-stat-blue .marketer-dashboard-stat-copy em { color: #3974bd; }
.marketer-dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; }
.marketer-dashboard-section-heading-spaced { margin-top: 25px; }
.marketer-dashboard-section-heading h2 { margin: 0; color: #172033; font-size: 15px; font-weight: 800; }
.marketer-dashboard-section-heading a { color: #1967e8; font-size: 10px; font-weight: 700; }
.marketer-dashboard-section-heading a i { margin-right: 2px; font-size: 9px; }
.marketer-dashboard-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.marketer-dashboard-quick { display: flex; min-width: 0; align-items: center; flex-direction: column; gap: 6px; padding: 10px 4px 9px; border: 1px solid #eef1f6; border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: 0 6px 16px rgba(43, 72, 120, .035); text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.marketer-dashboard-quick:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(43, 72, 120, .09); }
.marketer-dashboard-quick > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; font-size: 18px; }
.marketer-dashboard-quick strong { color: #28354a; font-size: 10px; white-space: nowrap; }
.marketer-dashboard-quick small { color: #9aa5b4; font-size: 8px; white-space: nowrap; }
.marketer-dashboard-quick-blue > span { background: #e7f0ff; color: #2369de; }
.marketer-dashboard-quick-green > span { background: #e4fbf1; color: #0ca36a; }
.marketer-dashboard-quick-purple > span { background: #f0eaff; color: #8347d4; }
.marketer-dashboard-quick-orange > span { background: #fff4dc; color: #e89a00; }
.marketer-dashboard-followups { display: grid; overflow: hidden; border: 1px solid #edf1f6; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(43, 72, 120, .045); }
.marketer-dashboard-followup { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px 10px; border-bottom: 1px solid #f0f2f6; }
.marketer-dashboard-followup:last-child { border-bottom: 0; }
.marketer-dashboard-followup:hover { background: #fbfdff; }
.marketer-dashboard-followup-avatar { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, #eef3f9, #dfe8f3); color: #7c8ca4; font-size: 18px; }
.marketer-dashboard-followup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.marketer-dashboard-followup-main { min-width: 0; flex: 1; }
.marketer-dashboard-followup-main strong, .marketer-dashboard-followup-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marketer-dashboard-followup-main strong { color: #28354a; font-size: 11px; }
.marketer-dashboard-followup-main small { margin-top: 5px; color: #99a4b3; font-size: 9px; }
.marketer-dashboard-followup-main small i { margin-right: 3px; color: #aab4c0; font-size: 9px; }
.marketer-dashboard-followup-side { display: flex; min-width: 91px; align-items: flex-end; flex-direction: column; gap: 4px; text-align: left; }
.marketer-dashboard-followup-side b { color: #28354a; font-size: 10px; }
.marketer-dashboard-followup-side small { color: #9aa5b4; font-size: 8px; direction: rtl; }
.marketer-dashboard-followup-side em { padding: 3px 7px; border-radius: 999px; background: #e8f2ff; color: #3778d7; font-size: 8px; font-style: normal; white-space: nowrap; }
.marketer-dashboard-empty { display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 28px 15px; text-align: center; }
.marketer-dashboard-empty > i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e7f8ef; color: #19a26a; font-size: 18px; }
.marketer-dashboard-empty strong { color: #38465a; font-size: 12px; }
.marketer-dashboard-empty span { color: #9aa5b4; font-size: 10px; }
.marketer-dashboard-summary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.marketer-dashboard-summary-card { display: flex; align-items: center; gap: 8px; padding: 11px 10px; border: 1px solid #edf1f6; border-radius: 14px; background: #fff; }
.marketer-dashboard-summary-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; background: #f0f4fb; color: #6580ad; font-size: 14px; }
.marketer-dashboard-summary-card span:nth-child(2) { min-width: 0; flex: 1; }
.marketer-dashboard-summary-card small, .marketer-dashboard-summary-card strong { display: block; }
.marketer-dashboard-summary-card small { color: #8e9aab; font-size: 9px; }
.marketer-dashboard-summary-card strong { margin-top: 4px; color: #28354a; font-size: 15px; }
.marketer-dashboard-summary-card > i { color: #9aabba; font-size: 10px; }
@media (min-width: 700px) {
    body.marketer-page-home .marketer-container { padding-top: 28px; }
    .marketer-dashboard-welcome h1 { font-size: 24px; }
    .marketer-dashboard-stat { min-height: 130px; padding: 17px 15px; }
    .marketer-dashboard-quick > span { width: 43px; height: 43px; }
}
@media (max-width: 390px) {
    .marketer-dashboard-quick-actions { gap: 5px; }
    .marketer-dashboard-quick strong { font-size: 9px; }
    .marketer-dashboard-followup-side { min-width: 82px; }
}

/* سیستم طراحی یکپارچه‌ی کل پنل بازاریاب */
:root {
    --marketer-primary: #1967e8;
    --marketer-primary-dark: #1455c5;
    --marketer-accent: #f59e0b;
    --marketer-bg: #f7faff;
    --marketer-card: #ffffff;
    --marketer-text: #172033;
    --marketer-muted: #7b8798;
    --marketer-border: #e7edf5;
    --marketer-danger: #c83d55;
    --marketer-success: #14a56f;
    --marketer-radius: 17px;
    --marketer-shadow: 0 8px 24px rgba(43, 72, 120, .055);
}

body.marketer-app {
    background: var(--marketer-bg);
    color: var(--marketer-text);
    font-family: estedadFa, Tahoma, sans-serif;
}
body.marketer-app .marketer-topbar {
    min-height: 60px;
    padding: 9px max(14px, calc((100vw - 1020px) / 2));
    border-bottom: 1px solid #edf1f7;
    background: rgba(255,255,255,.94);
    color: var(--marketer-text);
    box-shadow: 0 4px 18px rgba(52, 75, 112, .06);
    backdrop-filter: blur(14px);
}
body.marketer-app .marketer-brand { color: #1967e8; font-size: 12px; font-weight: 800; }
body.marketer-app .marketer-brand-mark { width: 35px; height: 35px; border: 1px solid #dce9ff; background: #eff5ff; color: #1967e8; }
body.marketer-app .marketer-brand-mark img { display: block; width: 27px; height: 27px; object-fit: contain; }
body.marketer-app .marketer-user-menu { color: #718096; }
body.marketer-app .marketer-user-menu a { color: #6f7e94; transition: color .18s ease, transform .18s ease; }
body.marketer-app .marketer-user-menu a:hover { color: var(--marketer-primary); transform: translateY(-1px); }
body.marketer-app .marketer-main { min-height: calc(100vh - 60px); }
body.marketer-app .marketer-container { width: min(100%, 920px); padding: 23px 15px 36px; }
body.marketer-page-home .marketer-container { width: min(100%, 590px); }
body.marketer-app .marketer-page-heading { align-items: flex-end; margin: 0 2px 17px; padding: 0 2px 4px; }
body.marketer-app .marketer-page-heading h1 { color: #172033; font-size: 23px; font-weight: 800; }
body.marketer-app .marketer-page-heading p { color: #97a3b3; font-size: 10px; }

body.marketer-app .marketer-card,
body.marketer-app .marketer-list-item {
    border-color: var(--marketer-border);
    border-radius: var(--marketer-radius);
    box-shadow: var(--marketer-shadow);
}
body.marketer-app .marketer-card { padding: 17px; }
body.marketer-app .marketer-list { gap: 11px; }
body.marketer-app .marketer-list-item { padding: 14px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
body.marketer-app .marketer-list-item:hover { transform: translateY(-1px); border-color: #cfe0ff; box-shadow: 0 12px 27px rgba(43,72,120,.09); }
body.marketer-app .marketer-detail-header h2 { color: #25334a; font-size: 16px; font-weight: 800; }
body.marketer-app .marketer-detail-header p { color: #8995a6; font-size: 11px; }
body.marketer-app .marketer-followup-meta { color: #8b97a8; font-size: 10px; }
body.marketer-app .marketer-section-title { margin: 23px 2px 11px; }
body.marketer-app .marketer-section-title h2 { color: #1d2b42; font-size: 16px; font-weight: 800; }
body.marketer-app .marketer-section-title a { color: var(--marketer-primary); font-size: 11px; font-weight: 700; }
body.marketer-app .marketer-empty { border-color: #dbe5f2; background: #fff; color: #8995a6; }
body.marketer-app .marketer-badge { background: #eaf2ff; color: #3473d8; font-size: 10px; font-weight: 700; }
body.marketer-app .marketer-badge-success { background: #e6f8f0; color: #16855c; }
body.marketer-app .marketer-badge-warning { background: #fff4da; color: #bd7900; }
body.marketer-app .marketer-badge-danger { background: #fff0f2; color: #bb3b52; }

body.marketer-app .marketer-btn { min-height: 43px; border-radius: 12px; font-size: 11px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
body.marketer-app .marketer-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(43,72,120,.12); }
body.marketer-app .marketer-btn-primary { background: linear-gradient(135deg, #2878f1, #1967e8); box-shadow: 0 7px 16px rgba(25,103,232,.16); }
body.marketer-app .marketer-btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #1967e8, #1455c5); }
body.marketer-app .marketer-btn-secondary { border: 1px solid #e1e9f3; background: #f5f8fc; color: #52647e; }
body.marketer-app .marketer-btn-success { background: linear-gradient(135deg, #22b77e, #139b69); box-shadow: 0 7px 16px rgba(20,165,111,.15); }
body.marketer-app .marketer-btn-danger { background: linear-gradient(135deg, #df5a6e, #c83d55); }
body.marketer-app .marketer-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

body.marketer-app .marketer-search { gap: 8px; margin-bottom: 14px; padding: 5px; border: 1px solid var(--marketer-border); border-radius: 15px; background: #fff; box-shadow: var(--marketer-shadow); }
body.marketer-app .marketer-search input { min-height: 43px; padding: 10px 13px; border: 0; background: transparent; box-shadow: none; }
body.marketer-app .marketer-search input:focus { box-shadow: none; }
body.marketer-app .marketer-search .marketer-btn { min-width: 47px; }
body.marketer-app .marketer-form-grid { gap: 13px; }
body.marketer-app .marketer-form-group { margin-bottom: 14px; }
body.marketer-app .marketer-form label { margin-bottom: 7px; color: #50627b; font-size: 11px; font-weight: 800; }
body.marketer-app .marketer-form input,
body.marketer-app .marketer-form select,
body.marketer-app .marketer-form textarea {
    min-height: 45px;
    padding: 10px 13px;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #fbfdff;
    color: #26364e;
    font-size: 12px;
    box-shadow: none;
}
body.marketer-app .marketer-form textarea { min-height: 100px; }
body.marketer-app .marketer-form input:focus,
body.marketer-app .marketer-form select:focus,
body.marketer-app .marketer-form textarea:focus { border-color: #8db7fa; background: #fff; box-shadow: 0 0 0 4px rgba(25,103,232,.09); outline: 0; }
body.marketer-app .marketer-form-group input:disabled { border-color: #e5ebf3; background: #f2f5f9; }
body.marketer-app .marketer-alert { border: 1px solid transparent; border-radius: 13px; font-size: 11px; line-height: 1.9; }
body.marketer-app .marketer-alert-success { border-color: #c7efdd; background: #ecfbf4; color: #177950; }
body.marketer-app .marketer-alert-danger { border-color: #ffd4db; background: #fff3f5; color: #b83c52; }

body.marketer-app .marketer-bottom-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    width: min(calc(100% - 28px), 920px);
    margin: 0 auto 18px;
    padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid var(--marketer-border);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(43,72,120,.09);
}
body.marketer-app .marketer-bottom-nav a { min-width: 0; padding: 6px 4px; border-radius: 12px; color: #8b98aa; font-size: 9px; transition: background .18s ease, color .18s ease; }
body.marketer-app .marketer-bottom-nav a i { font-size: 18px; }
body.marketer-app .marketer-bottom-nav a.is-active { background: #edf4ff; color: var(--marketer-primary); font-weight: 800; }
body.marketer-app .marketer-bottom-nav a.marketer-bottom-nav-logout:hover { color: #c83d55; background: #fff2f4; }

/* فهرست مشتریان، پیگیری و تجهیزات */
body.marketer-page-customers .marketer-container,
body.marketer-page-followups .marketer-container,
body.marketer-page-equipment .marketer-container { max-width: 720px; }
body.marketer-page-followups .marketer-followup-card { border-right: 4px solid #8db7fa; }
body.marketer-page-followups .marketer-followup-card.is-done { border-right-color: var(--marketer-success); }
body.marketer-page-followups .marketer-followup-card.is-cancelled { border-right-color: #df5a6e; }
body.marketer-page-equipment .marketer-equipment-card { border-right: 4px solid #a997ed; }
body.marketer-app .marketer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.marketer-app .marketer-actions form { display: contents; }
body.marketer-app .marketer-actions .marketer-btn { min-height: 39px; }
body.marketer-app .marketer-equipment-meta-grid { gap: 9px; }
body.marketer-app .marketer-equipment-meta-grid > div { border-color: #edf1f6; border-radius: 12px; background: #f8fbff; }

/* ثبت مشتری */
body.marketer-page-create .marketer-container { max-width: 760px; }
body.marketer-app .marketer-create-hero { border: 1px solid #dce9ff; border-radius: 20px; background: linear-gradient(135deg, #eef5ff, #f8fbff 58%, #edfdf6); box-shadow: var(--marketer-shadow); }
body.marketer-app .marketer-create-hero-icon { background: #dbeaff; color: #1967e8; }
body.marketer-app .marketer-create-kicker { color: #1967e8; }
body.marketer-app .marketer-create-hero h2 { color: #172b4b; }
body.marketer-app .marketer-create-card { border-radius: 20px; }
body.marketer-app .marketer-create-section-title { border-color: #e5edf7; background: linear-gradient(90deg, #f5f8fd, #fff); }
body.marketer-app .marketer-create-section-icon { background: #eaf2ff; color: #1967e8; }
body.marketer-app .marketer-upload { border-color: #bdd4f6; background: #f7faff; }
body.marketer-app .marketer-upload-trigger { color: #1967e8 !important; }
body.marketer-app .marketer-create-submit { border-color: #e7edf5; }
body.marketer-app .marketer-create-submit-note i { color: var(--marketer-success); }

/* پروفایل مشتری */
body.marketer-page-customers #marketer-customer-profile { display: grid; gap: 14px; }
body.marketer-app .marketer-profile-back { width: fit-content; min-height: 38px; }
body.marketer-app .marketer-profile-hero { border-color: #dce9ff; background: linear-gradient(135deg, #f7fbff, #fff); }
body.marketer-app .marketer-profile-avatar-wrap { box-shadow: 0 8px 20px rgba(25,103,232,.12); }
body.marketer-app .marketer-profile-avatar-status { background: var(--marketer-success); }
body.marketer-app .marketer-profile-kicker { color: #1967e8; }
body.marketer-app .marketer-profile-hero-copy h2 { color: #172b4b; }
body.marketer-app .marketer-profile-actions { gap: 8px; }
body.marketer-app .marketer-profile-actions .marketer-btn-location { border: 1px solid #d3e4ff; background: #edf4ff; color: #1967e8; }
body.marketer-app .marketer-profile-tool-card,
body.marketer-app .marketer-profile-data-card { border-radius: 17px; }
body.marketer-app .marketer-profile-tool-heading { border-color: #edf1f6; }
body.marketer-app .marketer-profile-tool-icon-image { background: #eaf2ff; color: #1967e8; }
body.marketer-app .marketer-profile-tool-icon-location { background: #e8fbf2; color: #159c6b; }
body.marketer-app .marketer-profile-info-grid > div { border-color: #edf1f6; border-radius: 12px; background: #f8fbff; }
body.marketer-app .marketer-profile-section-heading > span { background: #edf4ff; color: #1967e8; }
body.marketer-app .marketer-profile-map { border-color: #dbe6f3; border-radius: 14px; }

/* سفارش‌گیری و سفارش‌ها */
body.marketer-page-orders .marketer-container { max-width: 1180px; }
body.marketer-app .marketer-order-toolbar,
body.marketer-app .marketer-product-search,
body.marketer-app .marketer-product-card { border-color: var(--marketer-border); box-shadow: var(--marketer-shadow); }
body.marketer-app .marketer-order-toolbar { border-radius: 18px; background: linear-gradient(135deg, #fff, #f5f9ff); }
body.marketer-app .marketer-product-search { border-radius: 16px; background: #fff; }
body.marketer-app .marketer-product-search input { min-height: 45px; border-color: #dce5f0; background: #fbfdff; }
body.marketer-app .marketer-order-categories { border-color: #e4ebf4; background: #f8fbff; }
body.marketer-app .marketer-order-category.is-active { border-color: #1967e8; background: #1967e8; box-shadow: 0 6px 15px rgba(25,103,232,.18); }
body.marketer-app .marketer-subcategory-panel { border-color: #d5e4fb; background: #f3f7ff; }
body.marketer-app .marketer-subcategory.is-active { border-color: #1967e8; background: #1967e8; }
body.marketer-app .marketer-product-card:hover { border-color: #9ec1fb; box-shadow: 0 11px 25px rgba(25,103,232,.10); }
body.marketer-app .marketer-product-meta span,
body.marketer-app .marketer-cart-item-bottom strong { color: #1967e8; }
body.marketer-app .marketer-cart-toggle { background: linear-gradient(135deg, #2878f1, #1967e8); box-shadow: 0 10px 25px rgba(25,103,232,.26); }
body.marketer-app .marketer-cart-toggle b { color: #1967e8; }
body.marketer-app .marketer-cart-modal .marketer-detail-header,
body.marketer-app .marketer-checkout-header { background: linear-gradient(135deg, #fff, #f3f7ff); }
body.marketer-app .marketer-checkout-kicker { color: #1967e8; }
body.marketer-app .marketer-checkout-actions .marketer-btn-success { background: linear-gradient(135deg, #22b77e, #139b69); }

/* صفحه رمز عبور */
body.marketer-page-password .marketer-container { max-width: 590px; }
body.marketer-app .marketer-password-card { border-radius: 20px; }
body.marketer-app .marketer-password-card .marketer-section-title { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid #edf1f6; }

@media (max-width: 699px) {
    body.marketer-app .marketer-topbar { position: sticky; top: 0; z-index: 100; }
    body.marketer-app .marketer-container { padding-top: 18px; }
    body.marketer-app .marketer-bottom-nav { position: fixed; right: 10px; bottom: 10px; left: 10px; z-index: 120; width: auto; margin: 0; padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
    body.marketer-app { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    body.marketer-app .marketer-profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.marketer-app .marketer-profile-actions .marketer-btn { width: 100%; padding-right: 7px; padding-left: 7px; }
}
@media (max-width: 430px) {
    body.marketer-app .marketer-brand > span:last-child { display: none; }
    body.marketer-app .marketer-page-heading h1 { font-size: 20px; }
    body.marketer-app .marketer-card { padding: 14px; }
    body.marketer-app .marketer-bottom-nav { right: 7px; bottom: 7px; left: 7px; }
    body.marketer-app .marketer-bottom-nav a { font-size: 8px; }
    body.marketer-app .marketer-bottom-nav a i { font-size: 17px; }
}

/* ناوبر نهایی پوسته؛ قواعد قدیمی marketer-topbar عمداً دیگر روی DOM استفاده نمی‌شوند */
body.marketer-app .marketer-shell-topbar {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px max(14px, calc((100vw - 1020px) / 2));
    border-bottom: 1px solid #e7edf5;
    background: #ffffff !important;
    color: #172033 !important;
    box-shadow: 0 5px 20px rgba(43,72,120,.07);
    isolation: isolate;
}
body.marketer-app .marketer-shell-topbar .marketer-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #1967e8 !important;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
body.marketer-app .marketer-shell-topbar .marketer-brand-mark {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d6e5ff;
    border-radius: 12px;
    background: #eff5ff;
    color: #1967e8;
}
body.marketer-app .marketer-shell-topbar .marketer-brand-mark img { display: block; width: 29px; height: 29px; object-fit: contain; }
body.marketer-app .marketer-shell-topbar .marketer-user-menu {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #65738a !important;
    font-size: 11px;
}
body.marketer-app .marketer-shell-topbar .marketer-user-menu > span { color: #52627a !important; }
body.marketer-app .marketer-shell-topbar .marketer-user-menu a {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #65738a !important;
    font-size: 17px;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
body.marketer-app .marketer-shell-topbar .marketer-user-menu a:hover { background: #edf4ff; color: #1967e8 !important; transform: translateY(-1px); }
body.marketer-app .marketer-shell-topbar .marketer-user-menu a:last-child:hover { background: #fff1f4; color: #c83d55 !important; }
body.marketer-page-home .marketer-shell-topbar .marketer-user-menu > span { display: none; }

body.marketer-app .marketer-page-heading {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.marketer-app .marketer-page-heading h1 { color: #172033 !important; }
body.marketer-app .marketer-page-heading p { color: #8b98aa !important; }

@media (max-width: 699px) {
    body.marketer-app .marketer-shell-topbar { min-height: 58px; padding: 8px 14px; }
    body.marketer-app .marketer-shell-topbar .marketer-brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
    body.marketer-app .marketer-shell-topbar .marketer-brand-mark img { width: 26px; height: 26px; }
    body.marketer-app .marketer-shell-topbar .marketer-user-menu { gap: 4px; }
}
@media (max-width: 430px) {
    body.marketer-app .marketer-shell-topbar .marketer-brand > span:last-child { display: none; }
}

/* ورود نیز با همان زبان بصری داشبورد */
body.marketer-login-page {
    background: radial-gradient(circle at 15% 12%, #dbeaff 0, transparent 32%), linear-gradient(145deg, #eef5ff 0%, #f8fbff 52%, #e8f8f2 100%);
    color: #172033;
}
body.marketer-login-page .marketer-login-glow { background: rgba(25,103,232,.09); }
body.marketer-login-page .marketer-login-glow-two { background: rgba(20,165,111,.09); }
body.marketer-login-page .marketer-login-card {
    border: 1px solid #e0eaf7;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 70px rgba(43,72,120,.16);
}
body.marketer-login-page .marketer-login-card::before { background: linear-gradient(90deg, #1967e8, #65a0f6, #22b77e); }
body.marketer-login-page .marketer-login-brand { color: #1967e8; }
body.marketer-login-page .marketer-login-logo { border-color: #d6e5ff; background: #eff5ff; box-shadow: 0 8px 18px rgba(25,103,232,.14); }
body.marketer-login-page .marketer-login-card h1 { color: #172b4b; }
body.marketer-login-page .marketer-login-card .marketer-btn-primary { background: linear-gradient(135deg, #2878f1, #1967e8); box-shadow: 0 10px 20px rgba(25,103,232,.20); }

/* کارت‌های داخلی باید از همان زبان بصری داشبورد پیروی کنند */
body.marketer-page-customers .marketer-container { width: min(100%, 590px); }
body.marketer-page-customers .marketer-page-heading { margin-bottom: 12px; }
body.marketer-page-customers .marketer-search { margin-bottom: 18px; }
body.marketer-page-customers .marketer-section-title { margin: 0 2px 11px; }
body.marketer-page-customers .marketer-section-title h2 { color: #172033; font-size: 15px; font-weight: 800; }
body.marketer-page-customers .marketer-section-title a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #d7e6ff;
    border-radius: 10px;
    background: #edf4ff;
    color: #1967e8;
    font-size: 10px;
    font-weight: 800;
}
body.marketer-page-customers .marketer-list { gap: 9px; }
body.marketer-page-customers .marketer-list-item {
    position: relative;
    min-height: 78px;
    padding: 13px 16px 13px 12px;
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(43,72,120,.045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.marketer-page-customers .marketer-list-item::before {
    position: absolute;
    top: 12px;
    right: 0;
    bottom: 12px;
    width: 4px;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(180deg, #73aafa, #1967e8);
    content: "";
}
body.marketer-page-customers .marketer-list-item:hover {
    transform: translateY(-2px);
    border-color: #cfe0ff;
    box-shadow: 0 12px 25px rgba(43,72,120,.10);
}
body.marketer-page-customers .marketer-list-item-main { min-width: 0; }
body.marketer-page-customers .marketer-list-item-main strong {
    color: #28354a;
    font-size: 12px;
    font-weight: 800;
}
body.marketer-page-customers .marketer-list-item-main span {
    margin-top: 6px;
    color: #8b98aa;
    font-size: 9px;
}
body.marketer-page-customers .marketer-list-item-main span bdi {
    margin-right: 6px;
    color: #6e7f98;
    direction: ltr;
}
body.marketer-page-customers .marketer-list-item-side {
    display: flex;
    min-width: 96px;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}
body.marketer-page-customers .marketer-list-item-side .marketer-badge {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 8px;
}
body.marketer-page-customers .marketer-list-item-side small {
    color: #9aa5b4;
    font-size: 8px;
    white-space: nowrap;
}
body.marketer-page-customers .marketer-empty {
    border: 1px solid #edf1f6;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(43,72,120,.045);
}

/* فرم‌ها و لیست‌های سایر صفحات هم همان فاصله‌گذاری نرم داشبورد را می‌گیرند */
body.marketer-app:not(.marketer-page-home) .marketer-section-title + .marketer-list,
body.marketer-app:not(.marketer-page-home) .marketer-section-title + .marketer-card {
    margin-top: 0;
}
body.marketer-app:not(.marketer-page-home) .marketer-card,
body.marketer-app:not(.marketer-page-home) .marketer-list-item {
    box-shadow: 0 8px 22px rgba(43,72,120,.045);
}
body.marketer-app:not(.marketer-page-home) .marketer-btn-primary {
    background: linear-gradient(135deg, #2878f1, #1967e8);
}
/* داشبورد فقط یک هدر دارد: welcome جایگزین page-heading قدیمی است. */
body.marketer-page-home .marketer-page-heading { display: none !important; }
@media (max-width: 390px) {
    body.marketer-page-customers .marketer-list-item { padding-right: 13px; }
    body.marketer-page-customers .marketer-list-item-side { min-width: 84px; }
    body.marketer-page-customers .marketer-list-item-side .marketer-badge { max-width: 84px; }
}

body.marketer-page-followups .marketer-container { width: min(100%, 590px); }
body.marketer-page-followups .marketer-list { gap: 10px; }
body.marketer-page-followups .marketer-followup-card {
    margin: 0;
    padding: 14px 15px 13px;
    overflow: hidden;
    border: 1px solid #edf1f6;
    border-right: 4px solid #8db7fa;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(43,72,120,.045);
}
body.marketer-page-followups .marketer-followup-card.is-done { border-right-color: #22b77e; }
body.marketer-page-followups .marketer-followup-card.is-cancelled { border-right-color: #df5a6e; }
body.marketer-page-followups .marketer-detail-header { align-items: center; }
body.marketer-page-followups .marketer-detail-header h2 { color: #28354a; font-size: 13px; font-weight: 800; }
body.marketer-page-followups .marketer-detail-header p { margin-top: 5px; color: #8b98aa; font-size: 9px; }
body.marketer-page-followups .marketer-detail-header .marketer-badge { font-size: 8px; }
body.marketer-page-followups .marketer-followup-meta {
    gap: 6px;
    margin-top: 12px;
    color: #8b98aa;
    font-size: 9px;
}
body.marketer-page-followups .marketer-followup-meta span {
    padding: 4px 7px;
    border-radius: 8px;
    background: #f5f8fc;
}
body.marketer-page-followups .marketer-actions { margin-top: 12px !important; }
body.marketer-page-followups .marketer-actions .marketer-btn { min-height: 37px; padding: 8px 13px; font-size: 10px; }
body.marketer-app:not(.marketer-page-home) .marketer-page-heading h1 { letter-spacing: -.01em; }
body.marketer-app:not(.marketer-page-home) .marketer-page-heading p { margin-top: 4px; }

/* ناوبر واحد و نهایی تمام صفحات پنل بازاریاب */
body.marketer-app .marketer-legacy-topbar { display: none !important; }
body.marketer-app .marketer-appbar {
    position: sticky;
    z-index: 300;
    top: 0;
    display: block;
    width: 100%;
    min-height: 72px;
    border-bottom: 1px solid #e6edf7;
    background: rgba(255,255,255,.94);
    color: #172033;
    box-shadow: 0 8px 26px rgba(43,72,120,.08);
    backdrop-filter: blur(18px);
    isolation: isolate;
}
body.marketer-app .marketer-appbar-inner {
    display: grid;
    width: min(100%, 1180px);
    min-height: 72px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 10px 18px;
}
/* در ناوبر اپلیکیشنی، پروفایل جای لوگوی اصلی را می‌گیرد. */
body.marketer-app .marketer-appbar-brand { display: none !important; }
body.marketer-app .marketer-appbar-inner { grid-template-columns: auto minmax(0, 1fr); }
body.marketer-app .marketer-appbar-actions { grid-column: 1; grid-row: 1; justify-self: start; }
body.marketer-app .marketer-appbar-context { grid-column: 2; grid-row: 1; justify-self: center; }
body.marketer-app .marketer-appbar-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: #1967e8;
    text-decoration: none;
}
body.marketer-app .marketer-appbar-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d7e6ff;
    border-radius: 14px;
    background: linear-gradient(145deg, #f2f7ff, #e4efff);
    box-shadow: 0 6px 15px rgba(25,103,232,.11);
}
body.marketer-app .marketer-appbar-logo img { display: block; width: 32px; height: 32px; object-fit: contain; }
body.marketer-app .marketer-appbar-brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
body.marketer-app .marketer-appbar-brand-copy strong { color: #1d2b42; font-size: 13px; font-weight: 900; white-space: nowrap; }
body.marketer-app .marketer-appbar-brand-copy small { color: #93a0b2; font-size: 9px; white-space: nowrap; }
body.marketer-app .marketer-appbar-context { display: flex; min-width: 100px; align-items: center; flex-direction: column; gap: 3px; text-align: center; }
body.marketer-app .marketer-appbar-context small { color: #9ba8b9; font-size: 9px; font-weight: 700; }
body.marketer-app .marketer-appbar-context strong { color: #172b4b; font-size: 15px; font-weight: 900; }
body.marketer-app .marketer-appbar-actions { display: inline-flex; min-width: 0; align-items: center; justify-self: end; gap: 8px; }
body.marketer-app .marketer-appbar-user { order: 1; }
body.marketer-app .marketer-appbar-alert { order: 2; }
body.marketer-app .marketer-appbar-logout { order: 3; }
body.marketer-app .marketer-appbar-alert,
body.marketer-app .marketer-appbar-logout {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    background: #f8fbff;
    color: #70829b;
    font-size: 17px;
    text-decoration: none;
    transition: .18s ease;
}
body.marketer-app .marketer-appbar-alert:hover { border-color: #cfe0ff; background: #edf4ff; color: #1967e8; transform: translateY(-1px); }
body.marketer-app .marketer-appbar-alert::after {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 6px;
    height: 6px;
    border: 2px solid #f8fbff;
    border-radius: 50%;
    background: #f04f5f;
    content: "";
}
body.marketer-app .marketer-appbar-user {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 3px 5px 3px 9px;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: #fff;
    color: #26364e;
    text-decoration: none;
    transition: .18s ease;
}
body.marketer-app .marketer-appbar-user:hover { border-color: #cfe0ff; background: #f8fbff; transform: translateY(-1px); }
body.marketer-app .marketer-appbar-user img { width: 34px; height: 34px; border: 2px solid #fff; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 10px rgba(43,72,120,.14); }
body.marketer-app .marketer-appbar-user span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
body.marketer-app .marketer-appbar-user small { color: #9ba8b9; font-size: 8px; }
body.marketer-app .marketer-appbar-user strong { max-width: 105px; overflow: hidden; color: #30415b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body.marketer-app .marketer-appbar-logout:hover { border-color: #ffd6dd; background: #fff2f4; color: #c83d55; transform: translateY(-1px); }
body.marketer-app .marketer-page-heading { display: none !important; }
body.marketer-page-home .marketer-dashboard-profile { display: none !important; }
body.marketer-page-home .marketer-dashboard-welcome { justify-content: flex-start; }
body.marketer-page-home .marketer-dashboard-search { position: relative; z-index: 2; margin-bottom: 7px; }
body.marketer-page-home .marketer-dashboard-search-results {
    position: relative;
    z-index: 4;
    display: grid;
    gap: 6px;
    margin: 0 0 15px;
}
body.marketer-page-home .marketer-dashboard-search-result {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e6edf7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(43,72,120,.07);
    color: #28354a;
    text-decoration: none;
    transition: .18s ease;
}
body.marketer-page-home .marketer-dashboard-search-result:hover { border-color: #cfe0ff; background: #fafdff; transform: translateY(-1px); }
body.marketer-page-home .marketer-dashboard-search-result-avatar {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(145deg, #eef4fb, #dfe9f4);
    color: #8292a8;
    font-size: 16px;
}
body.marketer-page-home .marketer-dashboard-search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.marketer-page-home .marketer-dashboard-search-result-copy { min-width: 0; flex: 1; }
body.marketer-page-home .marketer-dashboard-search-result-copy strong,
body.marketer-page-home .marketer-dashboard-search-result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.marketer-page-home .marketer-dashboard-search-result-copy strong { color: #28354a; font-size: 11px; font-weight: 800; }
body.marketer-page-home .marketer-dashboard-search-result-copy small { margin-top: 4px; color: #8b98aa; font-size: 8px; }
body.marketer-page-home .marketer-dashboard-search-result-copy small + small { color: #a1adbb; }
body.marketer-page-home .marketer-dashboard-search-result-type { display: inline-flex; align-items: center; gap: 5px; color: #1967e8; font-size: 8px; font-weight: 800; white-space: nowrap; }
body.marketer-page-home .marketer-dashboard-search-result-type i { font-size: 9px; }
body.marketer-page-home .marketer-dashboard-search-empty { padding: 13px; border: 1px dashed #d9e5f4; border-radius: 13px; background: #fff; color: #8b98aa; font-size: 10px; text-align: center; }
body.marketer-page-home .marketer-dashboard-search-results[hidden] { display: none !important; }
body.marketer-app .marketer-main { min-height: calc(100vh - 72px); }
body.marketer-app .marketer-bottom-nav { z-index: 260; }
@media (max-width: 699px) {
    body.marketer-app .marketer-appbar { min-height: 62px; }
    body.marketer-app .marketer-appbar-inner { min-height: 62px; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 12px; }
    body.marketer-app .marketer-appbar-brand-copy { display: none; }
    body.marketer-app .marketer-appbar-logo { width: 37px; height: 37px; flex-basis: 37px; border-radius: 12px; }
    body.marketer-app .marketer-appbar-logo img { width: 28px; height: 28px; }
    body.marketer-app .marketer-appbar-context { grid-column: 2; justify-self: center; }
    body.marketer-app .marketer-appbar-context small { font-size: 8px; }
    body.marketer-app .marketer-appbar-context strong { font-size: 13px; }
    body.marketer-app .marketer-appbar-actions { gap: 5px; }
    body.marketer-app .marketer-appbar-alert,
    body.marketer-app .marketer-appbar-logout { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
    body.marketer-app .marketer-appbar-user { padding: 2px 4px; border: 0; background: transparent; }
    body.marketer-app .marketer-appbar-user span { display: flex; max-width: 82px; }
    body.marketer-app .marketer-appbar-user small { display: none; }
    body.marketer-app .marketer-appbar-user img { width: 37px; height: 37px; border-radius: 12px; }
    body.marketer-app .marketer-main { min-height: calc(100vh - 62px); }
}
@media (max-width: 390px) {
    body.marketer-app .marketer-appbar-inner { padding-right: 9px; padding-left: 9px; }
    body.marketer-app .marketer-appbar-context strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.marketer-app .marketer-appbar-logout { display: none; }
}

/* override نهایی چیدمان: پروفایل راست، عنوان وسط، اعلان چپ؛ بدون لوگوی جداگانه */
body.marketer-app .marketer-appbar-brand { display: none !important; }
body.marketer-app .marketer-appbar-inner {
    display: block !important;
    min-height: 64px;
    padding: 10px 16px !important;
}
body.marketer-app .marketer-appbar-context { display: none !important; }

/* پروفایل شخصی بازاریاب */
body.marketer-page-profile .marketer-container { width: min(100%, 720px); }
body.marketer-page-profile .marketer-user-profile-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid #dce9ff;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef5ff, #fff 58%, #eafbf3);
    box-shadow: var(--marketer-shadow);
}
body.marketer-page-profile .marketer-user-profile-avatar-wrap { position: relative; flex: 0 0 auto; }
body.marketer-page-profile .marketer-user-profile-avatar-wrap img { width: 82px; height: 82px; border: 5px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 20px rgba(43,72,120,.16); }
body.marketer-page-profile .marketer-user-profile-camera { position: absolute; right: -2px; bottom: 2px; display: grid; width: 29px; height: 29px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #1967e8; color: #fff; cursor: pointer; font-size: 12px; box-shadow: 0 5px 12px rgba(25,103,232,.23); }
body.marketer-page-profile .marketer-user-profile-hero-copy { min-width: 0; }
body.marketer-page-profile .marketer-user-profile-hero-copy > span { color: #1967e8; font-size: 10px; font-weight: 800; }
body.marketer-page-profile .marketer-user-profile-hero-copy h1 { margin: 5px 0 3px; color: #172b4b; font-size: 21px; font-weight: 900; }
body.marketer-page-profile .marketer-user-profile-hero-copy p { margin: 0 0 7px; color: #8997aa; font-size: 10px; }
body.marketer-page-profile .marketer-user-profile-status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; }
body.marketer-page-profile .marketer-user-profile-status.is-active { background: #e5f9ef; color: #16885e; }
body.marketer-page-profile .marketer-user-profile-status.is-pending { background: #fff4da; color: #bd7900; }
body.marketer-page-profile .marketer-user-profile-status.is-inactive,
body.marketer-page-profile .marketer-user-profile-status.is-blocked { background: #fff0f2; color: #bb3b52; }
body.marketer-page-profile .marketer-user-profile-form,
body.marketer-page-profile .marketer-user-profile-details { padding: 18px; }
body.marketer-page-profile .marketer-user-profile-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
body.marketer-page-profile .marketer-user-profile-card-heading > span { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 12px; background: #edf4ff; color: #1967e8; font-size: 16px; }
body.marketer-page-profile .marketer-user-profile-card-heading h2 { margin: 0; color: #28354a; font-size: 14px; font-weight: 900; }
body.marketer-page-profile .marketer-user-profile-card-heading p { margin: 4px 0 0; color: #96a2b2; font-size: 9px; }
body.marketer-page-profile .marketer-user-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.marketer-page-profile .marketer-user-profile-grid input[readonly] { border-color: #e5ebf3; background: #f3f6fa; color: #8492a5; }
body.marketer-page-profile .marketer-profile-upload { display: flex; min-height: 62px; align-items: center; gap: 10px; margin: 3px 0 16px; padding: 10px 12px; border: 1px dashed #bcd3f4; border-radius: 14px; background: #f7faff; color: #1967e8; cursor: pointer; }
body.marketer-page-profile .marketer-profile-upload > i { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 11px; background: #e8f1ff; font-size: 16px; }
body.marketer-page-profile .marketer-profile-upload > span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
body.marketer-page-profile .marketer-profile-upload strong { color: #30415b; font-size: 10px; }
body.marketer-page-profile .marketer-profile-upload small { color: #8b98aa; font-size: 8px; }
body.marketer-page-profile .marketer-profile-upload b { padding: 6px 9px; border-radius: 8px; background: #eaf2ff; color: #1967e8; font-size: 8px; white-space: nowrap; }
body.marketer-page-profile .marketer-user-profile-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.marketer-page-profile .marketer-user-profile-form-actions .marketer-btn { flex: 1; min-width: 160px; }
body.marketer-page-profile .marketer-user-profile-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
body.marketer-page-profile .marketer-user-profile-info-grid > div { min-width: 0; padding: 11px; border: 1px solid #edf1f6; border-radius: 12px; background: #f8fbff; }
body.marketer-page-profile .marketer-user-profile-info-grid small,
body.marketer-page-profile .marketer-user-profile-info-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.marketer-page-profile .marketer-user-profile-info-grid small { color: #94a0b0; font-size: 9px; }
body.marketer-page-profile .marketer-user-profile-info-grid strong { margin-top: 5px; color: #30415b; font-size: 11px; }
@media (max-width: 520px) {
    body.marketer-page-profile .marketer-user-profile-hero { padding: 14px; }
    body.marketer-page-profile .marketer-user-profile-avatar-wrap img { width: 70px; height: 70px; }
    body.marketer-page-profile .marketer-user-profile-hero-copy h1 { font-size: 18px; }
    body.marketer-page-profile .marketer-user-profile-grid,
    body.marketer-page-profile .marketer-user-profile-info-grid { grid-template-columns: 1fr; }
    body.marketer-page-profile .marketer-profile-upload small { line-height: 1.7; }
    body.marketer-page-profile .marketer-profile-upload b { display: none; }
}
body.marketer-app .marketer-appbar-actions {
    display: flex !important;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
}
body.marketer-app .marketer-appbar-user {
    order: 1 !important;
    margin-inline-end: auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}
body.marketer-app .marketer-appbar-user img {
    width: 38px;
    height: 38px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(43,72,120,.18);
}
body.marketer-app .marketer-appbar-user span { gap: 0; }
body.marketer-app .marketer-appbar-user small { display: none !important; }
body.marketer-app .marketer-appbar-user strong { max-width: 130px; color: #26364e; font-size: 11px; font-weight: 900; }
body.marketer-app .marketer-appbar-alert { order: 2 !important; }
body.marketer-app .marketer-appbar-logout { order: 3 !important; }
body.marketer-app .marketer-appbar-alert::after { border-color: #f8fbff; }
@media (max-width: 699px) {
    body.marketer-app .marketer-appbar-inner { min-height: 58px; padding: 8px 12px !important; }
    body.marketer-app .marketer-appbar-actions { min-height: 42px; }
    body.marketer-app .marketer-appbar-user img { width: 36px; height: 36px; }
    body.marketer-app .marketer-appbar-user strong { max-width: 105px; font-size: 10px; }
}

/* صفحه سفارش‌ها */
body.marketer-page-orders .marketer-container { width: min(100%, 860px); }
body.marketer-page-orders .marketer-orders-page { display: grid; gap: 14px; }
body.marketer-page-orders .marketer-orders-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid #dce9ff; border-radius: 20px; background: linear-gradient(135deg, #eef5ff, #fff 58%, #eafbf3); box-shadow: var(--marketer-shadow); }
body.marketer-page-orders .marketer-orders-eyebrow { color: #1967e8; font-size: 10px; font-weight: 800; }
body.marketer-page-orders .marketer-orders-hero h1 { margin: 5px 0 4px; color: #172b4b; font-size: 21px; font-weight: 900; }
body.marketer-page-orders .marketer-orders-hero p { margin: 0; color: #8997aa; font-size: 10px; }
body.marketer-page-orders .marketer-orders-hero > .marketer-btn { flex: 0 0 auto; }
body.marketer-page-orders .marketer-orders-filter { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 8px; padding: 8px; border: 1px solid #e6edf7; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(43,72,120,.045); }
body.marketer-page-orders .marketer-orders-search-field { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e0e8f2; border-radius: 12px; background: #fafdff; }
body.marketer-page-orders .marketer-orders-search-field > i { color: #8ca0ba; font-size: 15px; }
body.marketer-page-orders .marketer-orders-search-field input { width: 100%; min-height: 43px; border: 0; outline: 0; background: transparent; color: #28354a; font-size: 10px; }
body.marketer-page-orders .marketer-orders-filter select { min-height: 43px; padding: 0 11px; border: 1px solid #e0e8f2; border-radius: 12px; background: #fafdff; color: #52647e; font-family: inherit; font-size: 10px; }
body.marketer-page-orders .marketer-orders-filter .marketer-btn { min-height: 43px; padding-right: 14px; padding-left: 14px; }
body.marketer-page-orders .marketer-orders-status-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 1px 1px 4px; scrollbar-width: thin; }
body.marketer-page-orders .marketer-orders-status-tabs a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #e0e8f2; border-radius: 999px; background: #fff; color: #7f8da1; font-size: 9px; font-weight: 700; white-space: nowrap; }
body.marketer-page-orders .marketer-orders-status-tabs a:hover { border-color: #bcd4fa; color: #1967e8; }
body.marketer-page-orders .marketer-orders-status-tabs a.is-active { border-color: #c9ddfc; background: #eaf2ff; color: #1967e8; box-shadow: 0 5px 12px rgba(25,103,232,.10); }
body.marketer-page-orders .marketer-orders-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
body.marketer-page-orders .marketer-orders-list-heading h2 { margin: 0; color: #1d2b42; font-size: 15px; font-weight: 900; }
body.marketer-page-orders .marketer-orders-list-heading span { color: #96a2b2; font-size: 9px; }
body.marketer-page-orders .marketer-orders-list { display: grid; gap: 10px; }
body.marketer-page-orders .marketer-order-list-card { position: relative; margin: 0; padding: 14px 15px; overflow: hidden; border: 1px solid #e8eef6; border-right: 4px solid #8db7fa; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(43,72,120,.045); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
body.marketer-page-orders .marketer-order-list-card:hover { transform: translateY(-2px); border-color: #cfe0ff; box-shadow: 0 12px 26px rgba(43,72,120,.09); }
body.marketer-page-orders .marketer-order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.marketer-page-orders .marketer-order-card-title { display: flex; min-width: 0; align-items: center; gap: 9px; }
body.marketer-page-orders .marketer-order-card-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: #eaf2ff; color: #1967e8; font-size: 16px; }
body.marketer-page-orders .marketer-order-card-title h2 { margin: 0; color: #28354a; font-size: 12px; font-weight: 900; }
body.marketer-page-orders .marketer-order-card-title p { display: flex; gap: 6px; margin: 5px 0 0; overflow: hidden; color: #8b98aa; font-size: 9px; white-space: nowrap; }
body.marketer-page-orders .marketer-order-card-title p bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.marketer-page-orders .marketer-order-card-head > .marketer-badge { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
body.marketer-page-orders .marketer-order-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
body.marketer-page-orders .marketer-order-card-meta span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 8px; background: #f5f8fc; color: #8b98aa; font-size: 8px; }
body.marketer-page-orders .marketer-order-card-meta i { color: #91a7c4; font-size: 10px; }
body.marketer-page-orders .marketer-order-card-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 11px; border-top: 1px solid #f0f3f7; }
body.marketer-page-orders .marketer-order-card-actions form { display: contents; }
body.marketer-page-orders .marketer-order-card-actions .marketer-btn { min-height: 36px; padding: 8px 11px; border-radius: 10px; font-size: 9px; }
body.marketer-page-orders .marketer-order-card-actions .marketer-btn i { font-size: 11px; }
body.marketer-page-orders .marketer-empty { display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 30px 15px; }
body.marketer-page-orders .marketer-empty > i { color: #1967e8; font-size: 22px; }
body.marketer-page-orders .marketer-empty strong { color: #38465a; font-size: 12px; }
body.marketer-page-orders .marketer-empty small { color: #9aa5b4; font-size: 9px; }

/* مودال لغو سفارش */
body.marketer-order-modal-open { overflow: hidden; }
body.marketer-app .marketer-order-cancel-modal { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(20,32,52,.48); backdrop-filter: blur(5px); }
body.marketer-app .marketer-order-cancel-modal[hidden] { display: none !important; }
body.marketer-app .marketer-order-cancel-dialog { position: relative; width: min(100%, 390px); padding: 24px 20px 18px; border: 1px solid #edf1f6; border-radius: 22px; background: #fff; box-shadow: 0 25px 70px rgba(20,32,52,.24); text-align: center; }
body.marketer-app .marketer-order-cancel-close { position: absolute; top: 10px; left: 12px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; background: #f5f8fc; color: #8190a3; cursor: pointer; font-size: 22px; line-height: 1; }
body.marketer-app .marketer-order-cancel-icon { display: grid; width: 48px; height: 48px; margin: 3px auto 12px; place-items: center; border-radius: 16px; background: #fff0f2; color: #cf4c61; font-size: 20px; }
body.marketer-app .marketer-order-cancel-dialog h2 { margin: 0; color: #25334a; font-size: 17px; font-weight: 900; }
body.marketer-app .marketer-order-cancel-dialog p { margin: 9px auto; color: #8997aa; font-size: 10px; line-height: 1.9; }
body.marketer-app .marketer-order-cancel-dialog > strong { display: block; margin: 8px 0 15px; color: #52647e; font-size: 11px; direction: ltr; }
body.marketer-app .marketer-order-cancel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.marketer-app .marketer-order-cancel-actions .marketer-btn { min-height: 41px; font-size: 10px; }
@media (max-width: 600px) {
    body.marketer-page-orders .marketer-orders-hero { align-items: stretch; flex-direction: column; }
    body.marketer-page-orders .marketer-orders-hero > .marketer-btn { width: 100%; }
    body.marketer-page-orders .marketer-orders-filter { grid-template-columns: 1fr; }
    body.marketer-page-orders .marketer-orders-filter .marketer-btn { width: 100%; }
}
