:root {

  /* Arka planlar */
  --bg:     #060c12;
  --bg2:    #0b1420;
  --bg3:    #111d2e;
  --card:   #0e1a27;
  /* Kenarlıklar */
  --border: rgba(255,255,255,0.08);
  --border2:rgba(0,210,140,.35);
  /* Renkler */
  --green:  #00d68f;
  --green2: #00ffaa;
  --red:    #ff4757;
  --amber:  #ffa502;
  --blue:   #38b2ff;
  --purple: #a78bfa;

  /* [PREMIUM] COMMAND CENTER STYLES */
  --glow-green: 0 0 15px rgba(0, 214, 143, 0.4);
  --ticker-h: 28px;

  /* Metin — yüksek kontrast */
  --text:   #dce8f4;       /* ana yazı */
  --text2:  #9fb9d0;       /* ikincil — okunabilir */
  --text3:  #6b8bab;       /* etiket — artık okunaklı */
  /* Işıltı */
  --glow:   rgba(0,214,143,.18);
  --glow2:  rgba(0,214,143,.07);
}

/* ─── LIVE TICKER (MARQUEE) ─── */
.live-ticker {
    height: var(--ticker-h);
    background: #000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    font-size: 11px;
    font-weight: 600;
}
.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 180s linear infinite;
    color: var(--text2);
}
.ticker-item {
    display: inline-block;
    margin-right: 50px;
}
.ticker-whale { color: var(--amber); font-weight: 800; }
.ticker-news  { color: var(--text); }
@keyframes ticker-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ─── NEON GLOW ─── */
.neon-glow {
    animation: neon-pulse 1.5s ease-in-out;
}
@keyframes neon-pulse {
    0%   { box-shadow: 0 0 0 var(--green); }
    50%  { box-shadow: 0 0 25px var(--green), inset 0 0 10px var(--green); border-color: var(--green); }
    100% { box-shadow: 0 0 0 var(--green); }
}
.neon-glow-red {
    animation: neon-pulse-red 1.5s ease-in-out;
}
@keyframes neon-pulse-red {
    0%   { box-shadow: 0 0 0 var(--red); }
    50%  { box-shadow: 0 0 25px var(--red), inset 0 0 10px var(--red); border-color: var(--red); }
    100% { box-shadow: 0 0 0 var(--red); }
}

/* ─── Temel ──────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }

body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--ticker-h); /* Ticker alanı */
}

