/* ═══════════════════════════════════════════════════════════════
   Zeus v9 Elegant Skin — wygląd v2 nałożony na backend v7
   Celem jest podnieść estetykę dashboardu do premium poziomu,
   bez zmian w logice/JS. Używa tylko CSS overrides.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tło: gradient navy-purple jak v2 ── */
html, body {
    background: linear-gradient(135deg, #0a0e27 0%, #12162e 50%, #1a1f3a 100%) !important;
    color: #e2e8f0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif !important;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ── Header — sticky, glassmorphism ── */
header {
    background: rgba(15, 22, 41, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.15) !important;
    height: 68px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 22px !important;
    font-weight: 800 !important;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 30%, #60a5fa 70%, #a78bfa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 0.02em;
}

.btn-refresh {
    background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(168,85,247,0.15)) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    color: #e2e8f0 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.btn-logout {
    color: #94a3b8 !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08);
}

#last-update {
    color: #64748b !important;
    font-size: 12px !important;
    font-family: ui-monospace, 'SF Mono', monospace;
}

/* ── Navigation tabs ── */
nav {
    background: rgba(15, 22, 41, 0.5) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1) !important;
    padding: 0 24px !important;
    gap: 2px !important;
}

.tab {
    padding: 14px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease;
    position: relative;
}

.tab:hover {
    color: #e2e8f0 !important;
    background: rgba(96, 165, 250, 0.05);
}

.tab.active {
    color: #fbbf24 !important;
    border-bottom-color: #fbbf24 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(251, 191, 36, 0.08) 100%);
}

/* ── Main area ── */
main {
    padding: 28px !important;
    max-width: 1600px !important;
}

/* ── KPI Cards — glass + glow ── */
.card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.15) !important;
    border-radius: 14px !important;
    padding: 22px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.5), transparent);
}

.card:hover {
    border-color: rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.card-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 10px !important;
}

.card-val {
    font-size: 28px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.card-sub {
    color: #64748b !important;
    font-size: 12px !important;
    margin-top: 6px !important;
    font-weight: 500;
}

/* ── Tables ── */
.tbl-wrap {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.15) !important;
    border-radius: 14px !important;
    margin-bottom: 20px;
    overflow: hidden;
}

.tbl-head {
    padding: 18px 22px !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1) !important;
    background: rgba(15, 22, 41, 0.4);
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px !important;
}

th {
    padding: 14px 18px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1) !important;
    background: rgba(15, 22, 41, 0.3);
}

td {
    padding: 12px 18px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.05) !important;
    color: #e2e8f0;
}

tr:hover td {
    background: rgba(96, 165, 250, 0.04) !important;
}

/* ── Badges ── */
.badge {
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-buy {
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.1)) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.badge-sell {
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1)) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

