/* shop-marketer.css — پنل بازاریاب فروشگاه */

.mk-body {
    --mk-leaf: #3d4f3a;
    --mk-leaf-deep: #2a3628;
    --mk-sand: #c4a574;
    --mk-paper: #f7f5f0;
    --mk-ink: #1a1a18;
    --mk-muted: #6b6b63;
    --mk-line: #e0ddd4;
    --mk-ok: #2f6b4f;
    --mk-warn: #9a6b2f;
    --mk-danger: #8b3a3a;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(61, 79, 58, 0.08), transparent 55%),
        radial-gradient(900px 400px at 90% 0%, rgba(196, 165, 116, 0.12), transparent 50%),
        var(--mk-paper);
}

.mk-app { min-height: 100vh; }

.mk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid var(--mk-line);
    background: rgba(247, 245, 240, 0.9);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 40;
}
.mk-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}
.mk-brand__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mk-sand);
    font-weight: 600;
}
.mk-brand__title {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--mk-leaf-deep);
    line-height: 1.2;
}
.mk-top__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--mk-line);
    background: #fff;
    font-size: 0.78rem;
    color: var(--mk-muted);
}
.mk-chip--ok { border-color: rgba(47,107,79,.35); color: var(--mk-ok); background: rgba(47,107,79,.06); }
.mk-chip--warn { border-color: rgba(154,107,47,.35); color: var(--mk-warn); background: rgba(154,107,47,.08); }
.mk-chip--bad { border-color: rgba(139,58,58,.35); color: var(--mk-danger); background: rgba(139,58,58,.07); }

.mk-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px clamp(16px, 4vw, 40px) 64px;
}

.mk-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
    animation: mk-rise .55s var(--ax-ease, ease) both;
}
@media (max-width: 900px) {
    .mk-hero { grid-template-columns: 1fr; }
}
.mk-hero__main {
    padding: 28px 28px 24px;
    background: linear-gradient(145deg, #fff 0%, #f3f1ea 100%);
    border: 1px solid var(--mk-line);
    position: relative;
    overflow: hidden;
}
.mk-hero__main::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(61,79,58,.12), transparent 70%);
    pointer-events: none;
}
.mk-hero__hello {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--mk-leaf-deep);
    margin: 0 0 8px;
    line-height: 1.15;
}
.mk-hero__sub {
    color: var(--mk-muted);
    margin: 0 0 18px;
    max-width: 42ch;
    font-size: 0.95rem;
}
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mk-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mk-kpi {
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--mk-line);
    animation: mk-rise .6s var(--ax-ease, ease) both;
}
.mk-kpi:nth-child(2) { animation-delay: .05s; }
.mk-kpi:nth-child(3) { animation-delay: .1s; }
.mk-kpi:nth-child(4) { animation-delay: .15s; }
.mk-kpi__val {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.55rem;
    color: var(--mk-leaf-deep);
    line-height: 1.1;
}
.mk-kpi__lbl {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--mk-muted);
}

.mk-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--mk-line);
    margin-bottom: 22px;
    padding-bottom: 2px;
}
.mk-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.88rem;
    color: var(--mk-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.mk-tab:hover { color: var(--mk-ink); }
.mk-tab--on {
    color: var(--mk-leaf-deep);
    border-bottom-color: var(--mk-leaf);
    font-weight: 600;
}

.mk-panel {
    animation: mk-fade .35s ease both;
}

.mk-btn {
    appearance: none;
    border: 1px solid var(--mk-leaf);
    background: var(--mk-leaf);
    color: #fff;
    padding: 10px 18px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.mk-btn:hover { background: var(--mk-leaf-deep); }
.mk-btn:active { transform: translateY(1px); }
.mk-btn--ghost {
    background: transparent;
    color: var(--mk-leaf-deep);
}
.mk-btn--ghost:hover { background: rgba(61,79,58,.06); }
.mk-btn--sand {
    background: var(--mk-sand);
    border-color: var(--mk-sand);
    color: #1a1a18;
}
.mk-btn:disabled { opacity: .5; cursor: not-allowed; }

.mk-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 800px) {
    .mk-grid-2 { grid-template-columns: 1fr; }
}

.mk-card {
    background: #fff;
    border: 1px solid var(--mk-line);
    padding: 20px;
}
.mk-card__title {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.25rem;
    margin: 0 0 14px;
    color: var(--mk-leaf-deep);
}

.mk-form {
    display: grid;
    gap: 12px;
}
.mk-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--mk-muted);
    margin-bottom: 5px;
}
.mk-field input,
.mk-field select,
.mk-field textarea {
    width: 100%;
    border: 1px solid var(--mk-line);
    background: #fff;
    padding: 10px 12px;
    font: inherit;
    color: var(--mk-ink);
}
.mk-field textarea { min-height: 80px; resize: vertical; }

