/**
 * Pulsrad - Dashboard & Canlı Terminal Stilleri
 * Tamamen Sitenin Koyu Teması (Deep Obsidian #0a0b0e & Kart #12141a)
 */

body.dashboard-body {
    background-color: var(--bg-body, #0a0b0e) !important;
    color: var(--text-primary, #f8fafc) !important;
    font-family: var(--font-main, 'Space Grotesk', -apple-system, sans-serif);
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Dashboard Layout (Tam Ekran Terminal Arayüzü) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dash-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dash-nav-item:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.dash-nav-item.active {
    background-color: var(--bullish-bg);
    color: var(--bullish);
    border-left: 3px solid var(--bullish);
}

.dash-content {
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--bg-body);
}

/* Ticker Barı */
.live-ticker-strip {
    background: var(--bg-th);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.82rem;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 35s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
}

/* İstatistik Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card .stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-card .stat-sub {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Sekmeler (Tabs) */
.card-header-radar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

/* ===================================================
   Pulsrad 4-KUTU CANLI TERMINAL STILLERI
   =================================================== */
.terminal-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 2rem 3rem;
    box-sizing: border-box;
}

.terminal-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: var(--bg-card, #12141a);
    border: 1px solid var(--border-color, #1e222d);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.terminal-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-pulse-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: 0.5px;
}

.terminal-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: radarBlink 1.4s infinite;
}

@keyframes radarBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.terminal-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-audio-toggle {
    background: var(--bg-card-hover, #181b24);
    border: 1px solid var(--border-color, #1e222d);
    color: var(--text-secondary, #94a3b8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-audio-toggle:hover {
    background: var(--bg-input, #0e1015);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-audio-toggle.active {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

/* 4 Sütunlu Grid */
.terminal-exchanges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .terminal-exchanges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .terminal-exchanges-grid {
        grid-template-columns: 1fr;
    }
}

/* Borsa Kutusu - Site Koyu Kart Teması */
.exchange-box {
    background: var(--bg-card, #12141a);
    border: 1px solid var(--border-color, #1e222d);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 720px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: border-color 0.25s ease;
}

.exchange-box:hover {
    border-color: var(--border-color-focus, #00d588);
}

/* Borsa Temalı Üst Başlıklar */
.exchange-box-header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color, #1e222d);
    background: var(--bg-card, #12141a);
}

.box-binance .exchange-box-header {
    border-top: 3px solid #f0b90b;
    background: linear-gradient(180deg, rgba(240, 185, 11, 0.08) 0%, transparent 100%);
}

.box-mexc .exchange-box-header {
    border-top: 3px solid #00b8d9;
    background: linear-gradient(180deg, rgba(0, 184, 217, 0.08) 0%, transparent 100%);
}

.box-raydium .exchange-box-header {
    border-top: 3px solid #9945ff;
    background: linear-gradient(180deg, rgba(153, 69, 255, 0.08) 0%, transparent 100%);
}

.box-pumpfun .exchange-box-header {
    border-top: 3px solid #14f195;
    background: linear-gradient(180deg, rgba(20, 241, 149, 0.08) 0%, transparent 100%);
}

.exchange-header-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.exchange-logo-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.box-binance .exchange-logo-badge {
    background: rgba(240, 185, 11, 0.2);
    color: #f0b90b;
    border: 1px solid rgba(240, 185, 11, 0.35);
}

.box-mexc .exchange-logo-badge {
    background: rgba(0, 184, 217, 0.2);
    color: #00b8d9;
    border: 1px solid rgba(0, 184, 217, 0.35);
}

.box-raydium .exchange-logo-badge {
    background: rgba(153, 69, 255, 0.2);
    color: #c084fc;
    border: 1px solid rgba(153, 69, 255, 0.35);
}

.box-pumpfun .exchange-logo-badge {
    background: rgba(20, 241, 149, 0.2);
    color: #14f195;
    border: 1px solid rgba(20, 241, 149, 0.35);
}

.exchange-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #f8fafc;
}

.exchange-counter {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Kutu İçeriği (Kart Akışı) */
.exchange-box-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.exchange-box-body::-webkit-scrollbar {
    width: 5px;
}
.exchange-box-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}
.exchange-box-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.exchange-box-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sinyal Kartı */
.signal-feed-card {
    background: var(--bg-input, #0e1015);
    border: 1px solid var(--border-color, #1e222d);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.signal-feed-card:hover {
    background: var(--bg-card-hover, #181b24);
    border-color: var(--border-color-focus, #00d588);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* Yeni Eklenen Kart Parlama Animasyonu */
.signal-feed-card.new-arrival {
    animation: newCardSlide 0.4s ease-out, newCardGlow 2.5s ease-out;
}

@keyframes newCardSlide {
    0% {
        opacity: 0;
        transform: translateY(-18px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes newCardGlow {
    0% {
        border-color: #00ff88;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.07);
        box-shadow: none;
    }
}

.card-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-coin-sym {
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: -0.2px;
    font-family: 'Space Grotesk', sans-serif;
}

.card-coin-pair {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.card-time {
    font-size: 0.725rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.card-row-mid {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.card-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.card-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
}

.card-change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.12);
}

.card-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.card-row-bot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-type-badge {
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.badge-green { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.badge-cyan { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }
.badge-blue { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.badge-red { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.badge-gold { background: rgba(234, 179, 8, 0.18); color: #facc15; }

.card-vol-metric {
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.empty-feed-placeholder {
    padding: 3rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.radar-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.radar-tab-btn {
    padding: 0.85rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.radar-tab-btn:hover {
    color: var(--text-primary);
}

.radar-tab-btn.active {
    color: var(--bullish);
    border-bottom-color: var(--bullish);
}

/* Filtre Alanı */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Pump.fun Bonding Barı */
.bonding-progress-bar {
    width: 100%;
    max-width: 140px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bonding-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #00e676);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Web3 Cüzdan Kutusu */
.wallet-box-wrapper {
    background: var(--bg-card);
    border: 1px dashed var(--bullish);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    margin: 1.5rem 0;
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
    }
    .dash-content {
        padding: 1rem;
    }
}

/* ===================================================
   TERMINAL SEKMELERI (TABS) & DETAYLI GRID STILLERI
   =================================================== */
.exchange-tabs-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card, #12141a);
    border: 1px solid var(--border-color, #1e222d);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    -webkit-overflow-scrolling: touch;
}

.exchange-tabs-nav::-webkit-scrollbar {
    height: 4px;
}
.exchange-tabs-nav::-webkit-scrollbar-track {
    background: transparent;
}
.exchange-tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.exchange-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.15rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.exchange-tab-btn:hover {
    color: #fff;
    background: var(--bg-card-hover, #181b24);
}

.exchange-tab-btn .tab-badge-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.exchange-tab-btn .tab-count-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.725rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* Aktif Sekme Renk Vurguları */
.exchange-tab-btn.active.tab-binance {
    background: rgba(240, 185, 11, 0.12);
    border-color: rgba(240, 185, 11, 0.4);
    color: #f0b90b;
    box-shadow: 0 0 16px rgba(240, 185, 11, 0.2);
}
.exchange-tab-btn.active.tab-binance .tab-badge-logo {
    background: #f0b90b;
    color: #000;
}

.exchange-tab-btn.active.tab-mexc {
    background: rgba(0, 184, 217, 0.12);
    border-color: rgba(0, 184, 217, 0.4);
    color: #00b8d9;
    box-shadow: 0 0 16px rgba(0, 184, 217, 0.2);
}
.exchange-tab-btn.active.tab-mexc .tab-badge-logo {
    background: #00b8d9;
    color: #000;
}

.exchange-tab-btn.active.tab-raydium {
    background: rgba(153, 69, 255, 0.12);
    border-color: rgba(153, 69, 255, 0.4);
    color: #c084fc;
    box-shadow: 0 0 16px rgba(153, 69, 255, 0.2);
}
.exchange-tab-btn.active.tab-raydium .tab-badge-logo {
    background: #9945ff;
    color: #fff;
}

.exchange-tab-btn.active.tab-pumpfun {
    background: rgba(20, 241, 149, 0.12);
    border-color: rgba(20, 241, 149, 0.4);
    color: #14f195;
    box-shadow: 0 0 16px rgba(20, 241, 149, 0.2);
}
.exchange-tab-btn.active.tab-pumpfun .tab-badge-logo {
    background: #14f195;
    color: #000;
}

/* Sekme Panelleri */
.exchange-tab-pane {
    display: none;
    animation: tabFadeIn 0.25s ease-out;
}

.exchange-tab-pane.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-card, #12141a);
    border: 1px solid var(--border-color, #1e222d);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.tab-signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
    min-height: 320px;
    align-content: start;
}

@media (max-width: 640px) {
    .tab-signals-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   CANLI BALINA CÜZDAN RADARI STILLERI (ETHEREUM & SOLANA)
   =================================================== */
.exchange-tab-btn.active.tab-ethereum {
    background: rgba(98, 126, 234, 0.14);
    border-color: rgba(98, 126, 234, 0.45);
    color: #8fa7ff;
    box-shadow: 0 0 18px rgba(98, 126, 234, 0.25);
}
.exchange-tab-btn.active.tab-ethereum .tab-badge-logo {
    background: #627eea;
    color: #fff;
}

.exchange-tab-btn.active.tab-solana {
    background: rgba(20, 241, 149, 0.12);
    border-color: rgba(20, 241, 149, 0.4);
    color: #14f195;
    box-shadow: 0 0 18px rgba(20, 241, 149, 0.25);
}
.exchange-tab-btn.active.tab-solana .tab-badge-logo {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    color: #fff;
}

/* Balina Kartı */
.whale-tx-card {
    background: var(--bg-card, #12141a);
    border: 1px solid var(--border-color, #1e222d);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.whale-tx-card:hover {
    background: var(--bg-card-hover, #181b24);
    border-color: var(--border-color-focus, #00d588);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.whale-tx-card.new-arrival {
    animation: newCardSlide 0.4s ease-out, newCardGlow 2.5s ease-out;
}

.whale-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whale-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.whale-card-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.whale-token-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.3px;
}

.whale-usd-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
}

.whale-route-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.whale-node {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 44%;
}

.whale-node-label {
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whale-node-addr {
    font-size: 0.7rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.whale-arrow {
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whale-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 0.2rem;
}


