/* ozicoin bot paneli — CLAUDE.md Bölüm 20 NİHAİ v2
   İskelet: CoinTrader 24 (üst yatay nav, 4'lü stat kart, 2x2 grafik grid)
   Palet:   stoX (koyu antrasit-yeşil zemin, turkuaz-yeşil vurgu, kırmızı negatif)
   Kartlar: düz koyu yüzey + ince border — glassmorphism YOK */

:root {
    --bg: #0b120f;
    --surface: #131c17;
    --surface-2: #182420;
    --border: rgba(255, 255, 255, .08);
    --accent: #2fd6a3;
    --accent2: #b5e352;
    --red: #f0524c;
    --amber: #f5b942;
    --purple: #a78bfa;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, .62); /* etiketler koyu zeminde 4.5:1 kontrastın güvenli tarafında kalsın */
    --radius: 12px;

    /* Grafik serileri — dataviz validator'dan geçmiş set (koyu zemin L bandı 0.48-0.67,
       bitişik çift ayrımı CVD ΔE ≥ 8, normal görüş ΔE ≥ 15). UI vurgu renkleri (--accent vb.)
       metin/kenar için kalır; GRAFİK DOLGULARINDA daima bu slotlar kullanılır. */
    --chart-1: #199e70;   /* teal-yeşil (marka ailesi) */
    --chart-2: #9085e9;   /* menekşe */
    --chart-3: #c98500;   /* hardal */
    --chart-4: #3987e5;   /* mavi */
    --chart-5: #d55181;   /* macenta */
    --pnl-pos: #199e70;   /* kâr/zarar polaritesi (status çifti, seri rengi değil) */
    --pnl-neg: #e66767;
    --grid-line: rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Üst sabit bölge: banner'lar + nav ---------- */

.page-top { position: sticky; top: 0; z-index: 100; }

.banner {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
/* Bölüm 23.3 — amber simülasyon şeridi (turkuaz/kırmızı ile karışmasın diye bilerek farklı renk) */
.banner-sim { background: var(--amber); color: #201500; }
.banner-ks { background: var(--red); color: #fff; }
.banner-db { background: #7a3a37; color: #fff; }

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 58px;
}

.logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-top: 6px;
}

.nav-links { display: flex; gap: 4px; height: 100%; }
.nav-links a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    height: 100%;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); border-bottom-color: var(--accent); } /* aktif sekme: turkuaz-yeşil alt çizgi */

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-name { color: var(--text-dim); font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Genel yerleşim ---------- */

.container { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }

.page-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.page-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
}
.card h2 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.card h2 .hint { color: var(--text-dim); font-weight: 400; font-size: 12px; }

/* 4'lü stat kart şeridi (Bölüm 20.5) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.stat-card .label { color: var(--text-dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .value { font-size: 24px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-card .note { color: var(--text-dim); font-size: 11px; margin-top: 4px; }

/* 2x2 grafik grid (Bölüm 20.2/20.4) */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.chart-card { min-height: 280px; margin-bottom: 0; display: flex; flex-direction: column; }
.chart-box { position: relative; flex: 1; min-height: 210px; }
.chart-box canvas { max-height: 240px; }

.pos { color: var(--accent); }
.neg { color: var(--red); }
.dim { color: var(--text-dim); }

/* Strateji win rate progress barları */
.wr-row { margin-bottom: 12px; }
.wr-row .wr-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.wr-bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.wr-bar > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.wr-bar > span.mid { background: var(--accent2); }
.wr-bar > span.low { background: var(--red); }

/* ---------- Tablolar ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr { transition: background-color .15s; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }
th { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; }

/* ---------- Rozetler / durumlar ---------- */

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.badge-accent { color: var(--accent); border-color: rgba(47, 214, 163, .4); background: rgba(47, 214, 163, .08); }
.badge-lime { color: var(--accent2); border-color: rgba(181, 227, 82, .4); background: rgba(181, 227, 82, .08); }
.badge-red { color: var(--red); border-color: rgba(240, 82, 76, .4); background: rgba(240, 82, 76, .08); }
.badge-purple { color: var(--purple); border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .08); }
.badge-amber { color: var(--amber); border-color: rgba(245, 185, 66, .4); background: rgba(245, 185, 66, .08); }

/* ---------- Formlar / butonlar ---------- */