body::before {
  content:'';
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(0,214,143,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,214,143,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events:none; z-index:0;
}

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

.app { position:relative; z-index:1 }

/* ─── Tipografi yardımcıları ─────────────────── */
.mono { font-family: 'JetBrains Mono', monospace }
.title { font-family: 'Space Grotesk', sans-serif; font-weight:700 }
.caps  { font-size:11px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase; color:var(--text3) }

/* ─── HEADER ─────────────────────────────────── */
header {
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 24px;
  border-bottom:1px solid var(--border);
  background:rgba(6,12,18,.96);
  backdrop-filter:blur(24px);
  position:sticky; top:var(--ticker-h); z-index:100;
}
.logo {
  display:flex; align-items:center; gap:10px;
  font-family:'Space Grotesk', sans-serif;
  font-size:18px; font-weight:700; letter-spacing:-.4px;
  color:var(--text);
}
.logo-icon {
  width:32px; height:32px; border-radius:8px;
  background:linear-gradient(135deg,var(--green),#00a86b);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:#000; font-weight:800;
  box-shadow: 0 0 20px rgba(0,214,143,.3);
}
.logo span { color:var(--green) }

.status-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#888; margin-right:5px; transition:all .3s }
.status-dot.online  { background:var(--green); box-shadow:0 0 8px var(--green); animation: pulse-green 2s infinite }
.status-dot.offline { background:var(--red); box-shadow:0 0 8px var(--red); animation: pulse-red 2s infinite }
@keyframes pulse-green { 0% { opacity:1 } 50% { opacity:0.5 } 100% { opacity:1 } }
@keyframes pulse-red   { 0% { opacity:1 } 50% { opacity:0.5 } 100% { opacity:1 } }

.header-pills { display:flex; align-items:center; gap:10px }
.pill {
  padding:5px 12px; border-radius:20px;
  font-family:'JetBrains Mono',monospace; font-size:10px;
  border:1px solid var(--border); background:var(--glow2);
  color:var(--text2);
}
.pill.live   { border-color:rgba(0,214,143,.4); color:var(--green) }

.dot-pulse {
  width:6px; height:6px; border-radius:50%;
  background:var(--green); display:inline-block; margin-right:4px;
  animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.btn {
  padding:7px 14px; border-radius:8px;
  border:1px solid var(--border2); background:var(--glow2);
  color:var(--green);
  font-family:'Inter',sans-serif; font-size:12px; font-weight:600;
  cursor:pointer; transition:all .2s;
  letter-spacing:.2px;
}
.btn:hover { background:var(--glow); border-color:var(--green); transform:translateY(-1px) }
.btn-solid  { background:var(--green); color:#000; border-color:var(--green) }
.btn-solid:hover { background:var(--green2) }

.header-btn:hover { background:rgba(0,214,143,.06); color:var(--text); border-color:var(--green); transform:translateY(-1px) }
.header-btn.active {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0,214,143,0.25);
  background: rgba(0,214,143,0.05);
}
.header-btn-icon { width:16px; height:16px; margin-right:8px; opacity:.7 }

/* ─── NAV ────────────────────────────────────── */
.nav {
  display:flex; gap:3px;
  padding:9px 24px;
  border-bottom:1px solid var(--border);
  background:var(--bg2);
}
.nav-tab {
  padding:7px 16px; border-radius:7px;
  cursor:pointer; font-size:12px; font-weight:600;
  color:var(--text2); transition:all .2s;
  border:1px solid transparent; letter-spacing:.1px;
}
.nav-tab:hover  { color:var(--text); background:var(--bg3) }
.nav-tab.active { color:var(--green); background:var(--glow2); border-color:var(--border2) }

/* ─── LAYOUT ─────────────────────────────────── */
.main { display:flex; min-height:calc(100vh - 97px); width:100%; overflow:hidden }
.sidebar     { width:272px; min-width:272px; border-right:1px solid var(--border); background:var(--bg2); overflow-y:auto; flex-shrink:0 }
.content     { flex:1; overflow-y:auto; background:var(--bg); position:relative }
.right-panel { width:288px; min-width:288px; border-left:1px solid var(--border); background:var(--bg2); overflow-y:auto; flex-shrink:0; display:block !important }
.section     { padding:14px; border-bottom:1px solid var(--border) }

.sec-title {
  font-family:'JetBrains Mono',monospace;
  font-size:11px; font-weight:600;
  letter-spacing:1.2px; text-transform:uppercase;
  color:var(--text3); margin-bottom:12px;
}

.scroll-area {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

/* ─── COIN LIST ──────────────────────────────── */
.coin-item {
  display:flex; align-items:center; gap:9px;
  padding:7px 8px; border-radius:8px;
  cursor:pointer; transition:all .15s;
  border:1px solid transparent; margin-bottom:3px;
}
.coin-item:hover  { background:var(--bg3); border-color:var(--border) }
.coin-item.active { background:var(--glow2); border-color:var(--border2) }

.coin-icon {
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; flex-shrink:0;
}
.coin-info  { flex:1; min-width:0 }
.coin-name  { font-size:12px; font-weight:600; color:var(--text) }
.coin-bal   { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text2) }
.coin-right { text-align:right }
.coin-price { font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:500; color:var(--text) }
.coin-pct   { font-family:'JetBrains Mono',monospace; font-size:11px }

.pos { color:var(--green) }
.neg { color:var(--red) }

@keyframes fgreen { 0%{background:rgba(0,214,143,.18)} 100%{background:transparent} }
@keyframes fred   { 0%{background:rgba(255,76,106,.18)} 100%{background:transparent} }
.flash-g { animation:fgreen .5s ease-out }
.flash-r { animation:fred    .5s ease-out }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-log-entry { animation: fadeInUp 0.4s ease-out forwards; will-change: transform, opacity; }

/* ─── STAT CARDS ─────────────────────────────── */
.stats-row { display:grid; grid-template-columns:repeat(5,1fr); border-bottom:1px solid var(--border) }
.stat-card {
  padding:16px 20px;
  border-right:1px solid var(--border);
  transition:background .2s;
}
.stat-card:hover { background:rgba(255,255,255,.015) }
.stat-card:last-child { border-right:none }

.stat-label {
  font-family:'JetBrains Mono',monospace;
  font-size:11px; text-transform:uppercase; letter-spacing:1px;
  color:var(--text3); margin-bottom:5px;
}
.stat-val {
  font-family:'Space Grotesk',sans-serif;
  font-size:20px; font-weight:700; line-height:1.2;
  color:var(--text);
}
.stat-sub {
  font-family:'JetBrains Mono',monospace;
  font-size:11px; color:var(--text2); margin-top:3px;
}

/* ─── CHART ──────────────────────────────────── */
.chart-area   { padding:18px; border-bottom:1px solid var(--border) }
.chart-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px }
.chart-title  { font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--text) }
.chart-btn {
  padding:4px 11px; font-size:10px; border-radius:6px;
  border:1px solid var(--border); background:transparent;
  color:var(--text2); cursor:pointer;
  font-family:'JetBrains Mono',monospace; transition:all .15s;
}
.chart-btn.active { border-color:var(--green); color:#000; background:var(--green); font-weight:800 }
.chart-btn:hover  { border-color:var(--border2); color:var(--text) }
.chart-wrap { position:relative; min-height:240px; height:240px; background:var(--bg2); border-radius:8px; overflow:hidden }
.chart-countdown {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-countdown span { color: var(--green); }
.chart-countdown.urgent { color: var(--red); border-color: var(--red); animation: pulse-red 1s infinite; }

/* ─── INDICATORS ─────────────────────────────── */
.ind-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:10px; padding:18px; border-bottom:1px solid var(--border);
}
.ind-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px; padding:12px;
  transition:border-color .2s;
}
.ind-card:hover { border-color:var(--border2) }
.ind-label {
  font-family:'JetBrains Mono',monospace;
  font-size:9px; text-transform:uppercase; letter-spacing:1.2px;
  color:var(--text3); margin-bottom:6px;
}
.ind-val {
  font-family:'Space Grotesk',sans-serif;
  font-size:17px; font-weight:700; margin-bottom:4px; color:var(--text);
}
.ind-sig {
  display:inline-block; padding:2px 8px; border-radius:4px;
  font-family:'JetBrains Mono',monospace;
  font-size:10px; font-weight:700; text-transform:uppercase;
}
.sig-buy  { background:rgba(0,214,143,.12); color:var(--green) }
.sig-sell { background:rgba(255,76,106,.12); color:var(--red) }
.sig-hold { background:rgba(255,186,0,.12);  color:var(--amber) }
.sig-n    { background:rgba(122,155,181,.1); color:var(--text2) }

/* ─── WHALE & SENTIMENT ──────────────────────── */
.whale-item { padding:8px 10px; border-bottom:1px solid var(--border); font-size:11px }
.whale-item:last-child { border-bottom:none }
.whale-vol { font-family:'JetBrains Mono',monospace; font-weight:700; color:var(--blue) }
.fng-bar { height:8px; border-radius:4px; background:linear-gradient(90deg,var(--red),var(--amber),var(--green)); position:relative; margin-top:5px }
.fng-needle { position:absolute; top:-4px; width:2px; height:16px; background:#fff; box-shadow:0 0 8px rgba(255,255,255,.5); transition:left 1s ease-in-out }

/* ─── AI PANEL ───────────────────────────────── */
.ai-panel {
  margin:14px 18px; padding:16px; border-radius:12px;
  border:1px solid rgba(0,214,143,.2);
  background:linear-gradient(135deg,rgba(0,214,143,.05),rgba(56,178,255,.03));
}
.ai-header  { display:flex; align-items:center; gap:9px; margin-bottom:11px }
.ai-brain   { width:32px; height:32px; border-radius:8px; background:linear-gradient(135deg,var(--green),#00a86b); display:flex; align-items:center; justify-content:center; font-size:16px }
.ai-title   { font-family:'Space Grotesk',sans-serif; font-size:14px; font-weight:700; color:var(--text) }
.ai-sub     { font-size:10px; color:var(--text2) }
.ai-factors { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:11px }
.ai-factor  { background:rgba(0,0,0,.25); border-radius:8px; padding:10px; border:1px solid var(--border) }
.ai-flabel  {
  font-family:'JetBrains Mono',monospace;
  font-size:10px; text-transform:uppercase; letter-spacing:1px;
  color:var(--text3); margin-bottom:4px;
}
.ai-fval { font-family:'Space Grotesk',sans-serif; font-size:18px; font-weight:700; color:var(--text) }

.ai-action-btn {
  width:100%; padding:12px; border-radius:10px; border:none;
  font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:700;
  cursor:pointer; transition:all .2s;
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.act-buy  { background:var(--green); color:#000 }
.act-buy:hover  { background:var(--green2); transform:translateY(-1px); box-shadow:0 4px 20px rgba(0,214,143,.3) }
.act-sell { background:var(--red); color:#fff }
.act-sell:hover { opacity:.9; transform:translateY(-1px) }
.act-hold { background:rgba(255,186,0,.1); color:var(--amber); border:1px solid rgba(255,186,0,.3) }

.ai-reason {
  margin-top:9px; padding:9px 11px;
  background:rgba(0,0,0,.25); border-radius:8px;
  font-size:11px; color:var(--text2); line-height:1.65;
}

/* ─── BOTTOM GRID ────────────────────────────── */
.bottom-grid { display:grid; grid-template-columns:1fr 1fr }
.panel       { border-right:1px solid var(--border); padding:18px }
.panel:last-child { border-right:none }
.panel-title {
  font-family:'Space Grotesk',sans-serif;
  font-size:13px; font-weight:700; margin-bottom:12px;
  display:flex; align-items:center; gap:6px; color:var(--text);
}

/* ─── TRADE ITEMS ────────────────────────────── */
.trade-item {
  display:flex; align-items:center; gap:9px;
  padding:9px 11px; border-radius:8px;
  background:var(--card); border:1px solid var(--border); margin-bottom:7px;
  transition:border-color .15s;
}
.trade-item:hover { border-color:var(--border2) }
.trade-side {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono',monospace; font-size:10px; font-weight:700;
  flex-shrink:0;
}
.buy-side  { background:rgba(0,214,143,.12); color:var(--green) }
.sell-side { background:rgba(255,76,106,.12); color:var(--red) }
.trade-pair   { font-size:12px; font-weight:600; color:var(--text) }
.trade-detail { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text2) }
.trade-pnl    { font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700; text-align:right }
.trade-time   { font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--text3); text-align:right }

/* ─── NEWS ───────────────────────────────────── */
.news-item {
  padding:11px 13px; border-radius:9px;
  background:var(--card); border:1px solid var(--border);
  margin-bottom:7px; cursor:pointer; transition:all .15s;
}
.news-item:hover { border-color:var(--border2); background:rgba(14,26,39,.9) }
.news-head  { display:flex; align-items:flex-start; justify-content:space-between; gap:7px; margin-bottom:5px }
.news-title { font-size:11px; font-weight:600; line-height:1.5; color:var(--text) }
.news-badge {
  flex-shrink:0; width:34px; height:34px; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700;
}
.sc-pos { background:rgba(0,214,143,.12); color:var(--green) }
.sc-neg { background:rgba(255,76,106,.12); color:var(--red) }
.sc-neu { background:rgba(255,186,0,.12);  color:var(--amber) }
.news-meta {
  display:flex; align-items:center; gap:7px;
  font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--text3);
}
.news-tag {
  padding:2px 6px; border-radius:4px; font-size:9px; font-weight:700;
  text-transform:uppercase; letter-spacing:.5px;
  background:rgba(56,178,255,.08); color:var(--blue);
  border:1px solid rgba(56,178,255,.15);
}

/* ─── TRAINING ───────────────────────────────── */
.train-panel { padding:14px 18px; border-top:1px solid var(--border) }
.mini-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 800;
  transition: all 0.2s;
}
.mini-btn:hover { background: rgba(255,255,255,0.1); color: var(--text2); border-color: var(--border2); }
.train-stats {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:9px; margin-bottom:10px;
}
.train-stat {
  background:var(--card); border:1px solid var(--border);
  border-radius:9px; padding:10px; text-align:center;
}
.train-val {
  font-family:'JetBrains Mono',monospace;
  font-size:15px; font-weight:700; color:var(--text);
}
.train-lbl {
  font-family:'JetBrains Mono',monospace;
  font-size:10px; text-transform:uppercase; letter-spacing:.6px;
  color:var(--text3); margin-top:3px;
}
.prog-wrap { height:5px; background:rgba(255,255,255,.05); border-radius:3px; overflow:hidden; margin-bottom:5px }
.prog-bar  { height:100%; background:linear-gradient(90deg,var(--green),var(--blue)); border-radius:3px; transition:width .5s }

/* ─── SCORE BAR ──────────────────────────────── */
.score-item      { display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border) }
.score-item:last-child { border-bottom:none }
.score-lbl  { font-size:11px; color:var(--text2); font-weight:500 }
.score-bw   { width:70px; height:4px; background:rgba(255,255,255,.06); border-radius:2px }
.score-bf   { height:100%; border-radius:2px; transition:width 1s }
.score-num  { font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:700; min-width:28px; text-align:right; color:var(--text) }

/* ─── RIGHT FORM ─────────────────────────────── */
.form-tabs {
  display:flex; margin-bottom:10px;
  border-radius:8px; background:var(--bg3); padding:3px;
}
.form-tab  { flex:1; padding:6px; text-align:center; border-radius:6px; font-size:11px; font-weight:700; cursor:pointer; transition:all .15s; color:var(--text2) }
.ftab-buy  { background:var(--green); color:#000 }
.ftab-sell { background:var(--red);   color:#fff }
.igroup { margin-bottom:10px }
.ilabel {
  font-family:'JetBrains Mono',monospace;
  font-size:10px; color:var(--text2); margin-bottom:4px;
  display:flex; justify-content:space-between;
}
.ifield {
  width:100%; padding:9px 12px;
  background:var(--bg3); border:1px solid var(--border);
  border-radius:8px; color:var(--text);
  font-family:'JetBrains Mono',monospace; font-size:12px;
  transition:border-color .2s; outline:none;
}
.ifield:focus      { border-color:var(--border2); box-shadow:0 0 0 3px rgba(0,214,143,.08) }
.ifield::placeholder { color:var(--text3) }

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-toggle {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: var(--text3);
  font-size: 14px;
  transition: color 0.2s;
  user-select: none;
  z-index: 10;
}
.password-toggle:hover {
  color: var(--text);
}
.ifield-pwd { padding-right: 38px !important; }
.pct-row { display:flex; gap:3px; margin-bottom:10px }
.pct-btn {
  flex:1; padding:5px; border-radius:5px;
  border:1px solid var(--border); background:transparent;
  color:var(--text2); font-family:'JetBrains Mono',monospace; font-size:10px;
  cursor:pointer; transition:all .15s; text-align:center;
}
.pct-btn:hover { border-color:var(--border2); color:var(--text) }
.confirm-btn {
  width:100%; padding:12px; border-radius:10px; border:none;
  font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:700;
  cursor:pointer; transition:all .2s; letter-spacing:.2px;
}
.cbuy { background:var(--green); color:#000 }
.cbuy:hover { background:var(--green2); box-shadow:0 4px 20px rgba(0,214,143,.25) }
.csell { background:var(--red); color:#000; font-weight:800 }
.csell:hover { opacity:.9 }

/* ─── ORDER BOOK ─────────────────────────────── */
.ob-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:3px 0; font-family:'JetBrains Mono',monospace; font-size:10px;
  position:relative; cursor:default;
}
.ob-bar { position:absolute; right:0; top:0; bottom:0; opacity:.08; border-radius:2px }
.ob-buy  .ob-bar { background:var(--green) }
.ob-sell .ob-bar { background:var(--red) }
.ob-pb { color:var(--green) }
.ob-ps { color:var(--red) }
.ob-a  { color:var(--text2) }
.ob-t  { color:var(--text3) }
.ob-spread {
  text-align:center; padding:5px 0; font-size:9px;
  color:var(--text2); font-family:'JetBrains Mono',monospace;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  margin:3px 0;
}

/* ─── PREDICTION ─────────────────────────────── */
.pred-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; background:var(--card); border-radius:9px;
  border:1px solid var(--border); margin-bottom:7px;
  transition:border-color .15s;
}
.pred-item:hover { border-color:var(--border2) }
.pred-lbl   { font-family:'JetBrains Mono',monospace; font-size:9px; color:var(--text3); margin-bottom:3px }
.pred-price { font-family:'JetBrains Mono',monospace; font-size:13px; font-weight:700; color:var(--text) }
.pred-pct   { font-family:'JetBrains Mono',monospace; font-size:13px; font-weight:700 }

/* ─── NOTIFICATION ───────────────────────────── */
.notif {
  position:fixed; bottom:22px; right:22px; z-index:1000;
  background:var(--bg2); border:1px solid var(--border2);
  border-radius:12px; padding:14px 18px; min-width:270px;
  transform:translateY(100px); opacity:0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.notif.show { transform:translateY(0); opacity:1 }
.notif-title { font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:700; margin-bottom:3px; color:var(--text) }
.notif-body  { font-size:11px; color:var(--text2); line-height:1.5 }
.notif-bar {
  position:absolute; bottom:0; left:0; height:3px;
  background:var(--green); width:0; border-radius:0 0 12px 12px;
}
.notif.show .notif-bar { animation:shrink 3.5s linear forwards }
@keyframes shrink { from{width:100%} to{width:0%} }

/* ─── AI CHAT FLOATING WIDGET ─── */
.chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chat-btn-float {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.2);
}
.chat-btn-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(167, 139, 250, 0.6);
}
.chat-window {
  width: 380px;
  height: 500px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  margin-bottom: 15px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chat-window.active { display: flex; }
.chat-header {
  padding: 15px 20px;
  background: rgba(167, 139, 250, 0.1);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 80%;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.msg-ai { align-self: flex-start; background: var(--bg3); color: var(--text); border-bottom-left-radius: 2px; }
.msg-user { align-self: flex-end; background: var(--purple); color: #000; font-weight: 500; border-bottom-right-radius: 2px; }
.chat-footer {
  padding: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 12px;
  outline: none;
}
.mic-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.05);
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mic-btn.active {
  background: var(--red);
  color: #fff;
  animation: pulse-red 1.5s infinite;
}

/* ─── MODAL ──────────────────────────────────── */
.moverlay {
  position:fixed; inset:0; background:rgba(0,0,0,.75);
  z-index:200; display:none; align-items:center; justify-content:center;
  backdrop-filter:blur(6px);
}
.moverlay.show { display:flex }
.modal {
  background:var(--bg2); border:1px solid var(--border2);
  border-radius:16px; width:440px; max-width:95vw;
  max-height:90vh; display:flex; flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.modal-header {
  padding:28px 28px 0 28px; flex-shrink:0;
}
.modal-body {
  padding:0 28px 28px 28px; overflow-y:auto; flex:1;
}
.modal-title  { font-family:'Space Grotesk',sans-serif; font-size:18px; font-weight:700; margin-bottom:6px; color:var(--text) }
.modal-sub    { font-size:12px; color:var(--text2); margin-bottom:20px; line-height:1.5 }
.mclose       { float:right; background:none; border:none; color:var(--text2); font-size:22px; cursor:pointer; margin-top:-4px }
.mclose:hover { color:var(--text) }
.warn-box     { padding:11px 13px; background:rgba(255,186,0,.06); border:1px solid rgba(255,186,0,.22); border-radius:9px; font-size:11px; color:var(--amber); margin-bottom:16px; line-height:1.6 }
.success-box  { padding:11px 13px; background:rgba(0,214,143,.06); border:1px solid rgba(0,214,143,.22); border-radius:9px; font-size:11px; color:var(--green); margin-bottom:16px; line-height:1.6 }

/* ─── CONNECTION STATUS ──────────────────────── */
#connStatus {
  font-family:'JetBrains Mono',monospace; font-size:10px;
  padding:4px 11px; border-radius:5px;
  background:rgba(255,186,0,.1); color:var(--amber);
  border:1px solid rgba(255,186,0,.2);
}
#connStatus.connected {
  background:rgba(0,214,143,.1); color:var(--green);
  border-color:rgba(0,214,143,.2);
}

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar       { width:3px }
::-webkit-scrollbar-track { background:transparent }
::-webkit-scrollbar-thumb { background:rgba(0,214,143,.18); border-radius:2px }

/* ─── TABS ───────────────────────────────────── */
.tab-content        { display:none }
.tab-content.active { display:block }

/* ─── TOGGLE ─────────────────────────────────── */
.toggle       { width:42px; height:22px; border-radius:11px; cursor:pointer; position:relative; transition:background .2s; flex-shrink:0 }
.toggle-thumb { width:18px; height:18px; border-radius:50%; background:#000; position:absolute; top:2px; transition:left .2s }

/* ─── GENEL TABLO ────────────────────────────── */
table { border-collapse:collapse; width:100% }
th    { font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--text3); padding:9px 12px; text-align:left }
td    { font-size:12px; color:var(--text); padding:9px 12px; border-bottom:1px solid var(--border) }
tr:last-child td { border-bottom:none }
tr:hover td { background:rgba(255,255,255,.012) }
  /* 🚀 MARKET SEPARATION BADGES */
  .m-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
    border: 1px solid currentColor;
  }
  .m-spot    { color: var(--blue);   background: var(--blue)11; }
  .m-futures { color: var(--purple); background: var(--purple)11; }

  /* ⚖️ MARKET TOGGLE */
  .market-tabs {
    display: flex;
    background: var(--bg3);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
  }
  .market-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .market-tab.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .market-tab.active-spot    { color: var(--blue); }
  .market-tab.active-futures { color: var(--purple); }

        /* [UPDATED] AI Analysis Terminal Styling */
    .ai-log-panel {
        margin-top: 16px !important;
        border-right: none !important;
        background:
            linear-gradient(145deg, rgba(14, 26, 39, 0.88), rgba(6, 12, 18, 0.96)),
            radial-gradient(circle at 12% 0%, rgba(56, 178, 255, 0.10), transparent 32%);
        border: 1px solid rgba(56, 178, 255, 0.12) !important;
        border-radius: 16px;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    }
    .ai-log-panel .panel-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }
    .ai-log-title-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
    .ai-log-title-text {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--text);
        letter-spacing: 0.2px;
        white-space: nowrap;
    }
    .ai-log-live-badge {
        font-size: 9px;
        color: var(--blue);
        background: rgba(56, 178, 255, 0.10);
        border: 1px solid rgba(56, 178, 255, 0.18);
        border-radius: 999px;
        padding: 4px 9px;
        font-weight: 700;
        white-space: nowrap;
    }
    .ai-log-live-badge.paused {
        color: var(--amber);
        background: rgba(255, 165, 2, 0.10);
        border-color: rgba(255, 165, 2, 0.24);
    }
    .btn-clear-logs {
        height: 28px;
        padding: 0 10px;
        border-radius: 9px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        background: rgba(148, 163, 184, 0.08);
        color: var(--text2);
        cursor: pointer;
        font-size: 11px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all .18s ease;
    }
    .btn-clear-logs:hover {
        color: var(--text);
        border-color: rgba(56, 178, 255, 0.35);
        background: rgba(56, 178, 255, 0.10);
    }
    .ai-terminal {
        height: 960px;
        overflow-y: auto;
        overflow-x: hidden;
        font-family: 'JetBrains Mono', 'Space Mono', monospace;
        font-size: 11px;
        color: var(--text);
        background:
            linear-gradient(180deg, rgba(2, 6, 12, 0.45), rgba(2, 6, 12, 0.18)),
            repeating-linear-gradient(0deg, rgba(56,178,255,0.015) 0 1px, transparent 1px 34px);
        padding: 8px;
        border-radius: 13px;
        margin-top: 8px;
        border: 1px solid rgba(148, 163, 184, 0.10);
        scroll-behavior: smooth;
    }
    .ai-terminal.is-paused {
        border-color: rgba(255, 165, 2, 0.28);
        box-shadow: inset 0 0 0 1px rgba(255, 165, 2, 0.08);
    }
    .ai-terminal::-webkit-scrollbar { width: 7px; }
    .ai-terminal::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 999px; }
    .ai-terminal::-webkit-scrollbar-thumb { background: rgba(56,178,255,0.28); border-radius: 999px; }
    .ai-terminal::-webkit-scrollbar-thumb:hover { background: rgba(56,178,255,0.45); }

    .ai-terminal .ai-log-item {
        display: grid;
        grid-template-columns: 22px minmax(78px, 118px) minmax(0, 1fr) 154px;
        align-items: center;
        gap: 8px;
        min-height: 34px;
        padding: 7px 10px;
        margin-bottom: 6px;
        border: 1px solid rgba(148, 163, 184, 0.10);
        border-left: 3px solid var(--log-accent, var(--blue));
        border-radius: 10px;
        background: linear-gradient(90deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
        box-shadow: 0 4px 14px rgba(0,0,0,0.12);
        animation: fadeIn 0.22s ease-out;
    }
    .ai-terminal .ai-log-item:hover {
        border-color: rgba(56, 178, 255, 0.24);
        background: rgba(56, 178, 255, 0.055);
    }
    .ai-terminal .ai-log-placeholder {
        grid-template-columns: 22px 100px minmax(0, 1fr) 60px;
        color: var(--text3);
    }
    .ai-log-icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: rgba(255,255,255,0.06);
        font-size: 11px;
    }
    .ai-log-symbol {
        color: var(--log-accent, var(--blue));
        font-weight: 800;
        letter-spacing: 0.4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ai-log-message {
        color: var(--text2);
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ai-log-time {
        color: var(--text3);
        font-size: 10px;
        text-align: right;
        white-space: nowrap;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .ai-terminal-empty {
        color: var(--text3);
    }
    @media (max-width: 900px) {
        .ai-log-panel .panel-title {
            align-items: flex-start;
            flex-direction: column;
        }
        .ai-terminal .ai-log-item {
            grid-template-columns: 20px minmax(70px, 96px) minmax(0, 1fr);
        }
        .ai-log-time {
            grid-column: 2 / 4;
            text-align: left;
            font-size: 9px;
        }
    }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
/* ─── NEW REACTION & UTILITY CLASSES ─── */
.pulse-green { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 10px var(--green); animation: aura-pulse 2s infinite; }
.pulse-red   { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--red); box-shadow:0 0 10px var(--red); animation: aura-pulse 2s infinite; }
.pulse-blue  { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--blue); box-shadow:0 0 10px var(--blue); animation: aura-pulse 2s infinite; }

@keyframes aura-pulse { 0% { transform:scale(1); opacity:1; } 50% { transform:scale(1.5); opacity:0.4; } 100% { transform:scale(1); opacity:1; } }

.badge-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255, 165, 2, 0.15); border: 1px solid rgba(255, 165, 2, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: help; transition: all 0.3s;
}
.badge-icon.gray { filter: grayscale(1); opacity: 0.3; background: rgba(255,255,255,0.05); border-color: var(--border); }