.badge-hold {
    background: rgba(100, 116, 139, 0.15) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.badge-sb {
    background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(16,185,129,0.2)) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

.badge-ss {
    background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(220,38,38,0.2)) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

/* ── Positions cards ── */
.pos-card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.15) !important;
    border-radius: 14px !important;
    padding: 22px !important;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.pos-card:hover {
    border-color: rgba(251, 191, 36, 0.25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pos-symbol {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fbbf24, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pos-pnl {
    font-size: 20px !important;
    font-weight: 800 !important;
}

.pos-item {
    background: rgba(15, 22, 41, 0.6) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    border: 1px solid rgba(96, 165, 250, 0.08);
}

.pos-item-label {
    font-size: 10px !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.pos-item-val {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #e2e8f0;
    margin-top: 4px;
}

/* ── Progress bars ── */
.progress-bar {
    background: rgba(15, 22, 41, 0.8) !important;
    height: 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.progress-fill-tp {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.progress-fill-sl {
    background: linear-gradient(90deg, #ef4444, #f87171) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.sell-when {
    background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(245,158,11,0.05)) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    border-radius: 10px !important;
}

.sell-when-time {
    color: #fbbf24 !important;
    font-weight: 800 !important;
}

/* ── P&L colors with glow ── */
.pos {
    color: #10b981 !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.neg {
    color: #ef4444 !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* ── Fear & Greed ── */
.fg-wrap {
    background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(168,85,247,0.08)) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
}

/* ── Balance chart ── */
.balance-chart-wrap {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.15) !important;
    border-radius: 14px !important;
    padding: 24px !important;
}

.balance-chart-title {
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

/* ── Logs ── */
#logsContent {
    background: rgba(10, 14, 26, 0.7) !important;
    border: 1px solid rgba(96, 165, 250, 0.15) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    font-family: ui-monospace, 'SF Mono', 'Consolas', monospace !important;
    font-size: 12px !important;
    line-height: 1.6;
}

/* ── Loading overlay ── */
#loading {
    background: linear-gradient(135deg, rgba(10,14,39,0.95), rgba(26,31,58,0.95)) !important;
    backdrop-filter: blur(10px);
    font-size: 20px !important;
    color: #fbbf24 !important;
    font-weight: 600;
}

/* ── Bot status row ── */
.bot-status-row {
    background: rgba(15, 22, 41, 0.6) !important;
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 10px !important;
    padding: 14px 18px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s;
}

.bot-status-row:hover {
    border-color: rgba(96, 165, 250, 0.25);
    background: rgba(15, 22, 41, 0.8) !important;
}

.dot-green {
    background: #10b981 !important;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16,185,129,0.4) !important;
}

.dot-red {
    background: #ef4444 !important;
    box-shadow: 0 0 10px #ef4444 !important;
}

.dot-yellow {
    background: #fbbf24 !important;
    box-shadow: 0 0 10px #fbbf24 !important;
}

/* ── RSI bar gradient ── */
.rsi-bar {
    background: rgba(15, 22, 41, 0.8) !important;
    height: 8px !important;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

/* ── No positions placeholder ── */
.no-positions {
    padding: 64px 24px !important;
    color: #64748b !important;
}

.no-positions-icon {
    font-size: 56px !important;
    opacity: 0.5;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 22, 41, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

/* ── Login box — wkład v2 ── */
.box {
    background: rgba(15, 22, 41, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-radius: 20px !important;
    padding: 52px 42px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.box h1 {
    background: linear-gradient(90deg, #fbbf24, #60a5fa, #a78bfa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 32px !important;
    letter-spacing: -0.02em;
}

.box input {
    background: rgba(15, 22, 41, 0.8) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    transition: all 0.2s;
}

.box input:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.box button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
    transition: all 0.2s;
    cursor: pointer;
}

.box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* ── Emergency page ── */
.badge-em {
    background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(220,38,38,0.2)) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
    padding: 4px 12px !important;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Subtle animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .pos-card, .tbl-wrap {
    animation: fadeIn 0.4s ease-out backwards;
}

.cards > .card:nth-child(1) { animation-delay: 0.05s; }
.cards > .card:nth-child(2) { animation-delay: 0.1s; }
.cards > .card:nth-child(3) { animation-delay: 0.15s; }
.cards > .card:nth-child(4) { animation-delay: 0.2s; }
.cards > .card:nth-child(5) { animation-delay: 0.25s; }
.cards > .card:nth-child(6) { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════
   Zeus v9 — v3 Professional Polish (2026-04-20)
   Dodaje: typografię premium, tabular liczby, live pulse, skeleton,
   custom scrollbar, refined spacing. Wszystko !important żeby bić
   inline style w HTML.
   ═══════════════════════════════════════════════════════════════ */

/* ── Typography: Inter + JetBrains Mono ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-feature-settings: 'cv11', 'ss01', 'ss03' !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Liczby: tabular, mono dla danych rynkowych */
.card-val, .pos-pnl, .pos-item-val, .price-big,
td.num, td[data-num], .num, #last-update,
.progress-label {
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: 'tnum' 1, 'zero' 1 !important;
}

/* Ceny/kwoty w tabelach używają mono */
.tbl-wrap td, table.data td {
    font-variant-numeric: tabular-nums !important;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(15, 22, 41, 0.3); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(96,165,250,0.3), rgba(168,85,247,0.3));
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(251,191,36,0.5), rgba(96,165,250,0.5));
    background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(96,165,250,0.3) rgba(15,22,41,0.3); }

/* ── Live indicator: pulsująca zielona kropka ── */
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 0 8px rgba(34, 197, 94, 0.8); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0), 0 0 12px rgba(34, 197, 94, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 8px rgba(34, 197, 94, 0.8); }
}
.dot-green {
    animation: livePulse 2.2s ease-in-out infinite !important;
}

@keyframes redBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }
    50% { opacity: 0.55; box-shadow: 0 0 16px rgba(239, 68, 68, 1); }
}
.dot-red {
    animation: redBlink 1.4s ease-in-out infinite !important;
}

/* ── Tabs: bardziej pro, subtelny underline glow ── */
.tab {
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
    border-radius: 6px 6px 0 0 !important;
    position: relative;
}
.tab:hover {
    background: rgba(96, 165, 250, 0.06) !important;
    color: #cbd5e1 !important;
}
.tab.active {
    background: linear-gradient(180deg, rgba(251,191,36,0.10), transparent) !important;
    font-weight: 600 !important;
}
.tab.active::after {
    content: '';
    position: absolute;
    left: 10%; right: 10%; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}

/* ── Cards: lepsze cienie, hover elevation ── */
.card {
    background: linear-gradient(145deg, rgba(26, 34, 54, 0.8), rgba(15, 22, 41, 0.9)) !important;
    border: 1px solid rgba(96, 165, 250, 0.12) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.card:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.3) !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(251, 191, 36, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.card-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: #64748b !important;
}
.card-val {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ── Tables: professional fintech look ── */
.tbl-wrap {
    background: linear-gradient(180deg, rgba(15, 22, 41, 0.6), rgba(15, 22, 41, 0.9)) !important;
    border: 1px solid rgba(96, 165, 250, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}
.tbl-head {
    background: rgba(10, 14, 39, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
}
th {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
}
td {
    padding: 12px 16px !important;
    font-size: 13px !important;
    transition: background 0.12s ease;
}
tr:hover td {
    background: rgba(96, 165, 250, 0.06) !important;
    color: #f1f5f9;
}

/* ── Badges: glow refinement ── */
.badge {
    padding: 4px 10px !important;
    border-radius: 5px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-buy { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25), 0 0 10px rgba(34, 197, 94, 0.15) !important; }
.badge-sell { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25), 0 0 10px rgba(239, 68, 68, 0.15) !important; }
.badge-sb, .badge-ss { text-shadow: 0 0 8px currentColor; }

/* ── Profit/Loss: delikatny glow ── */
.pos {
    color: #4ade80 !important;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
    font-weight: 600;
}
.neg {
    color: #f87171 !important;
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
    font-weight: 600;
}

/* ── Position cards: premium ── */
.pos-card {
    background: linear-gradient(145deg, rgba(26, 34, 54, 0.9), rgba(15, 22, 41, 0.95)) !important;
    border: 1px solid rgba(96, 165, 250, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.pos-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(251, 191, 36, 0.2) !important;
}
.pos-symbol {
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pos-item {
    background: rgba(10, 14, 39, 0.5) !important;
    border: 1px solid rgba(96, 165, 250, 0.08) !important;
    transition: border-color 0.18s ease;
}
.pos-item:hover {
    border-color: rgba(96, 165, 250, 0.25) !important;
}
.pos-item-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-weight: 500 !important;
}

/* ── Progress bars: gradient fill ── */
.progress-fill-tp {
    background: linear-gradient(90deg, #22c55e, #4ade80) !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.progress-fill-sl {
    background: linear-gradient(90deg, #f87171, #ef4444) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* ── Logs: terminal premium ── */
#logsContent {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace !important;
    font-size: 11.5px !important;
    line-height: 1.55 !important;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.8), rgba(15, 22, 41, 0.6)) !important;
    border: 1px solid rgba(96, 165, 250, 0.1) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── Chart containers: framing ── */
.balance-chart-wrap, .chart-card {
    background: linear-gradient(145deg, rgba(15, 22, 41, 0.9), rgba(10, 14, 39, 0.95)) !important;
    border: 1px solid rgba(96, 165, 250, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
.balance-chart-title, .chart-card h3 {
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

/* ── Buttons: unified refined ── */
.execute-btn.buy {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transition: all 0.2s ease !important;
}
.execute-btn.buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.execute-btn.sell {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transition: all 0.2s ease !important;
}
.execute-btn.sell:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* ── Trading inputs ── */
.form-group input, .form-group select {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    background: rgba(15, 22, 41, 0.8) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}
.form-group input:focus, .form-group select:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15) !important;
}

.pair-btn, .iv-btn, .qp-btn {
    transition: all 0.15s ease !important;
}
.pair-btn:hover, .iv-btn:hover, .qp-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, 0.4) !important;
}

/* ── Loading screen: premium spinner ── */
#loading {
    background: radial-gradient(circle at center, rgba(15, 22, 41, 0.95), rgba(10, 14, 26, 1)) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg,
        rgba(96, 165, 250, 0.05) 0%,
        rgba(96, 165, 250, 0.15) 50%,
        rgba(96, 165, 250, 0.05) 100%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.6s ease-in-out infinite !important;
    border-radius: 4px;
}

/* ── Sell-when box (TP/SL info) ── */
.sell-when {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03)) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.05);
}

/* ── Card hover specifically for balance values ── */
.pos-pnl, .price-big {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

/* ── No-positions state ── */
.no-positions {
    background: linear-gradient(145deg, rgba(15, 22, 41, 0.6), rgba(10, 14, 39, 0.4));
    border: 1px dashed rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    margin: 20px 0;
}

/* ── Sticky header refinement ── */
header {
    z-index: 1000 !important;
}

/* ── Focus-visible accessibility ── */
button:focus-visible, .tab:focus-visible, a:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.6) !important;
    outline-offset: 2px;
}

/* ── Smooth page scroll ── */
html { scroll-behavior: smooth; }

/* ── Selection color ── */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fefce8;
}