.btn {
    display: inline-block;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #06251b; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-kill { font-weight: 800; letter-spacing: .3px; }

.inline-form { display: inline-flex; align-items: center; gap: 6px; }

input[type=text], input[type=password], input[type=number], select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
input.input-xs { width: 74px; padding: 5px 8px; font-size: 13px; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 13px; font-weight: 600; }
.form-row .desc { color: var(--text-dim); font-size: 12px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-bar .seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.filter-bar .seg a {
    padding: 6px 14px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
}
.filter-bar .seg a:hover { text-decoration: none; color: var(--text); }
.filter-bar .seg a.on { background: var(--accent); color: #06251b; }

.alert { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert-ok { border-color: rgba(47, 214, 163, .4); background: rgba(47, 214, 163, .08); color: var(--accent); }
.alert-err { border-color: rgba(240, 82, 76, .4); background: rgba(240, 82, 76, .08); color: var(--red); }

.empty-state { text-align: center; color: var(--text-dim); padding: 40px 16px; font-size: 14px; }
.empty-state .big { font-size: 17px; color: var(--text); font-weight: 700; margin-bottom: 6px; }

/* Sayfalama */
.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span {
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dim);
}
.pager a:hover { text-decoration: none; color: var(--text); }
.pager .cur { background: var(--accent); color: #06251b; border-color: var(--accent); font-weight: 700; }

/* ---------- Login ---------- */

.login-wrap { max-width: 380px; margin: 9vh auto 0; }
.login-logo { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.login-logo .logo-dot { width: 9px; height: 9px; }

/* ---------- Dashboard durum çubuğu ---------- */

.status-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.status-bar b { color: var(--text); font-weight: 700; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); margin-right: 5px; }
.status-dot.on { background: var(--accent); }
.status-dot.off { background: var(--red); }

/* ---------- TradingView ---------- */

.tv-wrap { height: 620px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

/* ---------- Responsive (Bölüm 20.7) ---------- */

@media (max-width: 1199px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-grid { grid-template-columns: 1fr; }
}

/* ---------- Erişilebilirlik ve etkileşim (ui-ux-pro-max pre-delivery) ---------- */

/* Klavye odağı görünür — focus ring asla kaldırılmaz */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
.btn:focus-visible, .nav-links a:focus-visible { outline-offset: 1px; }

/* Nav ve butonlarda yumuşak geçiş (150ms) */
.nav-links a { transition: color .15s, border-color .15s; }
a, .badge { transition: color .15s; }

/* Sayısal alanlar hizalı okunur */
.status-bar b, .wr-top { font-variant-numeric: tabular-nums; }

/* Şans sekmesi bildirim noktası (Bölüm 21.5 — bekleyen öneri varken) */
.nav-badge {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-left: 6px;
    vertical-align: super;
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* ---------- Nav ikonları + yeni sekmeler (Wallet/Help) ---------- */
.ico { vertical-align: -2px; margin-right: 6px; flex-shrink: 0; }
.nav-links a .ico { margin-right: 7px; opacity: .8; }
.nav-links a.active .ico { opacity: 1; color: var(--accent); }
.card h2 .ico { color: var(--accent); margin-right: 6px; }

/* Wallet sekmesi */
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.wallet-card .stat-head { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.wallet-card .value { font-size: 26px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.wallet-card .meta { color: var(--text-dim); font-size: 12px; margin-top: 6px; }
.table-note { font-size: 12px; margin-top: 10px; }

/* Help sekmesi */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.help-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.help-head .ico { color: var(--accent); }
.help-steps { margin: 8px 0 0 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }
.help-steps li b { color: var(--text); }

/* Yapay Zeka durum kartı + rozetler */
.ai-card h2 { display: flex; align-items: center; }
.ai-status { font-size: 13.5px; line-height: 1.6; }
.ai-status code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.ai-off { color: var(--amber); }
.ai-on { color: var(--accent); }
.ai-log { list-style: none; margin-top: 10px; }
.ai-log li { padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; display: flex; gap: 8px; align-items: center; }

/* Tümünü kapat kartı (Trades) */
.close-all-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-color: rgba(240, 82, 76, .35); }

/* Strateji yükleme formu */
textarea { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 10px; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; width: 100%; resize: vertical; }
textarea:focus { border-color: var(--accent); outline: none; }

@media (max-width: 767px) {
    .wallet-grid, .help-grid { grid-template-columns: 1fr; }
}

/* Hareket azaltma tercihi (vestibüler rahatsızlıklar) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 767px) {
    .container { padding: 16px 12px 60px; }

    /* Dokunma hedefleri min 44px (mobil) */
    .btn { min-height: 44px; display: inline-flex; align-items: center; }
    .btn-sm { min-height: 38px; }
    .nav-links a { min-height: 44px; display: flex; align-items: center; }
    .stat-grid { grid-template-columns: 1fr; }
    .topbar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 10px; }

    /* hamburger menü */
    .nav-toggle { display: block; order: 3; margin-left: auto; }
    .topbar-right { margin-left: 0; order: 2; } /* ACİL DURDUR mobilde de hep görünür (hamburger dışında) */
    .user-name { display: none; }
    .nav-links {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        border-top: 1px solid var(--border);
        padding-top: 8px;
    }
    body.nav-open .nav-links { display: flex; }
    .nav-links a { padding: 10px 4px; border-bottom: 0; border-left: 2px solid transparent; height: auto; }
    .nav-links a.active { border-left-color: var(--accent); padding-left: 10px; }

    /* tablolar kart görünümüne döner */
    table.responsive thead { display: none; }
    table.responsive tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 6px 2px;
        background: var(--surface-2);
    }
    table.responsive td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        border-bottom: 0;
        padding: 6px 12px;
        white-space: normal;
        text-align: right;
    }
    table.responsive td::before {
        content: attr(data-label);
        color: var(--text-dim);
        font-size: 12px;
        font-weight: 600;
        text-align: left;
    }

    .tv-wrap { height: 460px; }
}

/* ================================================================
   EK — Risk sekmesi (Bölüm 20.3) + PWA çevrimdışı şeridi (Bölüm 22.3)
   ================================================================ */

/* Risk: konsensüs oy dağılımı mini bar (buy/sell/hold) */
.vote-cell { display: inline-flex; align-items: center; gap: 8px; }
.vote-bar {
    display: inline-flex;
    width: 84px; height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
}
.vote-bar > span { display: block; height: 100%; }
.vote-bar .vb-buy  { background: var(--pnl-pos); }
.vote-bar .vb-sell { background: var(--pnl-neg); }
.vote-bar .vb-hold { background: rgba(255, 255, 255, .22); }
.vote-nums { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Risk: OPEN_* kararı vurgusu */
.badge.decision-open { font-weight: 800; }

/* Risk: %50 kayıp olasılığı eşik üstü Monte Carlo satırı (Bölüm 17.H) */
tr.mc-risk-high td { background: rgba(240, 82, 76, .07); }

/* PWA: çevrimdışı uyarı şeridi — veri cache'lenmez, sadece uyarılır (Bölüm 22.3) */
.offline-strip {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    background: #3a2f14;
    color: var(--amber);
    border-bottom: 1px solid rgba(245, 185, 66, .35);
}

/* ================================================================
   EK — Kullanıcı yönetimi + Profil + Simülasyon sekmesi ayrımı
   (Bölüm 25.3 roller, Bölüm 23 revizyon: sanal veri sadece kendi sekmesinde)
   ================================================================ */

/* Viewer (salt görüntüleme) rozeti — form/buton yerine gösterilir */
.viewer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--amber);
    border: 1px solid rgba(245, 185, 66, .4);
    background: rgba(245, 185, 66, .08);
    white-space: nowrap;
}
.viewer-badge .ico { margin-right: 0; }
.card h2 .viewer-badge { margin-left: 8px; vertical-align: 2px; }

/* Nav: Simülasyon sekmesindeki amber mod noktası (kırmızı Şans badge'inden ayrı) */
.nav-badge-amber { background: var(--amber); }

/* Topbar kullanıcı adı artık profile.php linki */
a.user-name { color: var(--text-dim); }
a.user-name:hover { color: var(--text); text-decoration: none; }

/* Profil sayfası */
.profile-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13.5px; }
.totp-secret-box {
    background: var(--surface-2);
    border: 1px solid rgba(245, 185, 66, .35);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.totp-secret-box code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 12.5px;
    word-break: break-all;
}
.totp-secret-box .wrap { white-space: normal; }

/* Users: tek seferlik üretilen parola + işlem butonları */
code.flash-pw {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text);
}
td.user-actions { white-space: normal; }
td.user-actions .inline-form { margin: 2px 6px 2px 0; }

