/* Üst özet kartı */
.pnl-summary {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* NET başlık yazısı */
.pnl-summary-main .pnl-summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

/* NET değer satırı */
.pnl-summary-net-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pnl-summary-main .pnl-summary-net {
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* NET yüzde badge – Banka/Binance rozetleri ile uyumlu */
.pnl-summary-percent-badge {
    background: transparent !important;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #9ca3af !important;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

/* Yüzde badge renk durumları */
.pnl-summary-percent-badge.bg-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}

.pnl-summary-percent-badge.bg-danger {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.pnl-summary-percent-badge.bg-secondary {
    border-color: rgba(148, 163, 184, 0.7) !important;
    color: #9ca3af !important;
}

/* Özet item’ler */
.pnl-summary-item .label {
    font-size: 0.75rem;
    opacity: 0.75;
}

.pnl-summary-item .value {
    font-size: 0.9rem;
    font-weight: 600;
}

.pnl-summary-item .label-badge {
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

/* Genel modal */
.bot-modal {
    background-color: #15171c;
    color: #f1f1f1;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.modal-backdrop.show {
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    background-color: rgba(0, 0, 0, 0.55);
}

/* Filtre alanı */
#dailyPnlModal .pnl-filters .d-flex {
    align-items: flex-end;
}

#dailyPnlModal .pnl-filters .pnl-filter-item {
    min-width: 160px;
}

#dailyPnlModal .pnl-filters .pnl-filter-symbol {
    /*min-width: 220px;*/
}

#dailyPnlModal .pnl-filters .form-label-sm {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    opacity: 0.8;
}

#dailyPnlModal .pnl-filter-control {
    background: linear-gradient(145deg, #15171c, #1f2229);
    border-radius: 0.55rem;
    border: 1px solid #262b34;
    color: #ffffff;
    height: 2.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

#dailyPnlModal .pnl-filter-control:focus {
    background: linear-gradient(145deg, #171a22, #232732);
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.4);
    color: #ffffff;
}

#dailyPnlModal .pnl-date-input {
    background-color: transparent;
    color: #ffffff;
    caret-color: #ffffff;
}

#dailyPnlModal .pnl-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Select ve Select2 */
#dailyPnlModal select.pnl-filter-control {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 1.8rem;
    background-color: #15171c;
    color: #ffffff;
}

#dailyPnlModal select.pnl-filter-control option {
    background-color: #15171c;
    color: #ffffff;
}

#dailyPnlModal select.pnl-filter-control option:checked,
#dailyPnlModal select.pnl-filter-control option:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

#dailyPnlModal .select2-container--default .select2-selection--single {
    background: linear-gradient(145deg, #15171c, #1f2229);
    border-radius: 0.55rem;
    border: 1px solid #262b34;
    height: 2.35rem;
    padding: 0.15rem 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

#dailyPnlModal
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.9rem;
    padding-left: 0.1rem;
}

#dailyPnlModal
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 1.9rem;
}

#dailyPnlModal .select2-selection__clear {
    color: #ffffff;
    opacity: 0.8;
    font-size: 1rem;
    margin-right: 0.3rem;
}

#dailyPnlModal .select2-selection__clear:hover {
    opacity: 1;
}

#dailyPnlModal .select2-dropdown {
    background-color: #15171c;
    border: 1px solid #262b34;
    color: #ffffff;
}

#dailyPnlModal .select2-results__option {
    font-size: 0.85rem;
}

/* Filtre butonları */
#dailyPnlModal .pnl-filter-actions .pnl-filter-btn {
    height: 2.35rem;
    border-radius: 0.55rem;
    padding: 0 0.9rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#dailyPnlModal .pnl-filter-actions .pnl-filter-btn i {
    font-size: 0.8rem;
}

.pnl-totals-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.65rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.pnl-total-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.pnl-total-item {
    flex: 1 1 0;
    min-width: 180px;
    text-align: center;
}

.pnl-total-item .label {
    opacity: 0.75;
    margin-bottom: 0.1rem;
}

.pnl-total-item .value {
    font-weight: 600;
}

/* Tablo kolon genişlikleri */
#dailyPnlModal #daily-pnl-table th.pnl-col-datetime,
#dailyPnlModal #daily-pnl-table td.pnl-col-datetime {
    width: 22%;
}

#dailyPnlModal #daily-pnl-table th.pnl-col-symbol,
#dailyPnlModal #daily-pnl-table td.pnl-col-symbol {
    width: 18%;
}

