/* ═════════════════════════════════════════════════════════
   DasGuard Spot Tahmin — CSS v5.4
   Dark theme, professional dashboard
   Virtual list, hybrid badge, volume badge, cache TTL,
   advanced filters, watchlist, why panel, sparkline,
   mobile optimizations, 100-coin perf tuning
   Pass-21: Community header re-layout + AKADEMİ link
   Pass-23: Header LANGUAGE switch
   ═════════════════════════════════════════════════════════ */

/* ── BASE ── */
* { box-sizing: border-box; }
body { background: #050508; color: #fff; }

/* ═══ COMMUNITY HEADER LAYOUT ═══ */
.com-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.com-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.com-header-center {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}
.com-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.com-brand-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.com-brand-text {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    white-space: nowrap;
}
.com-brand-link:hover .com-brand-text { color: #fff; }
.com-sep {
    color: rgba(255,255,255,0.15);
    font-size: 10px;
    user-select: none;
}
.com-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(0,255,157,0.06);
    border: 1px solid rgba(0,255,157,0.20);
    font-size: 9px;
    font-weight: 700;
    color: #00ff9d;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.com-status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #00ff9d;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Nav links ── */
.com-nav-link {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.com-nav-academy {
    color: #c4254c;
    border: 1px solid rgba(196,37,76,0.25);
}
.com-nav-academy:hover {
    background: rgba(196,37,76,0.10);
    color: #d63769;
    border-color: rgba(196,37,76,0.40);
}
.com-nav-best {
    color: #ffd700;
}
.com-nav-best:hover {
    background: rgba(255,215,0,0.08);
    color: #ffe44d;
}
.com-nav-pnl {
    color: #00ff9d;
}
.com-nav-pnl:hover {
    background: rgba(0,255,157,0.08);
    color: #33ffb4;
}
.com-nav-destek {
    color: #ff9f1a;
    font-weight: 900;
}
.com-nav-destek:hover {
    background: rgba(255,159,26,0.10);
    color: #ffb347;
}
.com-nav-core {
    color: rgba(255,255,255,0.45);
    font-size: 9px;
}
.com-nav-core:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.04);
}
.com-mail-chip {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.30);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Header language switch ── */
.com-lang-switch-header {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding: 2px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.com-lang-pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.com-lang-pill:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
}
.com-lang-pill.active {
    color: #5ec8ff;
    background: rgba(94,200,255,0.12);
}

/* ── Header mobile ── */
@media (max-width: 1024px) {
    .com-header-center { gap: 10px; }
    .com-mail-chip { display: none; }
    .com-nav-link { font-size: 9px; padding: 3px 7px; }
}
@media (max-width: 768px) {
    .com-header { height: 46px; padding: 0 8px; gap: 4px; }
    .com-header-center { gap: 6px; }
    .com-header-right { gap: 4px; }
    .com-brand-text { display: none; }
    .com-sep { display: none; }
    .com-nav-link { font-size: 8px; padding: 3px 5px; letter-spacing: 0.04em; }
    .com-mail-chip { display: none; }
    .com-nav-core { display: none; }
    .com-lang-switch-header { margin-left: 2px; }
    .com-lang-pill { font-size: 8px; padding: 2px 5px; }
}
@media (max-width: 480px) {
    .com-header-center { gap: 4px; }
    .com-nav-best { display: none; }
    .com-status-pill { padding: 2px 6px; font-size: 8px; }
    .spot-neon-badge { font-size: 9px !important; }
}

/* ── NEON SPOT BADGE (header) ── */
.spot-neon-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #ff2b2b;
    text-shadow:
        0 0 6px rgba(255, 43, 43, 0.75),
        0 0 14px rgba(255, 0, 51, 0.55),
        0 0 28px rgba(255, 0, 51, 0.30);
    filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.30));
    animation: neonPulse 2s ease-in-out infinite alternate;
}
@keyframes neonPulse {
    from { text-shadow: 0 0 6px rgba(255,43,43,.75), 0 0 14px rgba(255,0,51,.55), 0 0 28px rgba(255,0,51,.30); }
    to   { text-shadow: 0 0 8px rgba(255,43,43,.90), 0 0 20px rgba(255,0,51,.70), 0 0 40px rgba(255,0,51,.45); }
}
@media (max-width: 520px) {
    .spot-neon-badge { font-size: 10px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── COIN PILL (Landing) ── */
.coin-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    font-family: monospace;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.coin-pill:hover {
    background: rgba(255,42,60,0.08);
    border-color: rgba(255,42,60,0.25);
    color: #ff2a3c;
}

/* ── HORIZON TABS ── */
.hz-tab, .dhz-tab {
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}
.hz-tab:hover, .dhz-tab:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
}
.hz-tab.active, .dhz-tab.active {
    background: rgba(255,42,60,0.12);
    border-color: rgba(255,42,60,0.4);
    color: #ff2a3c;
    box-shadow: 0 0 12px rgba(255,42,60,0.15);
}

/* ── SORT / FILTER BUTTONS ── */
.sort-btn {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.sort-btn:hover { color: rgba(255,255,255,0.6); }
.sort-btn.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.filter-btn {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    opacity: 0.4;
    border: 1px solid transparent;
}
.filter-btn.active { opacity: 1; }
.filter-al { background: rgba(0,255,157,0.08); color: #00ff9d; border-color: rgba(0,255,157,0.2); }
.filter-al.active { background: rgba(0,255,157,0.15); border-color: rgba(0,255,157,0.4); }
.filter-sat { background: rgba(255,42,60,0.08); color: #ff2a3c; border-color: rgba(255,42,60,0.2); }
.filter-sat.active { background: rgba(255,42,60,0.15); border-color: rgba(255,42,60,0.4); }
.filter-bekle { background: rgba(0,243,255,0.08); color: #00f3ff; border-color: rgba(0,243,255,0.2); }
.filter-bekle.active { background: rgba(0,243,255,0.15); border-color: rgba(0,243,255,0.4); }

/* ── COIN CARD ── */
.coin-card {
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    contain: content;  /* layout isolation for 100-card perf */
    display: flex;
    flex-direction: column;
}
.coin-card:hover {
    border-color: rgba(255,42,60,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(255,42,60,0.08);
    will-change: transform;
}
/* Touch devices: skip expensive hover paint */
@media (hover: none) {
    .coin-card:hover {
        transform: none;
        box-shadow: none;
        will-change: auto;
    }
}

.coin-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: rgba(0,0,0,0.8);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.06);
}

.coin-name {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    letter-spacing: -0.01em;
    cursor: default;  /* tooltip hint */
}
.coin-symbol {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    font-family: monospace;
    font-weight: 700;
}

.coin-price {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
}
.coin-change {
    font-size: 13px;
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    min-width: 72px;
    justify-content: center;
}
.change-pos { color: #00ff9d; background: rgba(0,255,157,0.08); border: 1px solid rgba(0,255,157,0.18); text-shadow: 0 0 8px rgba(0,255,157,0.25); }
.change-neg { color: #ff2a3c; background: rgba(255,42,60,0.08); border: 1px solid rgba(255,42,60,0.18); text-shadow: 0 0 8px rgba(255,42,60,0.25); }
.change-zero { color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }

/* Action badge */
.action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.action-badge-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.action-al {
    background: rgba(0,255,157,0.12);
    color: #00ff9d;
    border: 1px solid rgba(0,255,157,0.3);
}
.action-sat {
    background: rgba(255,42,60,0.12);
    color: #ff2a3c;
    border: 1px solid rgba(255,42,60,0.3);
}
.action-bekle {
    background: rgba(0,243,255,0.08);
    color: #00f3ff;
    border: 1px solid rgba(0,243,255,0.25);
}
.action-none {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Card details section */
.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.card-detail-item {
    display: flex;
    flex-direction: column;
}
.card-detail-label {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: monospace;
    margin-bottom: 2px;
}
.card-detail-value {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    font-variant-numeric: tabular-nums;
}

/* Confidence bar */
.confidence-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.confidence-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Card timestamp/countdown */
.card-meta {
    margin-top: 8px;
    font-size: 9px;
    color: rgba(255,255,255,0.2);
    font-family: monospace;
    display: flex;
    justify-content: space-between;
}

/* Error card state */
.coin-card.card-error {
    border-color: rgba(255,42,60,0.15);
    opacity: 0.7;
}
.card-error-msg {
    font-size: 10px;
    color: rgba(255,42,60,0.6);
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(255,42,60,0.05);
    border-radius: 8px;
}

/* ── DETAIL PAGE: Risk badge ── */
.risk-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}
.risk-low {
    background: rgba(0,255,157,0.1);
    color: #00ff9d;
}
.risk-medium {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
}
.risk-high {
    background: rgba(255,42,60,0.1);
    color: #ff2a3c;
}

/* ── DETAIL PAGE: Horizon summary cards ── */
.horizon-summary-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.horizon-summary-card:hover {
    border-color: rgba(255,255,255,0.12);
}
.horizon-summary-card.active-horizon {
    border-color: rgba(255,42,60,0.35);
    background: rgba(255,42,60,0.05);
}

/* ── HISTORY TABLE ── */
#historyBody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
#historyBody tr:hover {
    background: rgba(255,255,255,0.02);
}
#historyBody td {
    padding: 8px 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .coin-card { padding: 12px; border-radius: 12px; }
    .coin-price { font-size: 14px; }
    .hz-tab, .dhz-tab { padding: 6px 14px; font-size: 11px; }
    /* Reduce paint cost: simpler shadows on small screens */
    .coin-card:hover { box-shadow: none; }
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.coin-card {
    animation: fadeIn 0.2s ease forwards;
}
.coin-card:nth-child(2) { animation-delay: 0.03s; }
.coin-card:nth-child(3) { animation-delay: 0.06s; }
.coin-card:nth-child(4) { animation-delay: 0.09s; }
.coin-card:nth-child(5) { animation-delay: 0.12s; }

/* ═══ v5.0 + PASS-40: PRICE ROW (inline price + change — vertically centered) ═══ */
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    min-height: 36px;
}
.price-row .coin-price {
    margin-bottom: 0;
    flex-shrink: 0;
}
.price-row .coin-change {
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ═══ v5.0: CARD BADGES (hybrid + volume) ═══ */
.card-badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Hybrid consensus badge */
.hybrid-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hybrid-güçlü, .hybrid-guclu, .hybrid-strong {
    background: rgba(0,255,157,0.12);
    color: #00ff9d;
    border: 1px solid rgba(0,255,157,0.25);
}
.hybrid-nötr, .hybrid-notr, .hybrid-neutral {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
    border: 1px solid rgba(255,215,0,0.2);
}
.hybrid-zayıf, .hybrid-zayif, .hybrid-weak {
    background: rgba(255,42,60,0.1);
    color: #ff2a3c;
    border: 1px solid rgba(255,42,60,0.2);
}

/* Volume badge */
.vol-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.04em;
}
.vol-ultra {
    background: rgba(138,43,226,0.12);
    color: #ba68c8;
    border: 1px solid rgba(138,43,226,0.25);
}
.vol-high {
    background: rgba(0,243,255,0.08);
    color: #00f3ff;
    border: 1px solid rgba(0,243,255,0.2);
}
.vol-medium {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.vol-low {
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ═══ v5.0: ADVANCED FILTER BUTTONS ═══ */
.adv-filter-btn {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
}
.adv-filter-btn:hover {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
}
.adv-filter-btn.active {
    background: rgba(138,43,226,0.12);
    border-color: rgba(138,43,226,0.35);
    color: #ba68c8;
}

/* ═══ v5.0: TELEMETRY BAR ═══ */
.telemetry-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255,255,255,0.3);
    padding: 4px 0;
}
.telemetry-bar .tl-label {
    color: rgba(255,255,255,0.2);
    font-weight: 600;
}
.telemetry-bar .tl-value {
    color: rgba(255,255,255,0.5);
    font-weight: 700;
}

/* ═══ v5.0: CACHE STATUS INDICATOR ═══ */
.cache-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255,255,255,0.3);
}
.cache-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff9d;
    flex-shrink: 0;
    transition: background 0.3s;
    box-shadow: 0 0 4px rgba(0,255,157,0.3);
}

/* ═══ v5.0: VIRTUAL LIST SENTINEL ═══ */
.load-sentinel {
    grid-column: 1 / -1;
    height: 1px;
}

/* ═══ v5.0: MOBILE OPTIMIZATIONS ═══ */
@media (max-width: 640px) {
    .coin-card { padding: 12px; border-radius: 12px; }
    .coin-price { font-size: 14px; }
    .hz-tab, .dhz-tab { padding: 6px 12px; font-size: 10px; }

    /* Single column on mobile */
    #coinGrid {
        grid-template-columns: 1fr !important;
    }

    /* Stack price row vertically on very small screens */
    .price-row {
        flex-direction: column;
        gap: 2px;
    }

    /* Larger touch targets for filter buttons */
    .filter-btn, .adv-filter-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    /* Telemetry bar wraps */
    .telemetry-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Hide some detail on mobile cards */
    .card-badges {
        gap: 4px;
    }
    .hybrid-badge, .vol-badge {
        font-size: 8px;
        padding: 1px 6px;
    }

    /* Detail page mobile */
    .horizon-summary-card { padding: 8px; }

    /* PASS-53: TradingView chart responsive on mobile */
    #tvChartContainer { height: 280px !important; }
}

