/* service-portal.css — پورتال مستقل خدمات HVAC + پاداش */

.svc-body { margin: 0; background: #0f172a; font-family: 'IRANSans', system-ui, sans-serif; }
.svc-app *, .svc-app *::before, .svc-app *::after { box-sizing: border-box; }
.svc-app { min-height: 100vh; color: #e2e8f0; }

/* ── Header ── */
.svc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    height: 56px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 50;
}
.svc-brand { color: #38bdf8; font-weight: 800; font-size: 15px; text-decoration: none; }
.svc-header__nav { display: flex; gap: 8px; margin-right: auto; }
.svc-header__nav a { color: #94a3b8; font-size: 13px; text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.svc-header__nav a:hover { color: #f1f5f9; background: rgba(255,255,255,.06); }
.svc-header__user { font-size: 13px; color: #cbd5e1; }
.svc-header__role {
    font-size: .72rem;
    background: #0284c7;
    color: #fff;
    padding: 2px 8px;
    border-radius: 99px;
    margin-right: 6px;
}

/* ── تب‌های اصلی پورتال یکپارچه ── */
.svc-unified { padding-bottom: 80px; }
.svc-ws-tabs--main { margin-bottom: 12px; }
.svc-ws-tabs--main .svc-ws-tab { font-size: .95rem; padding: 10px 18px; }
.svc-chat-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: .88rem;
    color: #1e40af;
}

/* سکشن‌های ERP داخل پورتال */
.svc-ops-panel { background: #f8fafc; border-radius: 12px; padding: 8px; }
.svc-ops-panel .bv-hdr { display: none; }
.svc-ops-panel .sp-section-nav { margin-bottom: 8px; }
.svc-ops-mount .view-body { padding: 0; }

.svc-header__btn {
    padding: 6px 14px;
    border: 1px solid #475569;
    background: transparent;
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}
.svc-header__btn--ghost:hover { background: rgba(255,255,255,.06); }

/* ── Landing ── */
.svc-app.lp-wrap { background: #fff; }
.svc-hero { text-align: center; padding: 48px 24px 32px; }
.svc-hero h1 { margin: 0 0 8px; font-size: 1.75rem; color: #f8fafc; }
.svc-hero p { color: #94a3b8; margin: 0 0 32px; }
.svc-hero-chat { color: #7dd3fc !important; font-size: .88rem; margin-top: 20px !important; text-align: center; width: 100%; }
.svc-hero-talent {
    color: #a5f3fc !important;
    font-size: .9rem;
    margin: 16px auto 0 !important;
    padding: 0 24px;
    text-align: center;
    width: 100%;
    max-width: 100%;
}
.svc-role-card--talent { border-color: #0e7490; background: rgba(14,116,144,.2); }
.svc-role-card--talent:hover { border-color: #22d3ee; }
.svc-feat--talent h3 { color: #67e8f9; }
.svc-hero-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; max-width: 1100px; margin: 0 auto; }
.svc-role-card { flex: 1 1 160px; max-width: 200px;
    padding: 24px 16px;
    background: rgba(30,41,59,.85);
    border: 1px solid #334155;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
    font-family: inherit;
    color: inherit;
    text-align: center;
}
.svc-role-card:hover { transform: translateY(-4px); border-color: #38bdf8; }
.svc-role-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.svc-role-card strong { display: block; font-size: 1rem; color: #f1f5f9; }
.svc-role-card small { color: #64748b; font-size: .8rem; }

.svc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 16px;
}
.svc-feat {
    background: rgba(30,41,59,.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.svc-feat h3 { margin: 0 0 4px; font-size: .9rem; color: #7dd3fc; }
.svc-feat p { margin: 0; font-size: .78rem; color: #94a3b8; }

/* ── Auth ── */
.svc-auth-card {
    max-width: 400px;
    margin: 32px auto;
    padding: 28px;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
}
.svc-auth-card h3 { margin: 0 0 8px; color: #f1f5f9; }
.svc-auth-card p { color: #94a3b8; font-size: .88rem; margin: 0 0 20px; }
.svc-auth-card label { display: block; font-size: .82rem; color: #94a3b8; margin: 12px 0 4px; }
.svc-inp {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 14px;
}
.svc-inp:focus { outline: none; border-color: #38bdf8; }
.svc-btn {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #334155;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}
.svc-btn--primary { background: #0284c7; color: #fff; width: 100%; }
.svc-btn--primary:hover { background: #0369a1; }
.svc-btn:disabled { opacity: .5; cursor: not-allowed; }
.svc-msg { margin-top: 12px; font-size: .85rem; }
.svc-msg--err { color: #f87171; }
.svc-msg--ok { color: #4ade80; }

/* ── Workspace ── */
.svc-app--workspace { background: #f1f5f9; color: #1e293b; }
.svc-app--workspace .svc-header { background: #0f172a; }
.svc-main { max-width: 1100px; margin: 0 auto; padding: 16px; }

.svc-ws { padding-bottom: 32px; }
.svc-ws-hero {
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
    border-radius: 16px;
    padding: 20px 24px;
    color: #fff;
    margin-bottom: 16px;
}
.svc-ws-hero__main { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.svc-ws-hero__icon { font-size: 2rem; }
.svc-ws-hero__name { font-size: 1.1rem; font-weight: 700; }
.svc-ws-hero__sub { font-size: .82rem; opacity: .85; }
.svc-ws-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.svc-ws-kpi { text-align: center; background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px; }
.svc-ws-kpi__val { font-size: 1.25rem; font-weight: 800; }
.svc-ws-kpi__lbl { font-size: .72rem; opacity: .85; margin-top: 2px; }
.svc-tier-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem !important; color: #1e293b; }

.svc-ws-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.svc-ws-tab {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: #475569;
}
.svc-ws-tab--active { background: #0284c7; color: #fff; border-color: #0284c7; }

.svc-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.svc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
}
.svc-card h3, .svc-card h4 { margin: 0 0 10px; font-size: .95rem; color: #0f172a; }
.svc-card--wide { grid-column: 1 / -1; }
.svc-muted { color: #64748b; font-size: .85rem; }
.svc-progress { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.svc-progress__bar { height: 100%; background: linear-gradient(90deg, #0284c7, #38bdf8); border-radius: 99px; }
.svc-rank-big { font-size: 2rem; font-weight: 800; color: #0284c7; }
.svc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-badge-chip {
    background: #fef3c7;
    color: #b45309;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .82rem;
}
.svc-ref-code {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 2px;
    margin: 8px 0;
}
.svc-ref-code--lg { font-size: 1.8rem; }
.svc-ref-form { display: flex; gap: 8px; margin-top: 8px; }
.svc-ref-form .svc-inp { background: #fff; color: #1e293b; margin: 0; flex: 1; }
.svc-hr { border: none; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.svc-ai-tips { margin: 0; padding-right: 20px; font-size: .88rem; color: #475569; }
.svc-ai-tips li { margin-bottom: 6px; }

.svc-table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }
.svc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.svc-table th { text-align: right; padding: 10px 14px; background: #f8fafc; color: #64748b; font-weight: 600; }
.svc-table td { padding: 10px 14px; border-top: 1px solid #f1f5f9; }
.svc-ledger--earn td:nth-child(2) { color: #16a34a; font-weight: 600; }
.svc-ledger--redeem td:nth-child(2) { color: #dc2626; font-weight: 600; }
.svc-lb--me { background: #eff6ff; }

.svc-redeem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.svc-redeem-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.svc-redeem-card--locked { opacity: .65; }
.svc-redeem-cost { font-size: 1.1rem; font-weight: 700; color: #0284c7; margin: 8px 0 12px; }

.svc-empty { text-align: center; padding: 48px; color: #64748b; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }

.svc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: .9rem;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    display: none;
}
.svc-toast--err { background: #991b1b; }
.svc-toast--ok { background: #166534; }

.svc-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svc-profile-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.svc-profile-card h4 { margin: 0 0 6px; font-size: 1rem; }
.svc-profile-meta { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.svc-profile-alerts { margin-top: 8px; }
.svc-alert { font-size: 11px; background: #fff7ed; color: #c2410c; padding: 6px 8px; border-radius: 6px; margin-top: 4px; }

/* ── پرونده مشتری + تایم‌لاین ── */
.svc-profile-wrap { display: flex; flex-direction: column; gap: 12px; }
.svc-profile-tabs { margin-bottom: 4px; flex-wrap: wrap; }
.svc-profile-tabs .svc-profile-tab { font-size: 12px; padding: 8px 14px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.svc-profile-content { min-height: 120px; }
.svc-profile-section { margin-bottom: 20px; }
.svc-profile-section h3 { font-size: 1rem; margin: 0 0 10px; color: #1e40af; }
.svc-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.svc-case-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.svc-case-code { font-family: monospace; font-weight: 800; color: #1d4ed8; font-size: 14px; }
.svc-case-type { font-size: 11px; background: #eff6ff; color: #1d4ed8; padding: 2px 8px; border-radius: 8px; }
.svc-case-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.svc-case-meta { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.svc-case-detail-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.svc-steps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.svc-steps-head h4 { margin: 0 0 4px; font-size: 1rem; color: #1e40af; }
.svc-timeline { margin-top: 10px; }
.svc-tl-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 12px; }
.svc-tl-dot { width: 8px; height: 8px; background: #3b82f6; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.svc-tl-label { font-weight: 600; color: #1e293b; }
.svc-tl-at { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ── مودال جزئیات ERP ── */
.svc-detail-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 99999;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.svc-detail-modal {
    background: #fff; border-radius: 14px; max-width: 640px; width: 100%; max-height: 85vh;
    overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.svc-detail-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; }
.svc-detail-head h3 { margin: 0; font-size: 1rem; }
.svc-detail-body { padding: 16px; overflow-y: auto; font-size: 13px; line-height: 1.6; }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.svc-dispatch-note { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; padding: 8px 10px; border-radius: 8px; font-size: 12px; margin: 10px 0; }

/* ── پورتال تأمین‌کننده ── */
.svc-sup-ws { display: flex; flex-direction: column; gap: 12px; }
.svc-sup-hero { margin-bottom: 0; }
.svc-sup-kpis { margin-bottom: 4px; }
.svc-sup-tabs { flex-wrap: wrap; }
.svc-sup-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.svc-sup-toolbar .svc-input { flex: 1; min-width: 140px; }
.svc-sup-table-wrap { overflow-x: auto; }
.svc-sup-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border-radius: 10px; overflow: hidden; }
.svc-sup-table th, .svc-sup-table td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; text-align: right; }
.svc-sup-table th { background: #f8fafc; color: #475569; font-weight: 600; }
.svc-sup-sku { font-size: 11px; color: #94a3b8; font-family: monospace; }
.svc-sup-type { font-size: 10px; padding: 2px 8px; border-radius: 8px; background: #eff6ff; color: #1d4ed8; }
.svc-sup-type--service { background: #f0fdf4; color: #15803d; }
.svc-sup-type--equipment { background: #faf5ff; color: #7c3aed; }
.svc-sup-actions { white-space: nowrap; }
.svc-sup-form-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 99999;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.svc-sup-form {
    background: #fff; border-radius: 14px; padding: 20px; max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.svc-sup-form h3 { margin: 0 0 14px; font-size: 1rem; color: #1e40af; }
.svc-sup-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.svc-sup-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; }
.svc-sup-form input, .svc-sup-form select, .svc-sup-form textarea {
    padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px;
}
.svc-sup-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.svc-sup-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.svc-sup-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.svc-sup-order-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.svc-sup-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.svc-sup-order-meta { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.svc-sup-order-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.svc-sup-badge { font-size: 10px; background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 8px; }
.svc-sup-profile-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.svc-btn--danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.svc-input--sm { max-width: 140px; }

/* حسابداری پورتال — صف صدور حسابدار */
.svc-acc-office-banner { margin-bottom: 12px; }
.svc-acc-office {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.svc-acc-office__tag {
    background: #1d4ed8; color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
}
.svc-acc-office small { color: #64748b; width: 100%; }
.svc-acc-queue-stats { display: flex; gap: 16px; margin-bottom: 12px; font-size: 13px; color: #475569; }
.svc-acc-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.svc-acc-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; border-top: 3px solid #3b82f6; }
.svc-acc-kpi span { display: block; font-size: 11px; color: #64748b; }
.svc-acc-kpi b { font-size: 15px; }
.svc-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.svc-acc-group h4 { margin: 12px 0 8px; font-size: 13px; color: #334155; }
.svc-acc-hint { font-size: 12px; color: #64748b; margin-top: 12px; line-height: 1.7; }

/* ── Talent Acquisition (جذب کارشناس) ── */
.svc-talent { background: linear-gradient(160deg, #0f172a 0%, #134e4a 40%, #0f172a 100%); min-height: 100vh; }
.svc-talent-ref { margin-right: auto; font-family: monospace; font-size: 12px; color: #67e8f9; }
.svc-talent-hero { text-align: center; padding: 24px 16px 8px; }
.svc-talent-hero h1 { margin: 0 0 6px; font-size: 1.5rem; color: #f0fdfa; }
.svc-talent-hero p { margin: 0; color: #94a3b8; font-size: .88rem; }
.svc-talent-steps {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    max-width: 960px; margin: 0 auto 20px; padding: 0 12px;
}
.svc-talent-step {
    flex: 1 1 100px; max-width: 140px; text-align: center; padding: 10px 8px;
    background: rgba(30,41,59,.6); border: 1px solid #334155; border-radius: 12px;
    opacity: .65; transition: opacity .15s, border-color .15s;
}
.svc-talent-step--active { opacity: 1; border-color: #22d3ee; background: rgba(14,116,144,.35); }
.svc-talent-step--done { opacity: .85; border-color: #0d9488; }
.svc-talent-step__icon { display: block; font-size: 1.25rem; }
.svc-talent-step__title { display: block; font-size: .78rem; font-weight: 700; color: #f1f5f9; margin-top: 4px; }
.svc-talent-step__sub { display: block; font-size: .65rem; color: #64748b; }
.svc-talent-main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.svc-talent-card {
    background: rgba(30,41,59,.92); border: 1px solid #334155; border-radius: 16px;
    padding: 24px; color: #e2e8f0;
}
.svc-talent-card h2 { margin: 0 0 8px; color: #f0fdfa; font-size: 1.2rem; }
.svc-talent-card h3 { margin: 20px 0 10px; font-size: .95rem; color: #7dd3fc; }
.svc-talent-lead { color: #94a3b8; font-size: .88rem; margin: 0 0 20px; line-height: 1.6; }
.svc-talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.svc-talent-grid label, .svc-talent-form > label { display: block; font-size: .82rem; color: #94a3b8; margin-bottom: 12px; }
.svc-talent-ta { resize: vertical; min-height: 80px; }
.svc-talent-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; margin-bottom: 8px; }
.svc-talent-row--cert { grid-template-columns: 1fr 1fr 1fr 80px; }
.svc-talent-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.svc-talent-actions .svc-btn--primary { flex: 1; min-width: 180px; }
.svc-btn--ghost { background: transparent; border: 1px solid #475569; color: #cbd5e1; }
.svc-talent-score {
    display: flex; align-items: baseline; gap: 8px; padding: 12px 16px;
    background: rgba(14,116,144,.25); border-radius: 10px; margin-bottom: 16px;
}
.svc-talent-score strong { font-size: 1.8rem; color: #22d3ee; }
.svc-talent-assess-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.svc-talent-timer { font-family: monospace; font-size: 1.1rem; color: #fbbf24; background: rgba(0,0,0,.3); padding: 6px 12px; border-radius: 8px; }
.svc-talent-q { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #334155; }
.svc-talent-q__head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.svc-talent-q__num {
    width: 28px; height: 28px; border-radius: 50%; background: #0e7490;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.svc-talent-q__cat { font-size: .72rem; color: #67e8f9; background: rgba(14,116,144,.3); padding: 2px 8px; border-radius: 99px; }
.svc-talent-q__text { margin: 0 0 12px; line-height: 1.6; }
.svc-talent-opt {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 6px;
    background: rgba(15,23,42,.6); border: 1px solid #334155; border-radius: 8px; cursor: pointer;
}
.svc-talent-opt:has(input:checked) { border-color: #22d3ee; background: rgba(14,116,144,.2); }
.svc-talent-result-hero { text-align: center; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.svc-talent-result--pass { background: rgba(22,163,74,.2); border: 1px solid #16a34a; }
.svc-talent-result--pending { background: rgba(14,116,144,.2); border: 1px solid #0e7490; }
.svc-talent-result__badge { display: inline-block; font-size: .85rem; margin-bottom: 8px; }
.svc-talent-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.svc-talent-kpi { text-align: center; background: rgba(15,23,42,.5); padding: 12px; border-radius: 10px; }
.svc-talent-kpi span { display: block; font-size: .75rem; color: #94a3b8; }
.svc-talent-kpi strong { font-size: 1.4rem; color: #22d3ee; }
.svc-talent-bd-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .85rem; }
.svc-talent-next-item { display: flex; gap: 12px; padding: 12px; background: rgba(15,23,42,.4); border-radius: 10px; margin-bottom: 8px; }
.svc-talent-next-item span { font-size: 1.5rem; }
.svc-talent-next-item p { margin: 4px 0 0; font-size: .85rem; color: #94a3b8; }
.svc-talent-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.svc-talent-modal__card {
    background: #fff; color: #1e293b; border-radius: 16px; padding: 24px;
    max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
}
.svc-talent-modal__close {
    position: absolute; top: 12px; left: 12px; border: none; background: #f1f5f9;
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1.2rem;
}
.svc-talent-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .88rem; margin: 12px 0; }
.svc-talent-admin .svc-inp { background: #fff; color: #1e293b; }

/* ── Marketer / Affiliate ── */
.svc-role-card--marketer { border-color: #f59e0b !important; background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(234,88,12,.08)) !important; }
.svc-feat--marketer { border-top: 3px solid #f59e0b; }
.svc-auth-card--marketer { border-top: 4px solid #f59e0b; }
.svc-mkt-login-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; font-size: .82rem; color: #64748b; }
.svc-mkt-hero { background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%) !important; }
.svc-mkt-funnel { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.svc-mkt-funnel__item { text-align: center; background: rgba(15,23,42,.5); padding: 16px 20px; border-radius: 12px; min-width: 90px; }
.svc-mkt-funnel__item span { display: block; font-size: 1.5rem; font-weight: 800; color: #fbbf24; }
.svc-mkt-funnel__item small { color: #94a3b8; font-size: .75rem; }
.svc-mkt-funnel__item--ok span { color: #34d399; }
.svc-mkt-funnel__arrow { color: #64748b; font-size: 1.2rem; }
.svc-mkt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.svc-mkt-card { background: rgba(15,23,42,.45); border-radius: 12px; padding: 18px; border: 1px solid rgba(148,163,184,.15); }
.svc-mkt-card h4 { margin: 0 0 12px; font-size: .9rem; color: #e2e8f0; }
.svc-mkt-rates { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #cbd5e1; }
.svc-mkt-rates li { padding: 4px 0; }
.svc-mkt-rank { font-size: 1.4rem; font-weight: 800; color: #fbbf24; margin: 0; }
.svc-mkt-next { font-size: .82rem; color: #94a3b8; margin: 8px 0 0; }
.svc-mkt-form-wrap h3 { margin: 0 0 8px; }
.svc-mkt-hint { color: #94a3b8; font-size: .85rem; margin-bottom: 16px; }
.svc-mkt-form label { display: block; font-size: .8rem; color: #94a3b8; margin: 12px 0 4px; }
.svc-mkt-table-wrap { overflow-x: auto; }
.svc-mkt-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.svc-mkt-table th, .svc-mkt-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid rgba(148,163,184,.15); }
.svc-mkt-table th { color: #94a3b8; font-weight: 600; }
.svc-mkt-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; background: rgba(148,163,184,.2); color: #cbd5e1; }
.svc-mkt-badge--introduced { background: rgba(59,130,246,.2); color: #93c5fd; }
.svc-mkt-badge--request_created { background: rgba(168,85,247,.2); color: #d8b4fe; }
.svc-mkt-badge--converted { background: rgba(16,185,129,.2); color: #6ee7b7; }
.svc-mkt-badge--approved { background: rgba(16,185,129,.25); color: #34d399; }
.svc-mkt-badge--pending { background: rgba(245,158,11,.2); color: #fcd34d; }
.svc-mkt-badge--paid { background: rgba(34,197,94,.2); color: #86efac; }
.svc-mkt-comm-list { display: flex; flex-direction: column; gap: 8px; }
.svc-mkt-comm-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: rgba(15,23,42,.4); border-radius: 10px; gap: 12px; }
.svc-mkt-comm-row small { display: block; color: #64748b; font-size: .75rem; margin-top: 2px; }
.svc-mkt-comm-amt { text-align: left; }
.svc-mkt-share-box { background: rgba(15,23,42,.4); padding: 18px; border-radius: 12px; margin: 16px 0; }
.svc-mkt-copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.svc-mkt-copy-row .svc-inp { flex: 1; }
.svc-mkt-share-tips ul { margin: 8px 0 0; padding-right: 20px; color: #94a3b8; font-size: .85rem; line-height: 1.8; }
.svc-mkt-payout-bal { text-align: center; padding: 24px; background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(234,88,12,.1)); border-radius: 14px; margin-bottom: 20px; }
.svc-mkt-payout-bal strong { display: block; font-size: 1.8rem; color: #fbbf24; margin: 8px 0; }
.svc-mkt-payout-bal small { color: #94a3b8; }
.svc-mkt-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.svc-mkt-tier-card { background: rgba(15,23,42,.4); border-radius: 12px; overflow: hidden; border: 2px solid transparent; position: relative; }
.svc-mkt-tier-card--on { box-shadow: 0 0 0 2px #fbbf24; }
.svc-mkt-tier-card__head { padding: 10px; text-align: center; font-weight: 800; color: #fff; font-size: .9rem; }
.svc-mkt-tier-card ul { list-style: none; padding: 12px 14px; margin: 0; font-size: .82rem; color: #cbd5e1; }
.svc-mkt-tier-card li { padding: 3px 0; }
.svc-mkt-tier-you { display: block; text-align: center; padding: 6px; background: rgba(251,191,36,.2); color: #fbbf24; font-size: .75rem; font-weight: 700; }

/* ── ABC / گراف بهای فعالیت ── */
.svc-abc__intro h3 { margin: 0 0 6px; font-size: 1.1rem; color: #0f172a; }
.svc-abc__intro p { margin: 0 0 14px; color: #64748b; font-size: .9rem; }
.svc-abc__toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.svc-abc__toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #64748b; }
.svc-abc__toolbar input { padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; min-width: 120px; }
.svc-abc__layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.svc-abc__graph-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; }
.svc-abc__svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.svc-abc__legend { display: flex; gap: 14px; padding: 8px 4px; font-size: 12px; color: #64748b; }
.svc-abc__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.svc-abc__legend .c-order { background: #00A1E4; }
.svc-abc__legend .c-act { background: #F2994A; }
.svc-abc__legend .c-person { background: #27AE60; }
.svc-abc__side h4 { margin: 0 0 8px; font-size: .95rem; }
.svc-abc__detail { margin-top: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.svc-abc__pools { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.svc-abc__acts { margin-top: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.svc-abc__crew { margin-top: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.svc-abc__crew-row { display: grid; grid-template-columns: 100px 140px 80px 80px 1fr; gap: 8px; margin-bottom: 8px; }
.svc-abc__crew-row input, .svc-abc__crew-row select {
    padding: 8px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px;
}
@media (max-width: 960px) {
    .svc-abc__layout { grid-template-columns: 1fr; }
    .svc-abc__crew-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .svc-hero h1 { font-size: 1.35rem; }
    .svc-ws-kpis { grid-template-columns: repeat(2, 1fr); }
    .svc-mkt-cards { grid-template-columns: 1fr; }
    .svc-mkt-login-perks { grid-template-columns: 1fr; }
}