#dailyPnlModal #daily-pnl-table th.pnl-col-price,
#dailyPnlModal #daily-pnl-table td.pnl-col-price {
    width: 10%;
}

#dailyPnlModal #daily-pnl-table th.pnl-col-pnl,
#dailyPnlModal #daily-pnl-table td.pnl-col-pnl {
    width: 8%;
}

#dailyPnlModal #daily-pnl-table th.pnl-col-commission,
#dailyPnlModal #daily-pnl-table td.pnl-col-commission {
    width: 8%;
}

/* Modal başlığı */
#dailyPnlModal .pnl-modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

#dailyPnlModal .pnl-modal-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 30% 0%,
        #3cffc5,
        #0078ff 65%,
        #001220 100%
    );
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.45),
        0 0 22px rgba(0, 120, 255, 0.4);
}

#dailyPnlModal .pnl-modal-title-icon i {
    font-size: 0.95rem;
    color: #0b1020;
}

#dailyPnlModal .pnl-modal-title-text {
    background: linear-gradient(
        120deg,
        #f8fbff,
        #58d5ff 35%,
        #6affc8 70%,
        #c4c8ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 0, 0, 0.9);
    font-weight: 700;
    text-transform: uppercase;
}

/* Trade detay kartı */
.pnl-trade-details {
    background-color: #0f172a;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.pnl-trade-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pnl-trade-details-symbol {
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pnl-trade-details-asset {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #9ca3af;
    text-transform: uppercase;
}

.pnl-trade-details-datetime {
    font-size: 0.8rem;
    color: #9ca3af;
}

.pnl-trade-details-body {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    padding-top: 0.75rem;
}

.pnl-trade-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem 1.5rem;
}

.pnl-trade-details-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.pnl-trade-details-row .label {
    color: #9ca3af;
}

.pnl-trade-details-row .value {
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

/* Detay satırı arkaplanı */
#daily-pnl-table tbody tr.pnl-details-open {
    background-color: rgba(15, 23, 42, 0.9);
}

#daily-pnl-table tbody tr.pnl-details-row > td {
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
    border-top: none;
    background-color: transparent;
}

/* Küçük USDT rozetleri */
.pnl-unit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.4rem;
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #9ca3af;
    text-transform: uppercase;
}

.pnl-unit-inline {
    margin-left: 0.25rem;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
}

#dailyPnlModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 rgba(15, 23, 42, 0.9);
    overflow-x: hidden;
}

#dailyPnlModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#dailyPnlModal .modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
}

#dailyPnlModal .modal-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, #22c55e, #0ea5e9);
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.6),
        0 0 12px rgba(16, 185, 129, 0.5);
}

#dailyPnlModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4ade80, #38bdf8);
}
#dailyPnlModal .pnl-filters .pnl-filter-item > label {
    display: block;
}
/* === SMS RING – full 360° donut === */