@media (max-width: 380px) {
    .coin-icon { width: 28px; height: 28px; font-size: 10px; }
    .coin-name { font-size: 12px; }
    .action-badge { padding: 3px 8px; font-size: 9px; }
    /* PASS-53: Even smaller chart on tiny phones */
    #tvChartContainer { height: 240px !important; }
}

/* ═══ v5.1: WATCHLIST STAR ═══ */
.wl-star {
    font-size: 18px;
    cursor: pointer;
    color: rgba(255,255,255,0.15);
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}
.wl-star:hover {
    color: #ffd700;
    transform: scale(1.2);
}
.wl-star.wl-active {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* ═══ v5.1: "WHY" PANEL ═══ */
.why-panel {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
}
.why-header {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
    font-family: monospace;
}
.why-item {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    padding-left: 2px;
}
.why-item + .why-item {
    margin-top: 1px;
}
.why-invalidation {
    font-size: 10px;
    color: #ff6b6b;
    margin-top: 6px;
    padding: 4px 6px;
    background: rgba(255, 42, 60, 0.08);
    border-left: 2px solid #ff2a3c;
    border-radius: 3px;
    line-height: 1.4;
}

/* ═══ v5.1: SPARKLINE MINI CHART ═══ */
.sparkline-wrap {
    margin-top: 6px;
    margin-bottom: 2px;
    width: 100%;
    height: 28px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255,255,255,0.01);
}
.sparkline-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ═══ v5.1: MOBILE WATCHLIST ═══ */
@media (max-width: 640px) {
    .wl-star { font-size: 16px; }
    .why-panel { padding: 6px 8px; }
    .why-item { font-size: 9px; }
    .sparkline-wrap { height: 22px; }
}

