:root {
  --bg:   #0e152b;
  --bg2:  #0d1424;
  --card: #0f1929;
  --cb:   #2a3458;
  --bid:  #22c55e;
  --ask:  #ef4444;
  --neu:  #38bdf8;
  --yel:  #fbbf24;
  --gray: #4b5563;
  --text: #e2e8f0;
  --muted:#64748b;
  --lbl:  #475569;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { 
  background:#0f172a; 
  color:var(--text); 
  font-family:'Malgun Gothic',sans-serif; 
  font-size:12px; 
  padding:16px 20px; 
}

/* ── REFRESH WIDGET ── */
#rw {
  display:flex; 
  align-items:center; gap:8px;
  background:#0d1424; 
  border:1px solid  var(--cb);
  border-radius:24px; 
  padding:5px 14px 5px 10px; }
#rw-status { 
  color:var(--muted); 
  font-size:11px; 
}
#rw-count  { color:var(--yel); font-size:11px; font-variant-numeric:tabular-nums; min-width:24px; }
.ts { position:relative; display:inline-block; width:36px; height:20px; }
.ts input { opacity:0; width:0; height:0; }
.tsb { position:absolute; cursor:pointer; inset:0; background:#1e2a42; border-radius:20px; transition:.25s; }
.tsb:before { content:''; position:absolute; width:14px; height:14px; left:3px; bottom:3px; background:#4b5563; border-radius:50%; transition:.25s; }
.ts input:checked ~ .tsb { background:var(--bid); }
.ts input:checked ~ .tsb:before { transform:translateX(16px); background:#fff; }

/* ── TOPBAR ── */
.topbar { 
  display:flex; 
  align-items:center; 
  gap:12px; 
  margin-bottom:20px; 
  padding:14px; 
  border-bottom:1px solid var(--cb);
  background: linear-gradient(90deg, #0e152b 30%, #040b1b 70%);
}
.Bar_Title {
  font-size:100px; 
  font-weight: 800;
  color:var(--text);
}
.sym-sel { 
  background:#111827; 
  color:var(--text); 
  border:1px solid var(--cb); 
  padding:6px 12px; 
  font-size:12px; 
  cursor:pointer;
  margin-left: 30px;
  border-radius:4px; 
}
.sym-name  { color:var(--yel); font-size:15px; font-weight:bold; letter-spacing:1px; }
.sym-price { color:var(--neu); font-size:18px; font-weight:bold; }
.sym-ab { font-size:11px; padding:2px 8px; border-radius:4px; }
.sym-ab.bid { background:#052e16; color:var(--bid); border:1px solid #15803d; }
.sym-ab.ask { background:#450a0a; color:var(--ask); border:1px solid #b91c1c; }
#last-upd { margin-left:auto; color:var(--gray); font-size:10px; }

#whale-data {
  padding: 0px 40px 40px 40px;
}

/* ── SECTION TITLE ── */
.stitle { 
  font-size:14px; 
  font-weight: 700;
  color:var(--text); 
  letter-spacing:2px; 
  text-transform:uppercase;
  margin:20px 0 8px; 
  padding-left:8px;
  margin-left: 5px;
  border-left:3px solid #00ff00; 
}

/* ── GRID ── */
.g3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.g2 { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }

/* ── CARD ── */
.card { 
  background: #091329; 
  border:1px solid var(--cb); 
  border-radius:4px; 
  padding:20px 30px; 
  box-shadow: 0 10px 10px rgba(0,0,0,0.5);
}
.ctitle { 
  font-size:12px;
  font-weight: 700; 
  color:var(--text); 
  letter-spacing:1px; 
  margin-bottom:10px; 
  text-transform:uppercase; 
  border-bottom: 1px solid var(--cb); 
  padding: 0px 10px 5px 10px;
}

/* ── VALUE ROW ── */
.vr { 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  margin-bottom:7px;
  border-bottom: 1px solid #1c2331;
  padding: 0px 10px 3px 10px;
}
.vr:last-child { margin-bottom:0; }
.vl { color:var(--lbl); font-size:11px; line-height:1.4; }
.vl small { color:var(--gray); font-size:9px; display:block; }
.vv { font-size:13px; font-weight:bold; }
.vv.bid  { color:var(--bid); }
.vv.ask  { color:var(--ask); }
.vv.neu  { color:var(--neu); }
.vv.yel  { color:var(--yel); }
.vv.gray { color:var(--gray); }

/* ── RATIO BAR ── */
.rbar-wrap { margin-top:10px; }
.rbar-lbl  { display:flex; justify-content:space-between; font-size:10px; margin-bottom:3px; }
.rbar      { height:6px; border-radius:3px; background:#1e2a42; overflow:hidden; }
.rbar-in   { 
  height:100%; 
  border-radius:3px;
  background:linear-gradient(90deg, var(--bid) var(--bp), var(--ask) var(--bp)); 
}

/* ── MINI TABLE ── */
.mt { width:100%; border-collapse:collapse; }
.mt th { font-size:10px; color:var(--muted); font-weight:normal; padding:4px 8px; border-bottom:1px solid var(--cb); text-align:left; }
.mt td { font-size:11px; padding:5px 8px; border-bottom:1px solid var(--bg2); }
.mt td.bid  { color:var(--bid); }
.mt td.ask  { color:var(--ask); }
.mt td.neu  { color:var(--neu); }
.mt td.yel  { color:var(--yel); }
.mt td.gray { color:var(--gray); }
.mt td.lbl  { color:var(--lbl); font-size:10px; }

/* ── DAY BARS ── */
.dbars { display:flex; gap:4px; align-items:flex-end; height:52px; margin-top:8px; }
.dcol  { display:flex; flex-direction:column; align-items:center; flex:1; gap:2px; }
.dbg   { width:100%; flex:1; background:#1e2a42; border-radius:3px 3px 0 0; display:flex; align-items:flex-end; }
.dbf   { width:100%; border-radius:3px 3px 0 0; background:var(--neu); min-height:2px; }
.dlbl  { font-size:9px; color:var(--muted); }

/* ── RAW ── */
.raw-btn { 
  font-size:12px; 
  color:var(--muted); 
  cursor:pointer; 
  padding:10px 25px;
  border:1px solid var(--cb); 
  border-radius:4px; 
  background:#040b1b;
  display:inline-block; 
  user-select:none; 
  margin-bottom:8px; 
  box-shadow: 0 10px 10px rgba(0,0,0,0.5);
}
.raw-btn:hover { 
  color:var(--text); 
  border: 1px solid steelblue;
}
#raw-data { 
  display:none; 
  overflow-x:auto; 
  margin-top: 10px;
}
.rt { width:100%; border-collapse:collapse; margin-bottom:8px; font-size:11px; }
.rt th { background:var(--bg2); color:var(--muted); font-weight:normal; border:1px solid var(--cb); padding:4px 8px; white-space:nowrap; text-align:center; }
.rt td { background:var(--bg); color:var(--text); border:1px solid var(--cb); padding:4px 8px; white-space:nowrap; text-align:center; }
.rt td.rn { color:var(--neu); }
.rt td.rb { color:var(--bid); }
.rt td.ra { color:var(--ask); }
.rt td.ry { color:var(--yel); }
.rt td.rg { color:var(--gray); }