.sms-ring {
    /* renkler */
    --ring-gradient: linear-gradient(90deg, rgb(22, 163, 74), rgb(34, 197, 94));
    --ring-brightness: 0.4; /* 0.0–1.4 arası oynatacağız */

    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* dış çerçeve – sadece border alanı boyalı, iç boş */
.sms-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    /* tam çember gradient */
    background: var(--ring-gradient);

    /* donut efekti: ortayı kes */
    -webkit-mask: radial-gradient(farthest-side, transparent 60%, #000 62%);
    mask: radial-gradient(farthest-side, transparent 60%, #000 62%);

    /* siyah → renk geçişi için parlaklık */
    filter: brightness(var(--ring-brightness));
    transition: filter 0.35s ease;
    z-index: 0;
}

/* iç daire – sadece yazı/icon için, bg yok (satır rengi görünür) */
.sms-ring-inner {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.sms-ring-inner * {
    position: relative;
    z-index: 1;
}

/* + yüzdeler için yeşil gradient */
.sms-ring-pos {
    --ring-gradient: linear-gradient(90deg, rgb(22, 163, 74), rgb(34, 197, 94));
}

/* - yüzdeler için kırmızı / turuncu gradient */
.sms-ring-neg {
    --ring-gradient: linear-gradient(90deg, #b91c1c, #f97316);
}

/* kilitli: mute gri */
.sms-ring-muted {
    --ring-gradient: linear-gradient(90deg, #6b7280, #374151);
}

/* yüzdeler */
.sms-ring-label {
    font-size: 11px;
    font-weight: 600;
    color: #bbf7d0;
}

.sms-ring-neg .sms-ring-label {
    color: #fecaca;
}

/* kilit iconu */
.sms-ring-lock {
    font-size: 13px;
    color: #ffc107 !important;
}
.bot-console-wrapper {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-color: #3b4252 #0b1017;
    scrollbar-width: thin;
}
.symbol-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
    vertical-align: middle;
}

.symbol-placeholder-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
}
/* DIŞ KABUK: hem input hem toggle için tek border */
.spot-input-toggle-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #3fe2a8; /* tek çerçeve */
    border-radius: 0.25rem;
    overflow: hidden;
    background: #151821; /* formun arka planına göre ayarla */
}

/* input artık kendi borderını çizmesin, kabuğun içinde dursun */
.spot-input-toggle-wrapper .form-control {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    flex: 1 1 auto;
}

/* toggle: içteki sağ bölüm, border yok, sadece container ile birleşik */
.spot-toggle {
    display: flex;
    align-items: stretch;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.4); /* input ile arasında ince çizgi */
    border-radius: 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 110px;
    background: transparent;
}

.spot-toggle-option {
    flex: 1;
    border: none;
    background: transparent;
    color: #3fe2a8;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    outline: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.spot-toggle-option:focus {
    box-shadow: none;
}

.spot-toggle-option.active {
    background-color: #3fe2a8;
    color: #111;
}

.spot-toggle-option + .spot-toggle-option {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}
.bot-market-card {
    padding: 1rem 1.5rem 1.25rem;
}

.bot-market-ticker {
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    display: block;
}

.bot-market-ticker .tradingview-widget-container__widget,
.bot-market-ticker iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.bot-market-card .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

.js-copyright-label {
    display: none !important;
}
.bot-portfolio-summary {
    padding: 14px 18px;
    border-radius: 18px;
    background: radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.12),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(248, 113, 113, 0.12),
            transparent 55%
        ),
        #050816;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.bot-portfolio-summary--profit {
    background: radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(56, 189, 248, 0.1),
            transparent 55%
        ),
        #020617;
    border-color: rgba(34, 197, 94, 0.45);
}

.bot-portfolio-summary--loss {
    background: radial-gradient(
            circle at top left,
            rgba(239, 68, 68, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(88, 28, 135, 0.1),
            transparent 55%
        ),
        #020617;
    border-color: rgba(239, 68, 68, 0.45);
}

.bot-portfolio-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.bot-portfolio-sub {
    font-size: 0.75rem;
}

.bot-portfolio-label {
    font-size: 0.75rem;
}

.bot-portfolio-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.bot-portfolio-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9) inset,
        0 1px 3px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.bot-portfolio-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.bot-portfolio-progress-meta {
    font-size: 0.75rem;
}

.bot-portfolio-pnl,
.bot-portfolio-progress-meta span {
    transition: color 0.25s ease;
}

.bot-scan-summary-card {
    border-radius: 18px;
    background: radial-gradient(
            circle at top left,
            rgba(59, 130, 246, 0.2),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(45, 212, 191, 0.14),
            transparent 55%
        ),
        #020617;
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.bot-portfolio-summary {
    border-radius: 18px;
    background: radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.12),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(248, 113, 113, 0.12),
            transparent 55%
        ),
        #050816;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.bot-portfolio-summary--profit {
    background: radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(56, 189, 248, 0.1),
            transparent 55%
        ),
        #020617;
    border-color: rgba(34, 197, 94, 0.45);
}

.bot-portfolio-summary--loss {
    background: radial-gradient(
            circle at top left,
            rgba(239, 68, 68, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(88, 28, 135, 0.1),
            transparent 55%
        ),
        #020617;
    border-color: rgba(239, 68, 68, 0.45);
}
/* Kartın kendisi – daha önce tanımladıysan aynen kullanabilirsin */
.bot-portfolio-summary {
    border-radius: 18px;
    background: radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.12),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(248, 113, 113, 0.12),
            transparent 55%
        ),
        #050816;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

/* Kârdaysa / zarardaysa kart tonu – updateOpenPortfolioSummary zaten sınıf ekliyor */
.bot-portfolio-summary--profit {
    background: radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(56, 189, 248, 0.1),
            transparent 55%
        ),
        #020617;
    border-color: rgba(34, 197, 94, 0.45);
}