/* ═══════════════════════════════════════════════════════════
   v6.0: SIDEBAR LAYOUT — Coin List + Search + Quick Filters
   Desktop: fixed 260px sidebar | Mobile: drawer overlay
   ═════════════════════════════════════════════════════════ */

/* Layout shell */
.spot-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 52px - 60px);
}
/* Desktop with right rail */
@media (min-width: 1280px) {
    .spot-layout {
        grid-template-columns: 260px 1fr 300px;
    }
}
@media (min-width: 1440px) {
    .spot-layout {
        grid-template-columns: 260px 1fr 320px;
    }
}
.spot-main {
    padding: 16px 20px;
    min-width: 0;
    overflow-y: auto;
}
/* Right Rail */
.spot-right-rail {
    display: none;
    border-left: 1px solid #1a1a2e;
    padding: 12px 12px 12px 14px;
    min-width: 0;
    overflow-y: auto;
    max-height: calc(100vh - 52px);
    position: sticky;
    top: 52px;
}
.spot-rail-sticky {
    position: sticky;
    top: 0;
}
@media (min-width: 1280px) {
    .spot-right-rail {
        display: block;
    }
}

/* Sidebar */
.spot-sidebar {
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    background: #060609;
    border-right: 1px solid #1a1a2e;
    overflow: hidden;
    z-index: 40;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.spot-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.spot-sidebar-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spot-sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.spot-sidebar-close:hover {
    background: rgba(255,42,60,0.1);
    color: #ff2a3c;
}

/* Search */
.spot-sidebar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: border-color 0.2s;
}
.spot-sidebar-search:focus-within {
    border-color: rgba(255,42,60,0.4);
}