.rejection-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 3px solid var(--amber);
  margin-bottom: 6px;
  transition: transform 0.2s;
}
.rejection-card:hover { transform: translateX(3px); border-color: rgba(255,165,2,0.4); }
.rej-header { display: flex; justify-content: space-between; align-items: center; }
.rej-sym { font-weight: 800; font-size: 11px; color: var(--text); }
.rej-reason { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 165, 2, 0.2); color: var(--amber); font-weight: 700; }
.rej-desc { font-size: 10px; color: var(--text2); line-height: 1.3; margin: 2px 0; }
.rej-time { font-size: 9px; color: var(--text3); font-family: 'JetBrains Mono', monospace; text-align: right; }

/* ─── MARKET RADAR PRO (Agentic + Sleek + Bento) ─── */
.radar-panel {
  margin: 16px 20px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.radar-title-wrap {
  min-width: 240px;
  flex: 1 1 420px;
}
.radar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radar-title-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.radar-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: 6px;
}
.radar-filter-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.radar-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px !important;
  padding: 7px 13px !important;
}
.radar-filter-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.radar-filter-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}
.radar-filter-btn.active .radar-filter-count {
  background: rgba(0, 214, 143, 0.22);
  color: var(--green);
}
.radar-filter-btn#filter-Negative.active .radar-filter-count {
  background: rgba(255, 71, 87, 0.22);
  color: var(--red);
}
.radar-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.radar-best-pick-card {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(0, 214, 143, 0.12) 0%, rgba(0, 214, 143, 0.04) 100%);
  border: 1px solid rgba(0, 214, 143, 0.35);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.radar-best-pick-btn {
  background: var(--green);
  color: #03150e;
  border: none;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.radar-best-pick-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.radar-best-pick-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.radar-update-pill {
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.radar-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.radar-stage {
  position: relative;
  height: 480px;
  min-height: 360px;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 75% 22%, rgba(0, 214, 143, 0.05), transparent 48%), rgba(4, 8, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.radar-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(400px, 78%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}
.radar-feed {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.radar-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.radar-feed-title {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
.radar-feed-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 214, 143, 0.14);
  border: 1px solid rgba(0, 214, 143, 0.32);
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.radar-feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.radar-feed-item {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: minmax(96px, 1.15fr) minmax(74px, auto) minmax(96px, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.radar-feed-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 214, 143, 0.35);
  transform: translateY(-1px);
}
.radar-feed-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.radar-feed-sym {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.radar-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.radar-feed-ticker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}
.radar-feed-sec {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-feed-px {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: right;
  white-space: nowrap;
}
.radar-feed-chg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.radar-feed-ai {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.radar-feed-ai-top {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}
.radar-feed-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.radar-feed-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.radar-feed-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.radar-guide-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}
.radar-guide-list b {
  color: #e2e8f0;
}
.radar-feed-pill.buy {
  background: rgba(0, 214, 143, 0.14);
  color: var(--green);
  border: 1px solid rgba(0, 214, 143, 0.35);
}
.radar-feed-pill.sell {
  background: rgba(255, 71, 87, 0.14);
  color: var(--red);
  border: 1px solid rgba(255, 71, 87, 0.35);
}
.radar-feed-pill.wait {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text2);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.radar-bottom-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.radar-info-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.radar-info-card.guide {
  background: rgba(0, 214, 143, 0.03);
  border-color: rgba(0, 214, 143, 0.16);
}
.radar-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.radar-ping {
  position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  background: var(--green); border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--green); animation: radar-ping 2s ease-out infinite; z-index: 5;
}
@keyframes radar-ping {
  0% { width: 0; height: 0; opacity: 0.8; }
  100% { width: 1000px; height: 1000px; opacity: 0; }
}
.radar-update-flash { animation: bubble-pulse 0.5s ease-out; }
@keyframes bubble-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

@media (max-width: 1024px) {
  .radar-main-grid { grid-template-columns: 1fr; }
  .radar-feed { height: auto; max-height: 360px; }
}
@media (max-width: 768px) {
  .radar-bottom-grid { grid-template-columns: 1fr; }
  .radar-actions-col { align-items: flex-start; width: 100%; }
}
@media (max-width: 640px) {
  .radar-panel { margin: 12px; padding: 16px; }
  .radar-stage { height: 360px; }
  .radar-feed { max-height: 380px; }
  .radar-feed-item { grid-template-columns: 1fr auto; row-gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-beam, .radar-pulse, .radar-status-dot, .radar-center-glow, .radar-ping {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBİL UYUMLULUK — Responsive Design
   ═══════════════════════════════════════════════════════════ */

/* ─── Hamburger Menü Butonu ─── */
.mobile-menu-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover { border-color: var(--green); color: var(--green); }

/* ─── Mobil Alt Navigasyon Barı ─── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20000; /* En üst katman — hiçbir şey engelleyemez */
  background: rgba(6,12,18,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 4px 10px;
  justify-content: space-around;
}
.mobile-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  font-size: 9px; font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  border: none; background: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item.active { color: var(--green); }
.mobile-nav-item .nav-icon { font-size: 18px; }

/* ─── Mobil Overlay Panel ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
}
.mobile-overlay.show { display: block; }

/* ─── Mobil Açılır Panel (Hamburger) ─── */
.mobile-dropdown {
  display: none;
  position: fixed;
  top: calc(var(--ticker-h) + 50px);
  left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 2px solid var(--green);
  padding: 12px;
  z-index: 1800;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  max-height: 80vh;
  overflow-y: auto;
  animation: mobileSlideDown 0.2s ease-out;
}
.mobile-dropdown.show { display: block !important; }
@keyframes mobileSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-dropdown .mobile-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mobile-dropdown .mobile-section:last-child { border-bottom: none; margin-bottom: 0; }
.mobile-dropdown .mobile-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 8px;
}
.mobile-dropdown .mobile-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mobile-dropdown .mobile-action-btn {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-dropdown .mobile-action-btn:active {
  background: var(--glow);
  border-color: var(--green);
  transform: scale(0.95);
}
.mobile-dropdown .mobile-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mobile-dropdown .mobile-status-item {
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  font-size: 10px;
}
.mobile-dropdown .mobile-status-item .label { color: var(--text3); margin-bottom: 2px; }
.mobile-dropdown .mobile-status-item .value { color: var(--text); font-weight: 700; font-size: 12px; }

/* ═══ TABLET (max 1024px) ═══ */
@media (max-width: 1024px) {
  .right-panel { display: none !important; }
  .sidebar { width: 220px; min-width: 220px; }
  .stats-row { grid-template-columns: repeat(3, 1fr) !important; }
  .ind-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bottom-grid { grid-template-columns: 1fr !important; }
  .train-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .ai-factors { grid-template-columns: repeat(3, 1fr) !important; }
  header .btn { padding: 5px 10px; font-size: 11px; }
}

/* ═══ MOBİL (max 768px) ═══ */
@media (max-width: 768px) {
  :root { --ticker-h: 24px; }

  body { font-size: 12px; padding-bottom: 65px; }

  .mobile-menu-btn { display: inline-flex; }
  .mobile-bottom-nav { display: flex; }

  /* Live ticker */
  .live-ticker { font-size: 10px; height: var(--ticker-h); }

  /* Header */
  header {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .logo { font-size: 15px; gap: 7px; }
  .logo-icon { width: 28px; height: 28px; font-size: 14px; }
  .header-pills {
    display: none;
    position: fixed;
    top: calc(var(--ticker-h) + 48px);
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 150;
  }
  .header-pills.mobile-show { display: flex !important; }
  .header-actions {
    display: none !important;
  }


  /* Nav — gizle, alt bara taşındı */
  .nav { display: none !important; }

  /* Layout — tek sütun, paneller doğal akışta alt alta */
  .main { display: block !important; min-height: auto; }
  
  .sidebar {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: none;
    overflow-y: visible;
  }
  .sidebar.mobile-show {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 85vw !important; max-width: 320px;
    z-index: 10000 !important;
    background: var(--bg2) !important;
    overflow-y: auto;
    padding-top: 60px;
    box-shadow: 10px 0 50px rgba(0,0,0,0.8) !important;
    display: block !important;
  }
  .right-panel {
    display: block !important;
    width: 100% !important;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .content { width: 100% !important; min-width: 0 !important; }
  .stats-row { width: 100% !important; margin: 10px 0 !important; }

  /* Stat cards */
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-card { padding: 10px 12px; }
  .stat-val { font-size: 16px; }
  .stat-label { font-size: 9px; }

  /* Chart */
  .chart-area { padding: 10px; }
  .chart-wrap { min-height: 200px; height: 200px; }
  .chart-header { flex-wrap: wrap; gap: 6px; }
  .chart-btn { padding: 4px 8px; font-size: 9px; }

  /* Indicators */
  .ind-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; padding: 10px; }
  .ind-card { padding: 8px; }
  .ind-val { font-size: 14px; }

  /* AI Panel */
  .ai-panel { margin: 10px; padding: 12px; }
  .ai-factors { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
  .ai-fval { font-size: 15px; }
  .ai-brain { width: 28px; height: 28px; font-size: 14px; }

  /* Bottom grid */
  .bottom-grid { grid-template-columns: 1fr !important; }
  .panel { padding: 12px; border-right: none; border-bottom: 1px solid var(--border); }

  /* Training */
  .train-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .train-val { font-size: 13px; }

  /* Buttons — touch friendly */
  .btn { padding: 8px 12px; font-size: 11px; min-height: 36px; }
  .ai-action-btn { padding: 14px; font-size: 14px; }
  .pct-btn { padding: 8px; font-size: 11px; }

  /* Modals */
  .modal-content,
  div[style*="max-width:680px"],
  div[style*="max-width:700px"],
  div[style*="max-width:750px"],
  div[style*="max-width:800px"],
  div[style*="max-width:820px"],
  div[style*="max-width:900px"],
  div[style*="max-width:1100px"] {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 10px auto !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }

  /* Signals grid */
  #signalsGrid { grid-template-columns: 1fr !important; }

  /* Backtest */
  div[style*="grid-template-columns:260px"] { grid-template-columns: 1fr !important; }
  #btResults { grid-template-columns: repeat(2, 1fr) !important; }

  /* Scroll areas */
  .scroll-area { max-height: 250px; }

  /* Score items */
  .score-bw { width: 50px; }

  /* Whale items */
  .whale-item { font-size: 10px; padding: 6px 8px; }

  /* Form inputs — bigger touch targets */
  .ifield { padding: 11px 14px; font-size: 14px; }
  .ilabel { font-size: 11px; }
  .form-tab { padding: 8px; font-size: 12px; }

  /* Settings modal grids */
  div[style*="grid-template-columns:1fr 1fr;gap:10px"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr;gap:8px"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns: 1fr 1fr; gap:10px"] { grid-template-columns: 1fr !important; }
}

/* ═══ KÜÇÜK MOBİL (max 480px) ═══ */
@media (max-width: 480px) {
  .logo { font-size: 13px; }
  .logo-icon { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
  .stats-row { grid-template-columns: 1fr 1fr !important; }
  .stat-val { font-size: 14px; }
  .chart-wrap { min-height: 180px; height: 180px; }
  .ind-grid { padding: 8px; gap: 5px; }
  .ind-val { font-size: 13px; }
  .ai-factors { grid-template-columns: 1fr 1fr !important; }
  .ai-fval { font-size: 13px; }
  .coin-item { padding: 6px; gap: 7px; }
  .coin-icon { width: 28px; height: 28px; font-size: 11px; }
  .trade-item { padding: 7px 9px; }
  .trade-side { width: 30px; height: 30px; font-size: 9px; }
}

/* ─── PROFILE MODAL STYLES ───────────────────── */
.profile-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 480px;
}
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
.info-item label {
    display: block;
    font-size: 10px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.info-item span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.modal-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 11px;
    color: var(--text2);
    margin-bottom: 6px;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: #4dbfff;
    box-shadow: 0 0 15px rgba(56, 178, 255, 0.3);
}
.btn-full {
    width: 100%;
    padding: 12px;
}

/* ─── ADMIN PANEL STYLES ─────────────────────── */
.admin-table-container {
    max-height: 400px;
    overflow-y: auto;
}
.admin-table-container table th {
    position: sticky;
    top: 0;
    background: var(--bg3);
    z-index: 10;
}

/* ─── TRADE JOURNEYS TIMELINE & AUTO-TUNING STYLES ─── */
.journey-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.journey-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 178, 255, 0.3);
    transform: translateY(-1px);
}
.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.journey-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.journey-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0;
}
.journey-item.expanded .journey-body {
    max-height: 2000px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
}
.timeline-container {
    position: relative;
    padding-left: 24px;
    margin-left: 10px;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}
.timeline-node {
    position: relative;
    padding-bottom: 20px;
}
.timeline-node:last-child {
    padding-bottom: 0;
}
.timeline-node::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg2);
    border: 3px solid var(--text3);
    z-index: 2;
    transition: all 0.2s;
}
.timeline-node.node-entry::before {
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(56, 178, 255, 0.5);
}
.timeline-node.node-dca::before {
    border-color: var(--amber);
    box-shadow: 0 0 8px rgba(255, 165, 2, 0.5);
}
.timeline-node.node-exit::before {
    border-color: var(--purple);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}
.timeline-node.node-exit-profit::before {
    border-color: var(--green);
    box-shadow: 0 0 8px rgba(0, 214, 143, 0.5);
}
.timeline-node.node-exit-loss::before {
    border-color: var(--red);
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
}
.node-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
}
.node-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text3);
    margin-bottom: 4px;
    font-weight: 600;
}
.node-card-body {
    font-size: 11px;
    color: var(--text2);
    font-weight: 500;
}
.tuning-box {
    background: rgba(0, 214, 143, 0.05);
    border: 1px dashed rgba(0, 214, 143, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
}