.mk-table-wrap { overflow-x: auto; }
.mk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.mk-table th,
.mk-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--mk-line);
    text-align: right;
    white-space: nowrap;
}
.mk-table th {
    font-size: 0.75rem;
    color: var(--mk-muted);
    font-weight: 600;
    background: rgba(61,79,58,.04);
}
.mk-table tr:hover td { background: rgba(196,165,116,.06); }

.mk-status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.72rem;
    border: 1px solid var(--mk-line);
}
.mk-status--earned,
.mk-status--paid,
.mk-status--active,
.mk-status--completed { color: var(--mk-ok); border-color: rgba(47,107,79,.3); }
.mk-status--pending,
.mk-status--processing,
.mk-status--requested { color: var(--mk-warn); border-color: rgba(154,107,47,.3); }
.mk-status--cancelled,
.mk-status--rejected { color: var(--mk-danger); border-color: rgba(139,58,58,.3); }

.mk-pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
@media (max-width: 700px) {
    .mk-pipeline { grid-template-columns: repeat(2, 1fr); }
}
.mk-pipe {
    padding: 14px 12px;
    background: #fff;
    border: 1px solid var(--mk-line);
    text-align: center;
}
.mk-pipe__n {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.4rem;
    color: var(--mk-leaf-deep);
}
.mk-pipe__l { font-size: 0.72rem; color: var(--mk-muted); }

.mk-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.mk-prod {
    background: #fff;
    border: 1px solid var(--mk-line);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .2s, transform .2s;
}
.mk-prod:hover {
    border-color: var(--mk-sand);
    transform: translateY(-2px);
}
.mk-prod__name {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.15rem;
    color: var(--mk-leaf-deep);
}
.mk-prod__meta { font-size: 0.78rem; color: var(--mk-muted); }
.mk-prod__price {
    font-weight: 600;
    color: var(--mk-ink);
    margin-top: auto;
}

.mk-auth {
    max-width: 480px;
    margin: 48px auto;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--mk-line);
    animation: mk-rise .5s ease both;
}
.mk-auth h1 {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.8rem;
    margin: 0 0 8px;
    color: var(--mk-leaf-deep);
}
.mk-auth p { color: var(--mk-muted); margin: 0 0 20px; font-size: 0.92rem; }
.mk-auth__switch {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--mk-muted);
}
.mk-auth__switch button {
    appearance: none;
    border: 0;
    background: none;
    color: var(--mk-leaf);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.mk-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--mk-leaf-deep);
    color: #fff;
    padding: 12px 20px;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 100;
    max-width: min(90vw, 420px);
    text-align: center;
}
.mk-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.mk-toast--err { background: var(--mk-danger); }

.mk-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--mk-muted);
    border: 1px dashed var(--mk-line);
    background: rgba(255,255,255,.5);
}

.mk-cart-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--mk-leaf-deep);
    color: #fff;
    margin-top: 16px;
}
.mk-cart-bar .mk-btn { border-color: #fff; }

@keyframes mk-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes mk-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