/* Quick filters */
.spot-sidebar-filters {
    display: flex;
    gap: 4px;
    padding: 0 10px 8px;
}
.sf-btn {
    flex: 1;
    padding: 4px 0;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    transition: all 0.15s;
}
.sf-btn:hover { color: rgba(255,255,255,0.6); }
.sf-active, .sf-btn.sf-active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.sf-al.sf-active { background: rgba(0,255,157,0.12); border-color: rgba(0,255,157,0.3); color: #00ff9d; }
.sf-sat.sf-active { background: rgba(255,42,60,0.12); border-color: rgba(255,42,60,0.3); color: #ff2a3c; }
.sf-bekle.sf-active { background: rgba(0,243,255,0.08); border-color: rgba(0,243,255,0.25); color: #00f3ff; }

/* Alphabetic jump */
.spot-alpha-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 10px 6px;
}
.spot-alpha-jump button {
    width: 22px;
    height: 20px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.spot-alpha-jump button:hover {
    color: #ff2a3c;
    background: rgba(255,42,60,0.08);
}
.spot-alpha-jump button.has-coins {
    color: rgba(255,255,255,0.5);
}

/* Coin list */
.spot-sidebar-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.spot-sidebar-list::-webkit-scrollbar { width: 4px; }
.spot-sidebar-list::-webkit-scrollbar-track { background: transparent; }
.spot-sidebar-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }

/* Coin row */
.spot-coin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    min-height: 44px;
}
.spot-coin-row:hover {
    background: rgba(255,255,255,0.03);
}
.spot-coin-row.active {
    background: rgba(255,42,60,0.08);
    border-left: 3px solid #ff2a3c;
}
.spot-coin-row-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.06);
}
.spot-coin-row-info {
    flex: 1;
    min-width: 0;
}
.spot-coin-row-name {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spot-coin-row-change {
    font-size: 10px;
    font-weight: 600;
    font-family: monospace;
}
.spot-coin-row-action {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

/* Skeleton loading */
.spot-sidebar-skeleton { padding: 8px 12px; }
.spot-skeleton-row {
    height: 36px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: linear-gradient(110deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Recently viewed */
.spot-sidebar-recent {
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.spot-recent-chip {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.15s;
}
.spot-recent-chip:hover {
    background: rgba(255,42,60,0.08);
    border-color: rgba(255,42,60,0.25);
    color: #ff2a3c;
}

/* Mobile FAB */
.spot-sidebar-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 16px;
    z-index: 60;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255,42,60,0.15);
    border: 1px solid rgba(255,42,60,0.35);
    color: #ff2a3c;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,42,60,0.2);
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.spot-sidebar-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(255,42,60,0.3);
}

/* Overlay */
.spot-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 45;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.spot-sidebar-overlay.active {
    display: block;
}

/* ═══ MOBILE: Sidebar as drawer ═══ */
@media (max-width: 1024px) {
    .spot-layout {
        grid-template-columns: 1fr;
    }
    .spot-right-rail {
        display: none;
    }
    .spot-main {
        padding: 12px 12px;
    }
    .spot-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        z-index: 50;
        box-shadow: none;
    }
    .spot-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,0.6);
    }
    .spot-sidebar-close {
        display: flex;
    }
    .spot-sidebar-fab {
        display: flex;
    }
    /* Coin grid: 3 columns on medium tablet */
    #coinGrid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    #coinGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .spot-sidebar { width: min(280px, 90vw); }
    .spot-main { padding: 8px 8px; }
    #coinGrid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══ 320px breakpoint ═══ */
@media (max-width: 320px) {
    .hz-tab, .dhz-tab { padding: 5px 10px; font-size: 9px; }
    .filter-btn, .adv-filter-btn, .sort-btn { padding: 5px 8px; font-size: 9px; }
    .coin-card { padding: 10px; }
    .coin-price { font-size: 13px; }
    .coin-name { font-size: 11px; }
    .action-badge { font-size: 9px; padding: 3px 8px; }
    .spot-sidebar { width: min(260px, 92vw); }
    .spot-sidebar-fab { width: 42px; height: 42px; font-size: 16px; bottom: 16px; left: 10px; }
}

/* ═══ PASS-41: Spot Card Visual Polish ═══ */

/* Coin card → stronger border glow on hover, better radius */
.coin-card {
    border-radius: 18px;
}

/* Coin name alignment fix — ensure icon + name row stays tight */
.coin-card .card-header {
    gap: 12px;
    margin-bottom: 10px;
}
.coin-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.coin-name {
    font-size: 14px;
    font-weight: 900;
    max-width: 140px;
    letter-spacing: -0.02em;
}
.coin-symbol {
    font-size: 10px;
    letter-spacing: 0.04em;
}

/* Price row — stronger PnL badge */
.coin-change {
    font-size: 12px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 78px;
    letter-spacing: 0.02em;
}
.change-pos {
    color: #00ff9d;
    background: rgba(0,255,157,0.10);
    text-shadow: 0 0 10px rgba(0,255,157,0.35);
    border: 1px solid rgba(0,255,157,0.12);
}
.change-neg {
    color: #ff2a3c;
    background: rgba(255,42,60,0.10);
    text-shadow: 0 0 10px rgba(255,42,60,0.35);
    border: 1px solid rgba(255,42,60,0.12);
}
.change-zero {
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Action badge — stronger presence */
.action-badge {
    padding: 5px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.10em;
}
.action-al {
    background: rgba(0,255,157,0.10);
    color: #00ff9d;
    border: 1px solid rgba(0,255,157,0.25);
    box-shadow: 0 0 8px rgba(0,255,157,0.08);
}
.action-sat {
    background: rgba(255,42,60,0.10);
    color: #ff2a3c;
    border: 1px solid rgba(255,42,60,0.25);
    box-shadow: 0 0 8px rgba(255,42,60,0.08);
}

/* Card details — tighter spacing, stronger labels */
.card-details {
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.card-detail-label {
    font-size: 8px;
    color: rgba(255,255,255,0.30);
    letter-spacing: 0.10em;
    margin-bottom: 3px;
}
.card-detail-value {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255,255,255,0.90);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Confidence bar — thicker */
.confidence-bar {
    height: 5px;
    border-radius: 3px;
    margin-top: 10px;
}

/* Card meta — cleaner */
.card-meta {
    margin-top: 10px;
    font-size: 8px;
    color: rgba(255,255,255,0.18);
}

/* ═══ Safe area insets (notch / bottom bar) ═══ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .spot-sidebar-fab {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .spot-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ═══ PASS-42: XYZ Landing 3-Column Grid ═══ */
.xyz-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.xyz-col-left { min-width: 0; }
.xyz-col-center { min-width: 0; }
.xyz-col-right { min-width: 0; }

@media (min-width: 1024px) {
    .xyz-grid-3col {
        grid-template-columns: 260px 1fr 340px;
        gap: 20px;
    }
}
@media (min-width: 1280px) {
    .xyz-grid-3col {
        grid-template-columns: 280px 1fr 360px;
        gap: 24px;
    }
}

/* ── Premium gating: blur + lock overlay ── */
.spot-prem-blur {
    position: relative;
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}
.spot-prem-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    pointer-events: auto;
    z-index: 2;
}
.spot-prem-lock-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(15, 15, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 18px;
    backdrop-filter: blur(4px);
}
.spot-prem-lock-icon { font-size: 18px; }
.spot-prem-lock-text {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.spot-prem-lock-cta {
    font-size: 11px;
    font-weight: 700;
    color: #0ff;
    background: rgba(0,255,255,0.08);
    border: 1px solid rgba(0,255,255,0.25);
    border-radius: 6px;
    padding: 4px 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.spot-prem-lock-cta:hover {
    background: rgba(0,255,255,0.18);
    border-color: rgba(0,255,255,0.5);
}

/* Right rail premium blur (Günün Yıldızı etc.) */
.spot-rail-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════
 *  XYZ MOBILE HARDENING — April 2026
 *  Overflow-x, touch targets, landscape, reduced-motion
 * ═══════════════════════════════════════════════════════════════════ */

/* ── CRITICAL: Prevent any horizontal scroll ── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ── Touch targets: extend to 768px ── */
@media (max-width: 768px) {
    .filter-btn, .adv-filter-btn, .sort-btn {
        padding: 8px 12px !important;
        font-size: 11px !important;
        min-height: 36px;
    }
    .spot-alpha-jump button {
        min-width: 32px !important;
        min-height: 36px !important;
        font-size: 10px !important;
    }
}

/* ── Tablet coin grid: 2-column for readability ── */
@media (max-width: 1024px) and (min-width: 769px) {
    #coinGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Reduced motion accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Mobile card animation: disable for perf ── */
@media (max-width: 640px) {
    .coin-card {
        animation: none !important;
    }
    .coin-card:nth-child(n) {
        animation-delay: 0s !important;
    }
}

/* ── Landscape phones: prevent header/filter viewport hogging ── */
@media (orientation: landscape) and (max-height: 500px) {
    .com-header {
        height: 36px !important;
        min-height: 36px !important;
    }
    .com-header .text-md,
    .com-header .text-lg {
        font-size: 11px !important;
    }
    header.sticky {
        position: relative !important;
    }
    .spot-sidebar {
        top: 0 !important;
        height: 100vh;
        height: 100dvh;
    }
    .hz-tab, .dhz-tab {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }
    #summaryBar {
        display: none !important;
    }
    .spot-main {
        padding: 4px 8px !important;
    }
    .spot-fab {
        bottom: 8px !important;
        right: 8px !important;
        width: 40px !important;
        height: 40px !important;
    }
    /* Coin grid: more visible area */
    #coinGrid {
        gap: 6px !important;
    }
    .coin-card {
        padding: 8px !important;
    }
}

/* ── Landscape: chart detail page ── */
@media (orientation: landscape) and (max-height: 500px) {
    #spotDetailChart {
        height: clamp(200px, 50vh, 320px) !important;
    }
}

/* ── Mobile 640px: filter bar gap fix ── */
@media (max-width: 640px) {
    .filter-bar,
    .filter-bar > div {
        gap: 4px !important;
        margin-left: 0 !important;
    }
    /* Sidebar width constraint for very small screens */
    .spot-sidebar {
        width: min(240px, 85vw) !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PASS-155b: Market Regime Bar + Sub-Scores + Watch Tier
   ═══════════════════════════════════════════════════════════ */

/* Regime explanation card */
.regime-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
}
.regime-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.regime-icon { font-size: 16px; }
.regime-title {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: monospace;
}
.regime-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.regime-text {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}

/* Action subclass label */
.action-subclass {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 0 4px;
    font-family: monospace;
}

/* Watch tier badges */
.watch-tier-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.watch-tier-strong-watch {
    background: rgba(0,243,255,0.10);
    color: #00f3ff;
    border: 1px solid rgba(0,243,255,0.25);
}
.watch-tier-medium-watch {
    background: rgba(255,215,0,0.08);
    color: #ffd700;
    border: 1px solid rgba(255,215,0,0.20);
}
.watch-tier-low-priority {
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Sub-score decomposition grid */
.sub-score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 8px 0 4px;
}
.sub-score-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sub-score-label {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    min-width: 52px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: monospace;
}
.sub-score-track {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.sub-score-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}
