/* =========================================================
   2GEOTBWARA — 디자인 시스템
   기조: 깊은 우주색 바탕 + 네온(시안 · 보라 · 마젠타) + 유리 카드
   시인성: 본문 16px, 진한 대비, 숫자는 고정폭, 손익은 색 + 부호(+/-)를 함께 표시
   손익 색은 한국식: 오르면 빨강, 내리면 파랑
   ========================================================= */
:root {
  --bg: #04060d;
  --bg-2: #080c1a;
  --glass: rgba(18, 26, 52, .62);
  --glass-2: rgba(28, 40, 78, .55);
  --glass-hi: rgba(255, 255, 255, .06);
  --line: rgba(120, 170, 255, .16);
  --line-hi: rgba(62, 240, 255, .45);
  --text: #eef4ff;
  --muted: #a3b2d1;
  --faint: #6f7fa3;
  --cyan: #3ef0ff;
  --violet: #8b6bff;
  --magenta: #ff4fd8;
  --lime: #b6ff5c;
  --amber: #ffc857;
  --up: #ff4d6d;
  --down: #4d9bff;
  --danger: #ff4d6d;
  --ok: #39f5a8;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --side: 248px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line) inset;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Orbitron", "Space Grotesk", var(--font);
  --num: "Space Grotesk", "Pretendard Variable", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 배경: 오로라 빛 + 은은한 격자 */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 12% 8%, rgba(62, 240, 255, .16), transparent 60%),
    radial-gradient(38vmax 32vmax at 88% 12%, rgba(139, 107, 255, .20), transparent 60%),
    radial-gradient(42vmax 34vmax at 70% 95%, rgba(255, 79, 216, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  animation: aurora 28s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
@keyframes aurora { to { transform: translate3d(-3vmax, 2vmax, 0) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { body::before, .pulse, .live-dot { animation: none !important; } }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .92em; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 레이아웃 ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px;
  padding: 26px 16px 20px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 36, .85), rgba(4, 6, 13, .9));
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.brand-sub { display: block; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.logo { filter: drop-shadow(0 0 10px rgba(62, 240, 255, .55)); flex: none; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md);
  color: var(--muted); font-weight: 600; font-size: 15.5px; position: relative; transition: .18s;
}
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { color: var(--text); background: var(--glass-hi); text-decoration: none; }
.nav a.on {
  color: var(--text); background: linear-gradient(90deg, rgba(62, 240, 255, .16), rgba(139, 107, 255, .08));
  box-shadow: 0 0 0 1px rgba(62, 240, 255, .28) inset, 0 0 24px -6px rgba(62, 240, 255, .5);
}
.nav a.on::before {
  content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: var(--grad); box-shadow: 0 0 12px var(--cyan);
}
.nav a.on svg { color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 6px; }
.who { font-size: 14.5px; }
.who b { font-weight: 700; }
.main { padding: 30px 38px 60px; min-width: 0; max-width: 1360px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.eyebrow { font-family: var(--display); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; display: block; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt { margin-top: 18px; }
.mt-s { margin-top: 10px; }

/* ---------- 카드 ---------- */
.card {
  position: relative; background: var(--glass); border-radius: var(--r-xl); padding: 22px 24px;
  box-shadow: var(--shadow); backdrop-filter: blur(16px) saturate(140%); min-width: 0;
}
.card::before {     /* 위쪽 빛 테두리 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(62, 240, 255, .35), transparent 35%, transparent 70%, rgba(255, 79, 216, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-head h2 svg { width: 20px; height: 20px; color: var(--cyan); }
.card.hero {
  background: linear-gradient(135deg, rgba(62, 240, 255, .14), rgba(139, 107, 255, .14) 50%, rgba(255, 79, 216, .10)), var(--glass);
}
.card.danger-zone { background: linear-gradient(135deg, rgba(255, 77, 109, .10), transparent 60%), var(--glass); }

/* 핵심 숫자 */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi-label { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi-value { font-family: var(--num); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi-sub { font-size: 14px; color: var(--muted); }
.big-num { font-family: var(--num); font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(62, 240, 255, .25); }
.big-num small { font-size: .38em; color: var(--muted); font-weight: 600; margin-left: 6px; text-shadow: none; }
.delta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--num); font-weight: 700; font-size: 17px; padding: 4px 12px; border-radius: 999px; }
.delta.up { background: rgba(255, 77, 109, .14); box-shadow: 0 0 0 1px rgba(255, 77, 109, .35) inset; }
.delta.down { background: rgba(77, 155, 255, .14); box-shadow: 0 0 0 1px rgba(77, 155, 255, .35) inset; }
.delta:not(.up):not(.down) { background: var(--glass-hi); color: var(--muted); }

/* ---------- 배지 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--glass-hi); color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset;
}
.badge.cyan { color: var(--cyan); background: rgba(62, 240, 255, .1); box-shadow: 0 0 0 1px rgba(62, 240, 255, .35) inset; }
.badge.violet { color: #b9a6ff; background: rgba(139, 107, 255, .14); box-shadow: 0 0 0 1px rgba(139, 107, 255, .4) inset; }
.badge.magenta { color: var(--magenta); background: rgba(255, 79, 216, .12); box-shadow: 0 0 0 1px rgba(255, 79, 216, .38) inset; }
.badge.ok { color: var(--ok); background: rgba(57, 245, 168, .1); box-shadow: 0 0 0 1px rgba(57, 245, 168, .35) inset; }
.badge.warn { color: var(--amber); background: rgba(255, 200, 87, .1); box-shadow: 0 0 0 1px rgba(255, 200, 87, .35) inset; }
.badge.danger { color: var(--danger); background: rgba(255, 77, 109, .12); box-shadow: 0 0 0 1px rgba(255, 77, 109, .4) inset; }
.tier { font-family: var(--display); font-size: 11px; letter-spacing: .12em; }
.tier-super { color: #ffe08a; background: linear-gradient(90deg, rgba(255, 200, 87, .22), rgba(255, 79, 216, .18)); box-shadow: 0 0 0 1px rgba(255, 200, 87, .5) inset, 0 0 16px -4px rgba(255, 200, 87, .6); }
.tier-vip { color: #d5c8ff; background: rgba(139, 107, 255, .2); box-shadow: 0 0 0 1px rgba(139, 107, 255, .55) inset; }
.tier-general { color: var(--cyan); background: rgba(62, 240, 255, .1); box-shadow: 0 0 0 1px rgba(62, 240, 255, .35) inset; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- 버튼 ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-md); color: var(--text);
  background: var(--glass-2); box-shadow: 0 0 0 1px var(--line) inset; transition: .18s; white-space: nowrap;
}
.btn:hover { box-shadow: 0 0 0 1px var(--line-hi) inset, 0 0 18px -6px var(--cyan); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #041018; background: var(--grad); box-shadow: 0 8px 26px -8px rgba(62, 240, 255, .7); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 34px -6px rgba(139, 107, 255, .8); }
.btn-go { color: #041410; background: linear-gradient(100deg, #39f5a8, #3ef0ff); box-shadow: 0 8px 26px -8px rgba(57, 245, 168, .75); }
.btn-danger { color: #fff; background: linear-gradient(100deg, #ff4d6d, #ff4fd8); box-shadow: 0 8px 26px -10px rgba(255, 77, 109, .8); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }
form.inline { display: inline; }

/* ---------- 입력 ---------- */
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.field-hint { font-size: 13px; font-weight: 500; color: var(--faint); }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: rgba(4, 8, 20, .7); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; transition: .15s; min-width: 0;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 240, 255, .18), 0 0 20px -8px var(--cyan); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--cyan); }
input[type=range] { width: 100%; accent-color: var(--cyan); }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
th { text-align: left; font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid rgba(120, 170, 255, .08); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(62, 240, 255, .04); }
td.num, th.num { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
.coin { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.coin-icon {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display);
  font-size: 10px; font-weight: 800; color: #041018; background: var(--grad); flex: none;
}
.side-buy { color: var(--up); font-weight: 700; }
.side-sell { color: var(--down); font-weight: 700; }
.empty { padding: 26px; text-align: center; color: var(--faint); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ---------- 알림 ---------- */
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash { padding: 13px 18px; border-radius: var(--r-md); font-weight: 600; display: flex; gap: 10px; align-items: flex-start;
  background: rgba(57, 245, 168, .1); box-shadow: 0 0 0 1px rgba(57, 245, 168, .35) inset; }
.flash.error { background: rgba(255, 77, 109, .12); box-shadow: 0 0 0 1px rgba(255, 77, 109, .45) inset; }
.flash.info { background: rgba(62, 240, 255, .08); box-shadow: 0 0 0 1px rgba(62, 240, 255, .3) inset; }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--r-lg); margin-bottom: 20px; font-weight: 700; }
.banner.danger { background: linear-gradient(90deg, rgba(255, 77, 109, .25), rgba(255, 79, 216, .12)); box-shadow: 0 0 0 1px rgba(255, 77, 109, .55) inset, 0 0 40px -12px var(--danger); }
.banner.warn { background: rgba(255, 200, 87, .1); box-shadow: 0 0 0 1px rgba(255, 200, 87, .4) inset; }
.callout { padding: 14px 16px; border-radius: var(--r-md); background: rgba(62, 240, 255, .06); box-shadow: 0 0 0 1px rgba(62, 240, 255, .2) inset; font-size: 14.5px; color: var(--muted); }
.callout b { color: var(--text); }
.callout.warn { background: rgba(255, 200, 87, .08); box-shadow: 0 0 0 1px rgba(255, 200, 87, .3) inset; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.steps b { color: var(--text); }

/* ---------- 그래프 ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(120, 170, 255, .1); stroke-dasharray: 3 5; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--num); }
.chart .glow { filter: drop-shadow(0 0 6px currentColor); }
.chart .pulse { animation: blink 1.8s ease-in-out infinite; }
.chart-empty { padding: 40px 16px; text-align: center; color: var(--faint); border: 1px dashed var(--line); border-radius: var(--r-lg); font-size: 14.5px; }

/* 비중 막대 */
.alloc { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; }
.alloc span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- 상태 패널 (봇) ---------- */
.bot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.orb {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 40%), var(--glass-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.orb svg { width: 28px; height: 28px; }
.orb.running { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 40%), linear-gradient(135deg, #39f5a8, #3ef0ff); color: #041410; box-shadow: 0 0 34px -4px rgba(57, 245, 168, .8); }
.orb.halted { background: linear-gradient(135deg, #ff4d6d, #ff4fd8); color: #fff; box-shadow: 0 0 30px -4px rgba(255, 77, 109, .8); }

/* AI 카드 */
.ai-card { display: flex; flex-direction: column; gap: 14px; }
.ai-card.selected { box-shadow: var(--shadow), 0 0 0 2px var(--cyan) inset, 0 0 40px -10px var(--cyan); }
.ai-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-desc { color: var(--muted); font-size: 15px; min-height: 48px; }
.ai-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ai-stat div { background: rgba(4, 8, 20, .5); border-radius: var(--r-md); padding: 10px 12px; box-shadow: 0 0 0 1px var(--line) inset; }
.ai-stat b { display: block; font-family: var(--num); font-size: 18px; }
.ai-stat span { font-size: 12.5px; color: var(--faint); font-weight: 600; }

/* 접속 기기 */
.device { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid rgba(120, 170, 255, .08); }
.device:last-child { border-bottom: 0; }
.device-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); box-shadow: 0 0 0 1px var(--line) inset; flex: none; }
.device-icon svg { width: 22px; height: 22px; color: var(--muted); }
.device.me .device-icon { box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 16px -4px var(--cyan); }
.device.me .device-icon svg { color: var(--cyan); }
.device-main { flex: 1; min-width: 0; }
.device-main b { display: block; }

/* 정보 목록 */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box code { flex: 1; padding: 12px 14px; border-radius: var(--r-md); background: rgba(4, 8, 20, .8); box-shadow: 0 0 0 1px var(--line-hi) inset; overflow-wrap: anywhere; color: var(--cyan); }
pre.code { margin: 0; padding: 16px; border-radius: var(--r-md); background: rgba(4, 8, 20, .85); box-shadow: 0 0 0 1px var(--line) inset; overflow-x: auto; font-size: 13.5px; line-height: 1.55; color: #cfe3ff; }

/* 탭 (필터) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; box-shadow: 0 0 0 1px var(--line) inset; }
.tabs a.on { color: #041018; background: var(--grad); box-shadow: none; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on:hover { color: #041018; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
details.more > summary { cursor: pointer; color: var(--cyan); font-weight: 600; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 12px; }

/* 이벤트 목록 */
.events { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(120, 170, 255, .07); font-size: 14.5px; }
.event:last-child { border-bottom: 0; }
.event i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); align-self: center; }
.event.warn i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.event.error i { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.event time { color: var(--faint); font-size: 13px; white-space: nowrap; }

/* ---------- 로그인 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(440px, 100%); }
.login .brand { justify-content: center; margin-bottom: 26px; }
.login .brand-name { font-size: 26px; }
.login .card { padding: 32px 30px; }
.login h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.login .lead { text-align: center; color: var(--muted); margin-bottom: 22px; }
.login-foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 18px; }

/* ---------- 공지 팝업 ---------- */
.npop-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); }
.npop { width: min(520px, 100%); max-height: 86vh; overflow: auto; }
.npop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.npop-body { color: var(--muted); margin-top: 12px; }
.npop-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.npop-pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand-sub, .side-foot .who, .side-foot .badge { display: none; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { padding: 9px 11px; font-size: 14px; white-space: nowrap; }
  .nav a span { display: none; }
  .nav a.on span { display: inline; }
  .nav a.on::before { display: none; }
  .side-foot { margin: 0 0 0 auto; padding: 0; flex-direction: row; }
  .main { padding: 20px 16px 50px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi-value { font-size: 22px; }
  .hide-m { display: none; }
  .tv { height: 420px; }
  .span2 { grid-column: auto; }
  .card { padding: 18px 16px; border-radius: 18px; }
  h1 { font-size: 23px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}
.banner svg { width: 22px; height: 22px; flex: none; }
.mb { margin-bottom: 14px; }
a.card { color: var(--text); transition: transform .18s; } a.card:hover { text-decoration: none; transform: translateY(-2px); }
.form > .btn, .form > .row > .btn { align-self: flex-start; }
.form > .btn-block, .form > .btn-lg { align-self: stretch; }

/* ---------- 차트 ---------- */
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.coin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.coin-tabs a { position: relative; padding: 8px 16px; border-radius: 12px; font-weight: 700; color: var(--muted); background: rgba(4, 8, 20, .5); box-shadow: 0 0 0 1px var(--line) inset; }
.coin-tabs a:hover { color: var(--text); text-decoration: none; }
.coin-tabs a.on { color: var(--text); box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 18px -6px var(--cyan); background: rgba(62, 240, 255, .1); }
.coin-tabs a i { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-legend { font-size: 13.5px; color: var(--muted); white-space: pre-wrap; }
.tv { height: min(560px, 62vh); min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: rgba(4, 8, 20, .45); box-shadow: 0 0 0 1px var(--line) inset; }
tr.jump { cursor: pointer; }