.bot-portfolio-summary--loss {
    background: radial-gradient(
            circle at top left,
            rgba(239, 68, 68, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(88, 28, 135, 0.1),
            transparent 55%
        ),
        #020617;
    border-color: rgba(239, 68, 68, 0.45);
}

/* === TICKER ALANI === */

.bot-portfolio-ticker {
    position: relative;
    overflow: hidden;
    height: 32px;
}

.bot-portfolio-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    will-change: transform;
}

/* Tek tek pinler */
.bot-portfolio-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.75rem;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25),
        0 4px 10px rgba(15, 23, 42, 0.8);
}

.bot-portfolio-ticker-symbol {
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-right: 6px;
    color: #e5e7eb;
}

.bot-portfolio-ticker-pct {
    font-variant-numeric: tabular-nums;
}

.bot-portfolio-ticker-item.is-profit .bot-portfolio-ticker-pct {
    color: #4ade80;
}

.bot-portfolio-ticker-item.is-loss .bot-portfolio-ticker-pct {
    color: #f97373;
}

.bot-portfolio-ticker-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
}

.bot-portfolio-ticker-fade-left {
    left: 0;
    background: linear-gradient(to right, #050816, transparent);
}

.bot-portfolio-ticker-fade-right {
    right: 0;
    background: linear-gradient(to left, #050816, transparent);
}
.bot-portfolio-ticker-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #ffffff, #e5e7eb);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85);
}

.bot-portfolio-ticker-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.bot-portfolio-ticker-item.is-neutral .bot-portfolio-ticker-pct {
    color: #9ca3af; /* soft gri */
}
/* Açık pozisyon PnL kartı – PnL renkleri */
.bot-portfolio-pnl.bot-portfolio-pnl--profit {
    color: #22c55e; /* Tailwind-vari güzel bir yeşil */
}

.bot-portfolio-pnl.bot-portfolio-pnl--loss {
    color: #f97373; /* yumuşak kırmızı/turuncu */
}

.bot-portfolio-pnl.bot-portfolio-pnl--neutral {
    color: #9ca3af; /* gri / muted */
}
#open-portfolio-summary {
    position: relative;
    padding-right: 40px !important; /* sağda bar için alan */
}

/* Dikey bar konumu */
.bot-portfolio-vbar-wrapper {
    position: absolute;
    top: 24px;
    bottom: 24px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Dış kabuk (3D frame) */
.bot-portfolio-vbar {
    width: 12px;
    height: 100%;
    padding: 2px; /* iç track için */
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #020617,
        #020617 20%,
        #0b1120 60%,
        #020617
    );
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95), 0 0 18px rgba(0, 0, 0, 0.9);
    display: flex;
}

/* Asıl track (yeşil + kırmızı buranın içinde) */
#open-pnl-vbar {
    flex: 1;
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: radial-gradient(
        circle at 30% 0%,
        #020617,
        #020617 60%,
        #020617
    );
    box-shadow: inset 0 0 4px rgba(15, 23, 42, 0.85),
        inset 0 0 10px rgba(0, 0, 0, 0.9);
}

/* Ortak */
.bot-portfolio-vbar-win,
.bot-portfolio-vbar-loss {
    width: 100%;
    transition: height 0.35s ease, opacity 0.25s ease;
}

/* Üst taraf (kâr) */
.bot-portfolio-vbar-win {
    background: linear-gradient(
        180deg,
        #4ade80 0%,
        #22c55e 35%,
        #16a34a 65%,
        #22c55e 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 10px rgba(34, 197, 94, 0.75);
    border-radius: 999px 999px 3px 3px;
    margin-bottom: 3px; /* yeşil ile kırmızı arasında minik boşluk */
}

/* Alt taraf (zarar) */
.bot-portfolio-vbar-loss {
    background: linear-gradient(
        180deg,
        #fb923c 0%,
        #f97316 35%,
        #ef4444 75%,
        #7f1d1d 100%
    );
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12),
        0 0 10px rgba(248, 113, 113, 0.75);
    border-radius: 3px 3px 999px 999px;
}

/* Gerçekten boşken soluk dursun – class is-empty wrapper’da */
.bot-portfolio-vbar.is-empty .bot-portfolio-vbar-win,
.bot-portfolio-vbar.is-empty .bot-portfolio-vbar-loss {
    opacity: 0.18;
    box-shadow: none;
}