/* ── Subtle grain overlay dla premium feelingu ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.015;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ═══════════════════════════════════════════════════════════════
   END Zeus v9 — v3 Professional Polish
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   Zeus v9 — Toast notifications (SSE live) [2026-04-20]
   ═══════════════════════════════════════════════════════════════ */

#zeus-toast-wrap {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 2500 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
    max-width: 380px !important;
}

.zeus-toast {
    background: linear-gradient(145deg, rgba(26, 34, 54, 0.96), rgba(15, 22, 41, 0.98)) !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    border-left: 3px solid #60a5fa !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    transform: translateX(120%) !important;
    opacity: 0 !important;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease !important;
    pointer-events: auto !important;
    min-width: 240px;
    will-change: transform, opacity;
}

.zeus-toast.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.zeus-toast b {
    color: #fbbf24 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.zeus-toast-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zeus-toast-success {
    border-left-color: #22c55e !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(34, 197, 94, 0.15),
        0 0 24px rgba(34, 197, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.zeus-toast-warn {
    border-left-color: #f59e0b !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(245, 158, 11, 0.18),
        0 0 24px rgba(245, 158, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.zeus-toast-error {
    border-left-color: #ef4444 !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(239, 68, 68, 0.2),
        0 0 28px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.zeus-toast-info {
    border-left-color: #60a5fa !important;
}

/* ── Live indicator w header ── */
.zeus-live-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    margin-right: 8px !important;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: livePulse 2.2s ease-in-out infinite;
}

.zeus-live-dot-off {
    background: #f59e0b !important;
    animation: redBlink 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

#last-update.zeus-live {
    color: #4ade80 !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
}

#last-update.zeus-offline {
    color: #f59e0b !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 11.5px !important;
}

/* Mobile */
@media (max-width: 640px) {
    #zeus-toast-wrap {
        right: 12px !important;
        left: 12px !important;
        bottom: 12px !important;
        max-width: none !important;
    }
    .zeus-toast {
        font-size: 12px !important;
    }
}
