/* ════════════════════════════════════════════════════════════════════════════
   EYONCA ECOSYSTEM BADGE SYSTEM v2
   Tactile Soft-Gloss Status Pills + Separated Vibrant Marketplace Brand Pills
   Single Source of Truth across app.eyonca.com
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1. SHARED STATUS PILLS (Soft-Gloss Tactile Style) ──────────────────── */
body .order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px 3.5px 7px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}
body .order-status .ord-st-ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-block;
}
body .order-status.status-preparing,
body .order-status.status-in_progress,
body .order-status.status-not_started {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .order-status.status-ready {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border-color: #93b7fb;
}
body .order-status.status-shipped {
    background: linear-gradient(180deg, #eee5ff 0%, #dfd0ff 100%);
    color: #6d28d9;
    border-color: #bda3f8;
}
body .order-status.status-delivered,
body .order-status.status-fulfilled {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .order-status.status-undelivered {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}
body .order-status.status-payment {
    background: linear-gradient(180deg, #ffe3d0 0%, #ffd0b2 100%);
    color: #c2410c;
    border-color: #f4a87e;
}
body .order-status.status-cancelled {
    background: linear-gradient(180deg, #eceef1 0%, #dcdfe5 100%);
    color: #273142;
    border-color: #c2c8d1;
}
body .order-status.status-unknown {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-color: #cbd5e1;
}

/* ── 2. SHARED MARKETPLACE BRAND PILLS (Trendyol Solid Orange vs HB Soft Orange) ── */
body .source-badge,
body .fv-plat,
body .plat-badge,
body .ey-plat-badge,
body .pk-badge-ty,
body .pk-badge-hb,
body .pk-badge-idefix,
body .pk-badge-n11,
body .pk-badge-koctas,
body .pk-badge-pazarama,
body .pk-badge-ciceksepeti,
body .pk-badge-shopify,
body .pk-badge-ikas,
body .pk-badge-gen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9.5px 3px 8px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: none;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 3px rgba(15, 23, 42, 0.14);
    vertical-align: middle;
}
body .source-badge .src-ico {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Trendyol — Solid Vivid Orange Pill */
body .source-badge.source-trendyol,
body .fv-plat.fv-plat-ty,
body .plat-badge.plat-ty,
body .ey-plat-badge.ey-plat-trendyol,
body .pk-badge-ty {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid #d95308;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(234, 88, 12, 0.30);
}

/* Hepsiburada — Soft Warm Peach-Orange Pill with #FF6000 Border & Text (Distinct from Trendyol) */
body .source-badge.source-hepsiburada,
body .fv-plat.fv-plat-hb,
body .plat-badge.plat-hb,
body .ey-plat-badge.ey-plat-hepsiburada,
body .pk-badge-hb {
    background: linear-gradient(180deg, #fff6f0 0%, #ffe9da 100%);
    color: #d9480f;
    border: 1.5px solid #ff7a29;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(255, 96, 0, 0.14);
}
body .source-badge.source-hepsiburada .src-ico {
    color: #ff6000;
}

/* İdefix — Electric Blue Pill */
body .source-badge.source-idefix,
body .fv-plat.fv-plat-idefix,
body .plat-badge.plat-idf,
body .ey-plat-badge.ey-plat-idefix,
body .pk-badge-idefix {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid #1e40af;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(37, 99, 235, 0.30);
}

/* N11 — Vivid Purple Pill */
body .source-badge.source-n11,
body .fv-plat.fv-plat-n11,
body .plat-badge.plat-n11,
body .ey-plat-badge.ey-plat-n11,
body .pk-badge-n11 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    border: 1px solid #5b21b6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(109, 40, 217, 0.28);
}

/* Koçtaş — Rich Amber Pill */
body .source-badge.source-koctas,
body .fv-plat.fv-plat-koctas,
body .plat-badge.plat-kct,
body .ey-plat-badge.ey-plat-koctas,
body .pk-badge-koctas {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid #b45309;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(217, 119, 6, 0.28);
}

/* ÇiçekSepeti — Vivid Cyan Pill */
body .source-badge.source-ciceksepeti,
body .ey-plat-badge.ey-plat-ciceksepeti,
body .pk-badge-ciceksepeti {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff;
    border: 1px solid #0369a1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(2, 132, 199, 0.28);
}

/* Pazarama — Vivid Rose-Crimson Pill */
body .source-badge.source-pazarama,
body .ey-plat-badge.ey-plat-pazarama,
body .pk-badge-pazarama {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: 1px solid #be123c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(225, 29, 72, 0.28);
}

/* Shopify — Vivid Emerald Green Pill */
body .source-badge.source-shopify,
body .pk-badge-shopify {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border: 1px solid #15803d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(22, 163, 74, 0.28);
}

/* ikas — Royal Indigo Pill */
body .source-badge.source-ikas,
body .fv-plat.fv-plat-ikas,
body .plat-badge.plat-ikas,
body .ey-plat-badge.ey-plat-ikas,
body .pk-badge-ikas {
    background: linear-gradient(135deg, #5B4BFF 0%, #4338CA 100%);
    color: #ffffff;
    border: 1px solid #3730A3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 3px rgba(91, 75, 255, 0.30);
}

/* Amazon — Midnight Slate Pill */
body .source-badge.source-amazon {
    background: linear-gradient(135deg, #232f3e 0%, #0f172a 100%);
    color: #ffffff;
    border: 1px solid #334155;
}

/* eBay & Generic Fallback */
body .source-badge.source-ebay,
body .source-badge.source-ebay-buyday {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid #1d4ed8;
}
body .source-badge.source-ebay-clickmax {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    border: 1px solid #be185d;
}
body .source-badge.source-unknown,
body .pk-badge-gen {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
    border: 1px solid #334155;
}

/* ── 3. DASHBOARD STATUS & INTEGRATION BADGES ───────────────────────────── */
body .dash-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.06);
}
body .dash-status-badge.pending {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .dash-status-badge.shipped {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border-color: #93b7fb;
}
body .dash-status-badge.completed {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .dash-status-badge.cancelled {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}

body .int-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9.5px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
}
body .int-badge.on {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border: 1px solid #74d498;
}
body .int-badge.off {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border: 1px solid #ee9494;
}

/* ── 4. INVOICE MANAGEMENT (/invoice-management) BADGES ─────────────────── */
body .fv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.06);
    white-space: nowrap;
}
body .fv-badge.fv-badge-sent {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .fv-badge.fv-badge-pending {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .fv-badge.fv-badge-processing {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border-color: #93b7fb;
}
body .fv-badge.fv-badge-failed {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}
body .fv-badge.fv-badge-cancelled {
    background: linear-gradient(180deg, #eceef1 0%, #dcdfe5 100%);
    color: #273142;
    border-color: #c2c8d1;
}

/* ── 5. RETURNS (/returns) STATUS & COUNTDOWN BADGES ────────────────────── */
body .st-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.06);
    white-space: nowrap;
}
body .st-badge.st-pending {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .st-badge.st-accepted {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .st-badge.st-damaged {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}
body .st-badge.st-wrong {
    background: linear-gradient(180deg, #ffe3d0 0%, #ffd0b2 100%);
    color: #c2410c;
    border-color: #f4a87e;
}
body .st-badge.st-empty {
    background: linear-gradient(180deg, #eceef1 0%, #dcdfe5 100%);
    color: #273142;
    border-color: #c2c8d1;
}
body .st-badge.st-disputed {
    background: linear-gradient(180deg, #eee5ff 0%, #dfd0ff 100%);
    color: #6d28d9;
    border-color: #bda3f8;
}
body .st-badge.st-resolved {
    background: linear-gradient(180deg, #d1faf5 0%, #b6f2eb 100%);
    color: #0f766e;
    border-color: #6ee7dc;
}

body .ret-cd-badge {
    border-radius: 999px;
    padding: 3px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ── 6. PRODUCTS (/products) PREMIUM BADGES & BUYBOX PILLS ──────────────── */
body .platform-badge-premium {
    border-radius: 999px;
    padding: 3px 9.5px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 1px 2px rgba(15, 23, 42, 0.08);
}
body .platform-badge-premium.ty-active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #d95308;
}
body .platform-badge-premium.hb-active {
    background: linear-gradient(180deg, #fff6f0 0%, #ffe9da 100%);
    color: #d9480f;
    border: 1.5px solid #ff7a29;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(255, 96, 0, 0.14);
}
body .platform-badge-premium.ty-passive,
body .platform-badge-premium.hb-passive {
    background: linear-gradient(180deg, #f1f5f9 0%, #e5eaf0 100%);
    color: #64748b;
    border-color: #cbd5e1;
}

body .stock-badge-premium {
    border-radius: 999px;
    padding: 3.5px 11px;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
}
body .stock-badge-premium.in-stock {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .stock-badge-premium.low-stock {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .stock-badge-premium.out-of-stock {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}

body .bb-badge {
    border-radius: 999px;
    padding: 2.5px 8.5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
}
body .bb-badge .bb-plat {
    border-radius: 999px;
    padding: 1px 5.5px;
}
body .bb-badge .bb-plat.ty {
    background: #f97316;
    color: #ffffff;
}
body .bb-badge .bb-plat.hb {
    background: #fff2e8;
    color: #d9480f;
    border: 1px solid #ff7a29;
}
body .bb-badge.bb-lost {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}
body .bb-badge.bb-opp {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border-color: #93b7fb;
}
body .bb-badge.bb-won-multi {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}

/* ── 7. PROFIT ANALYTICS (/profit-analytics) BADGES ─────────────────────── */
body .pa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9.5px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
}
body .pa-badge.pa-badge-success {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .pa-badge.pa-badge-danger {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}
body .pa-badge.pa-badge-warning {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .pa-badge.pa-badge-info {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border-color: #93b7fb;
}
body .pa-badge.pa-badge-neutral {
    background: linear-gradient(180deg, #eceef1 0%, #dcdfe5 100%);
    color: #273142;
    border-color: #c2c8d1;
}

/* ── 8. REPORTS (/reports) BADGES ───────────────────────────────────────── */
body .r-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9.5px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
}
body .r-badge.green {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border-color: #74d498;
}
body .r-badge.red {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%);
    color: #b91c1c;
    border-color: #ee9494;
}
body .r-badge.amber {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border-color: #f0b653;
}
body .r-badge.blue {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border-color: #93b7fb;
}
body .r-badge.purple {
    background: linear-gradient(180deg, #eee5ff 0%, #dfd0ff 100%);
    color: #6d28d9;
    border-color: #bda3f8;
}
body .r-badge.slate {
    background: linear-gradient(180deg, #eceef1 0%, #dcdfe5 100%);
    color: #273142;
    border-color: #c2c8d1;
}

/* ── 9. PURCHASE ORDERS, ACCOUNTING, CARI BADGES ────────────────────────── */
body .badge-status,
body .card-status-pill,
body .et-badge,
body .expense-type-badge {
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
}
body .card-status-pill.pill-completed {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%);
    color: #0f7a3c;
    border: 1px solid #74d498;
}
body .card-status-pill.pill-pending {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%);
    color: #b45309;
    border: 1px solid #f0b653;
}
body .card-status-pill.pill-partial {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%);
    color: #1d4ed8;
    border: 1px solid #93b7fb;
}

/* ── 10. GLOBAL BOOTSTRAP SUBTLE STATUS PILLS (Support, Subscription, Modals) ── */
body .badge.bg-success-subtle:not(.rounded-circle),
body .badge.bg-warning-subtle:not(.rounded-circle),
body .badge.bg-danger-subtle:not(.rounded-circle),
body .badge.bg-info-subtle:not(.rounded-circle),
body .badge.bg-primary-subtle:not(.rounded-circle),
body .badge.bg-secondary-subtle:not(.rounded-circle) {
    border-radius: 999px;
    padding: 0.34em 0.78em;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(15, 23, 42, 0.05);
    border-width: 1px;
    border-style: solid;
}
body .badge.bg-success-subtle:not(.rounded-circle) {
    background: linear-gradient(180deg, #ccf5dc 0%, #b5ecc9 100%) !important;
    color: #0f7a3c !important;
    border-color: #74d498 !important;
}
body .badge.bg-warning-subtle:not(.rounded-circle) {
    background: linear-gradient(180deg, #ffe7b8 0%, #fdd998 100%) !important;
    color: #b45309 !important;
    border-color: #f0b653 !important;
}
body .badge.bg-danger-subtle:not(.rounded-circle) {
    background: linear-gradient(180deg, #fddada 0%, #f9c4c4 100%) !important;
    color: #b91c1c !important;
    border-color: #ee9494 !important;
}
body .badge.bg-info-subtle:not(.rounded-circle),
body .badge.bg-primary-subtle:not(.rounded-circle) {
    background: linear-gradient(180deg, #dce8ff 0%, #c7dbff 100%) !important;
    color: #1d4ed8 !important;
    border-color: #93b7fb !important;
}
body .badge.bg-secondary-subtle:not(.rounded-circle) {
    background: linear-gradient(180deg, #eceef1 0%, #dcdfe5 100%) !important;
    color: #273142 !important;
    border-color: #c2c8d1 !important;
}