/* Simülasyon sekmesi — amber tonlu ayrım (Bölüm 23.3: karışma yok) */
.sim-title { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.sim-title .ico { color: var(--amber); margin-right: 0; }
.sim-strip {
    background: rgba(245, 185, 66, .1);
    border: 1px solid rgba(245, 185, 66, .4);
    border-radius: var(--radius);
    color: var(--amber);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.card.sim-card, .stat-card.sim-card { border-color: rgba(245, 185, 66, .28); }
.card.sim-card h2 { color: var(--amber); }
.card.sim-card h2 .hint { color: var(--text-dim); }

/* ================================================================
   EK — MARKA ALTIN VURGUSU (yeni logo entegrasyonu)
   Logo altın/amber "OZ" monogram; panelin ana vurgusu MİNT (--accent) KALIR.
   Altın YALNIZCA dört yerde kullanılır: logo noktası, aktif nav alt çizgisi,
   login kartı üst çizgisi, birincil buton hover'ı.
   DOKUNULMAZ: --chart-* serileri, --pnl-pos/--pnl-neg, pozitif/negatif rozetler
   (dataviz doğrulamalı palet — Bölüm 20.1).
   ================================================================ */

:root { --brand-gold: #e9b949; }

/* Logo görseli — retina için width/height attribute, burada 28px'e sabitlenir */
.logo img { display: block; height: 28px; max-height: 28px; width: auto; }
.logo-dot { background: var(--brand-gold); }           /* 1) logo yanındaki nokta */

.nav-links a.active { border-bottom-color: var(--brand-gold); }  /* 2) aktif sekme alt çizgisi */

.login-wrap .card { border-top: 2px solid var(--brand-gold); }   /* 3) login kartı üst çizgisi */
.login-logo { display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-logo img { display: block; height: 40px; max-height: 40px; width: auto; }
.login-logo .logo-dot { margin-top: 10px; }

/* 4) birincil buton hover — mint yüzeyden altına geçer (metin kontrastı korunur) */
.btn-primary:hover { background: var(--brand-gold); border-color: var(--brand-gold); color: #241a00; filter: none; }

/* Mobil nav dikey listeye döner — vurgu soldaki çizgide (767px kırılımı) */
@media (max-width: 767px) {
    .nav-links a.active { border-left-color: var(--brand-gold); }
}

/* ================================================================
   EK — Haberler sekmesi (Bölüm 9.4 haber akışı + 9.1 Fear & Greed)
   NOT: Bu veriler yalnız bilgilendirmedir, trading kararına girmez (Bölüm 11.7).
   ================================================================ */

/* Bilgilendirme şeridi (uyarı değil — nötr mavi-gri ton) */
.alert-info {
    border-color: rgba(255, 255, 255, .14);
    background: var(--surface-2);
    color: var(--text-dim);
}

/* ---- Fear & Greed göstergesi ---- */
.fng { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.fng-value { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.fng-num { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fng-max { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.fng-label {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}
/* Bant renkleri: korku kırmızı/amber, açgözlülük mint/lime — panelin polarite dili */
.fng-extreme-fear  .fng-num, .fng-extreme-fear  .fng-label { color: var(--red); }
.fng-fear          .fng-num, .fng-fear          .fng-label { color: var(--amber); }
.fng-neutral       .fng-num, .fng-neutral       .fng-label { color: var(--text); }
.fng-greed         .fng-num, .fng-greed         .fng-label { color: var(--accent); }
.fng-extreme-greed .fng-num, .fng-extreme-greed .fng-label { color: var(--accent2); }

.fng-gauge { position: relative; flex: 1 1 320px; min-width: 260px; padding-bottom: 20px; }
.fng-scale { display: flex; height: 10px; border-radius: 6px; overflow: hidden; }
.fng-seg { display: block; height: 100%; }
.fng-seg.fng-extreme-fear  { width: 25%; background: var(--red); }
.fng-seg.fng-fear          { width: 20%; background: var(--amber); }
.fng-seg.fng-neutral       { width: 10%; background: rgba(255, 255, 255, .28); }
.fng-seg.fng-greed         { width: 20%; background: var(--accent); }
.fng-seg.fng-extreme-greed { width: 25%; background: var(--accent2); }

.fng-marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 20px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--text);
    box-shadow: 0 0 0 2px var(--surface);
}
.fng-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}
.fng-meta { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }
.fng-meta b { color: var(--text); }

/* ---- Haber listesi ---- */
.news-list { list-style: none; }
.news-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: 0; }
.news-item:first-child { padding-top: 4px; }

.news-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.news-title {
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}
.news-title:hover { color: var(--accent); text-decoration: none; }

.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; font-size: 12px; }
.news-summary {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    border-left: 2px solid var(--border);
    padding-left: 10px;
}

/* Coin rozeti (tıklanınca o coine filtreler) ve analiz kaynağı rozeti */
.badge-coin { color: var(--text); border-color: rgba(255, 255, 255, .18); background: var(--surface-2); }
a.badge-coin:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.badge-src { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* Coin filtresi uzun olabilir — satır kaydırmaya izin ver */
.filter-bar .seg-wrap { flex-wrap: wrap; max-width: 100%; }

@media (max-width: 700px) {
    .fng { gap: 16px; }
    .fng-num { font-size: 36px; }
    .news-head { flex-direction: column; gap: 6px; }
}

/* Nav sekme sayısı "Haberler" ile arttı — masaüstünde nav kendi içinde yatay
   kayar, böylece sağdaki ACİL DURDUR / çıkış her genişlikte görünür kalır.
   (768px altında zaten hamburger menü devrede.) */
@media (min-width: 768px) {
    .nav-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { flex-shrink: 0; }
}
