/* ════════════════════════════════════════
   어슴새벽 — Apple Dark System
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #000000;
  --bg-1:        #0d0d0f;
  --bg-card:     rgba(28, 28, 30, 0.75);
  --bg-card-2:   rgba(44, 44, 46, 0.65);
  --sep:         rgba(84, 84, 88, 0.45);
  --sep-hi:      rgba(84, 84, 88, 0.7);

  --label:       #ffffff;
  --label-2:     rgba(235, 235, 245, 0.6);
  --label-3:     rgba(235, 235, 245, 0.3);
  --label-4:     rgba(235, 235, 245, 0.14);

  --green:  #30D158;
  --red:    #FF453A;
  --orange: #FF9F0A;
  --gold:   #FFD60A;
  --mint:   #3AFFD2;
  --teal:   #5AC8FA;
  --blue:   #0A84FF;
  --purple: #BF5AF2;

  /* 심볼/티커 통합 색상 — 아이스 블루 계열, 배경 위에서 선명하게 */
  --sym: rgba(168, 212, 255, 0.92);

  --font: -apple-system, 'Noto Sans KR', BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', 'SF Mono', ui-monospace, monospace;
  --r-xl: 22px;
  --r-lg: 16px;
  --r:    12px;
  --r-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#star-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.72; }

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
}

/* ════ HEADER ════ */
#site-header {
  position: relative; z-index: 10;
  padding: 1.1rem 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
#header-star-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.header-inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo-area { display: flex; align-items: center; gap: 0.9rem; position: relative; }

/* 베타 배지 */
.beta-badge {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.06em;
  color: rgba(58,255,210,0.85); background: rgba(58,255,210,0.1);
  border: 1px solid rgba(58,255,210,0.25);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  cursor: default; user-select: none; align-self: flex-start; margin-top: 2px;
}
.beta-tooltip {
  display: none; position: fixed;
  background: rgba(20,20,28,0.96); color: var(--label);
  padding: 0.7rem 1rem; border-radius: var(--r-sm);
  font-size: 0.75rem; line-height: 1.5; width: max-content; max-width: 280px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  z-index: 9999; pointer-events: none;
}
.logo-img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(58,255,210,0.45)) drop-shadow(0 0 20px rgba(58,255,210,0.18));
}
.logo-calligraphy {
  height: 40px; width: auto; max-width: 260px; object-fit: contain;
  filter: invert(1) brightness(1.2) contrast(1.8);
  mix-blend-mode: screen;
  opacity: 0.95;
}
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }

/* ── 헤더 인증 영역 ── */
.auth-header-area { display: flex; align-items: center; gap: 0.5rem; }
.auth-header-btn {
  display: flex; align-items: center; gap: 0.38rem;
  padding: 0.36rem 0.8rem;
  font-size: 0.72rem; font-weight: 600; font-family: var(--font);
  color: var(--label-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  cursor: pointer; transition: all 0.18s;
}
.auth-header-btn:hover {
  background: rgba(58,255,210,0.1);
  border-color: rgba(58,255,210,0.3);
  color: var(--mint);
}
.auth-user-menu { position: relative; display: flex; align-items: center; }
.auth-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(58,255,210,0.35), rgba(90,140,255,0.35));
  border: 1.5px solid rgba(58,255,210,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--mint);
  cursor: pointer; transition: border-color 0.18s;
}
.auth-avatar:hover { border-color: rgba(58,255,210,0.85); }
.auth-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: rgba(18,18,22,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); padding: 0.8rem 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 100;
}
.auth-dd-name  { padding: 0.1rem 1rem; font-size: 0.78rem; font-weight: 600; color: var(--label); }
.auth-dd-email { padding: 0.1rem 1rem 0.6rem; font-size: 0.65rem; color: var(--label-3); }
.auth-dd-sep   { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 0 0 0.3rem; }
.auth-dd-item  {
  display: block; width: 100%; text-align: left;
  padding: 0.45rem 1rem; font-size: 0.75rem;
  color: var(--label-2); background: none; border: none;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.auth-dd-item:hover { background: rgba(255,69,58,0.1); color: var(--red); }
.header-date { font-family: var(--mono); font-size: 0.72rem; color: var(--label-3); letter-spacing: 0.1em; }
.world-clocks { display: flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.68rem; }
.clock-item { display: flex; gap: 0.28rem; }
.clock-city  { color: var(--label-3); }
.clock-time  { color: var(--label-2); }
.clk-dot     { color: var(--label-4); }
.live-badge  { color: var(--mint); font-size: 0.62rem; margin-left: 0.2rem; animation: blink 2.5s ease-in-out infinite; text-shadow: 0 0 8px rgba(58,255,210,0.5); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ════ PILL NAV ════ */
.pill-nav {
  position: sticky; top: 0; z-index: 20;
  padding: 0.55rem max(2rem, calc(50vw - 720px + 2rem));
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top:    1px solid rgba(58,255,210,0.18);
  border-bottom: 1px solid rgba(58,255,210,0.18);
  overflow-x: auto; scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar { display: none; }
.pill-scroll { display: flex; gap: 0.18rem; width: max-content; }
.tab {
  background: none; border: none;
  color: rgba(168,212,255,0.65); font-family: var(--font); font-size: 0.78rem; font-weight: 400;
  padding: 0.4rem 1rem; border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.tab:hover { color: var(--sym); background: rgba(168,212,255,0.06); }
.tab.active {
  color: var(--label); font-weight: 600;
  background: rgba(58,255,210,0.08);
  border: 1px solid rgba(58,255,210,0.22);
  box-shadow: 0 0 12px rgba(58,255,210,0.1);
}

/* ════ MAIN ════ */
#main-content {
  position: relative; z-index: 5;
  max-width: 1440px; margin: 0 auto;
  padding: 1.75rem 2rem 6rem;
}
.tab-section { display: none; }
.tab-section.active { display: block; }

/* ════ PANEL HEADER ════ */
.panel-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 0.85rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--sep);
}
.panel-header--link {
  cursor: pointer; transition: opacity 0.15s;
}
.panel-header--link:hover { opacity: 0.75; }
.panel-header--link:hover .ph-sub { color: var(--mint); }
.ph-title { font-size: 0.82rem; font-weight: 600; color: var(--label); letter-spacing: -0.01em; }
.ph-sub   { font-size: 0.65rem; color: var(--label-3); }

.danger-badge {
  color: var(--red); background: rgba(255,69,58,0.12);
  padding: 0.18rem 0.6rem; border-radius: 99px; font-weight: 600;
}

/* ════ HERO 3 GRID ════ */
.hero-3grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1rem;
}

.hero-card {
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.2s;
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.hero-card:hover { transform: translateY(-3px); }

.hc-top { display: flex; align-items: baseline; gap: 0.55rem; }
.hc-symbol { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--sym); }
.hc-name   { font-size: 0.68rem; color: var(--label-2); }

.hc-price {
  font-family: var(--mono); font-size: 2.6rem; font-weight: 700;
  color: var(--label); letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hc-price-krw {
  font-family: var(--mono); font-size: 0.88rem; font-weight: 600;
  color: var(--mint); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin-top: 0.22rem;
  text-shadow: 0 0 10px rgba(58,255,210,0.35);
}

.hc-bottom { display: flex; align-items: center; gap: 0.5rem; }
.hc-change {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  padding: 0.22rem 0.65rem; border-radius: var(--r-sm);
}
.hc-change.positive { color: var(--green);  background: rgba(48,209,88,0.13); }
.hc-change.negative { color: var(--red);    background: rgba(255,69,58,0.13); }
.hc-change.neutral  { color: var(--label-3); }
.hc-period { font-size: 0.65rem; color: var(--label-3); }

/* ════ ALT STRIP ════ */
.alt-strip {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none;
  padding: 0; border-radius: var(--r-lg);
}
.alt-strip::-webkit-scrollbar { display: none; }

.alt-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.85rem 1.1rem; gap: 0.22rem; flex-shrink: 0;
  border-right: 1px solid var(--sep);
  min-width: 90px;
  transition: background 0.15s;
}
.alt-item:last-child { border-right: none; }
.alt-item:hover { background: rgba(255,255,255,0.04); }

.ai-sym   { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; color: var(--sym); text-transform: uppercase; }
.ai-price { font-family: var(--mono); font-size: 0.88rem; color: var(--label); font-variant-numeric: tabular-nums; }
.ai-change { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; }
.ai-change.positive { color: var(--green); }
.ai-change.negative { color: var(--red); }
.ai-change.neutral  { color: var(--label-2); }
.ai-sep { width: 1px; height: 36px; background: var(--sep); flex-shrink: 0; margin: 0 0.5rem; align-self: center; }

/* ════ LOWER GRID ════ */
.lower-grid {
  display: grid; grid-template-columns: 1fr 260px 280px;
  gap: 1rem;
}
.lc-panel { padding: 1.25rem 1.4rem; }

/* ════ SIGNAL ════ */
.signal-list { display: flex; flex-direction: column; gap: 0.45rem; }
.signal-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.52rem 0.75rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03); font-size: 0.78rem;
  transition: background 0.15s;
}
.signal-item:hover { background: rgba(255,255,255,0.06); }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.signal-dot.bullish { background: var(--green);  box-shadow: 0 0 5px var(--green); }
.signal-dot.bearish { background: var(--red);    box-shadow: 0 0 5px var(--red); }
.signal-dot.neutral { background: var(--orange); box-shadow: 0 0 5px var(--orange); }
.signal-text { flex: 1; color: var(--label-2); line-height: 1.4; font-size: 0.77rem; }
.signal-tag {
  font-size: 0.62rem; font-weight: 700;
  padding: 0.13rem 0.48rem; border-radius: 99px;
}
.signal-tag.bullish { color: var(--green);  background: rgba(48,209,88,0.12); }
.signal-tag.bearish { color: var(--red);    background: rgba(255,69,58,0.12); }
.signal-tag.neutral { color: var(--orange); background: rgba(255,159,10,0.12); }
.signal-section-hdr {
  font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--label-3); padding: 0.5rem 0 0.15rem;
  border-top: 1px solid rgba(255,255,255,0.07); margin-top: 0.2rem;
}
.signal-upcoming { align-items: flex-start; }
.signal-upcoming-body { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.signal-dday {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--mint); margin-right: 0.3rem;
}
.signal-ev-date {
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--label-3); margin-left: 0.2rem; margin-right: 0.4rem;
}
.signal-sign {
  font-size: 0.65rem; color: var(--label-3);
  background: rgba(255,255,255,0.06); border-radius: 4px;
  padding: 0 0.3rem; margin-left: 0.25rem;
}
.signal-note {
  font-size: 0.65rem; color: var(--label-3); line-height: 1.4;
}
.signal-loading { color: var(--label-3); font-size: 0.77rem; }

/* ════ FG MINI ════ */
.fg-mini-wrap { display: flex; align-items: center; gap: 1rem; }
#gauge-canvas-mini { flex-shrink: 0; }
.fg-mini-info { display: flex; flex-direction: column; gap: 0.3rem; }
.fg-mini-val  { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1; }
.fg-mini-text { font-size: 0.75rem; color: var(--label-2); }
.fg-mini-row  { font-size: 0.65rem; color: var(--label-3); }
.fg-mini-row strong { color: var(--label-2); }

/* FG color classes */
.fg-val-extreme-fear { color: #FF453A !important; }
.fg-val-fear         { color: #FF6B60 !important; }
.fg-val-neutral      { color: var(--orange) !important; }
.fg-val-greed        { color: #78D070 !important; }
.fg-val-extreme-greed{ color: var(--green) !important; }

/* ════ ALERT ════ */
.alert-panel-sm { }
.ph-icon { vertical-align: middle; margin-right: 0.3rem; margin-bottom: 1px; color: var(--teal); }
.alert-desc { font-size: 0.76rem; color: var(--label-2); line-height: 1.75; margin-bottom: 1rem; }
.alert-form { display: flex; flex-direction: column; gap: 0.55rem; }
.alert-form input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-sm);
  padding: 0.6rem 0.9rem; color: var(--label);
  font-family: var(--font); font-size: 0.8rem; outline: none; transition: border-color 0.2s;
}
.alert-form input:focus { border-color: rgba(58,255,210,0.45); box-shadow: 0 0 0 3px rgba(58,255,210,0.08); }
.alert-form input::placeholder { color: var(--label-3); }
.alert-form button {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; background: rgba(58,255,210,0.12); color: var(--mint);
  border: 1px solid rgba(58,255,210,0.28); border-radius: var(--r-sm);
  padding: 0.62rem 1rem; font-weight: 600; font-size: 0.82rem; font-family: var(--font);
  cursor: pointer; transition: all 0.18s;
}
.alert-form button:hover {
  background: rgba(58,255,210,0.22);
  border-color: rgba(58,255,210,0.5);
  box-shadow: 0 0 12px rgba(58,255,210,0.18);
}
.alert-msg { margin-top: 0.5rem; font-size: 0.74rem; }
.alert-msg.success { color: var(--mint); }
.alert-msg.error   { color: var(--red); }

/* ════ AUTH MODAL ════ */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.auth-modal {
  position: relative;
  width: 100%; max-width: 400px;
  margin: 1rem;
  padding: 2.2rem 2rem 2rem;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(18,18,22,0.96);
}
.auth-modal-close {
  position: absolute; top: 1.1rem; right: 1.2rem;
  background: none; border: none;
  color: var(--label-3); font-size: 1rem;
  cursor: pointer; line-height: 1; padding: 0.2rem 0.4rem;
  border-radius: var(--r-sm); transition: color 0.15s;
}
.auth-modal-close:hover { color: var(--label); }
.auth-modal-logo {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.auth-logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(58,255,210,0.4)); }
.auth-logo-text { font-size: 1rem; font-weight: 700; color: var(--label); letter-spacing: -0.01em; }
.auth-modal-desc {
  font-size: 0.78rem; color: var(--label-2);
  text-align: center; margin-bottom: 1.6rem; line-height: 1.6;
}
.auth-social-btns { display: flex; flex-direction: column; gap: 0.65rem; }
.auth-social-btn {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; padding: 0.78rem 1.1rem;
  border-radius: var(--r-sm); border: none;
  font-size: 0.88rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all 0.18s; text-align: left;
}

/* Google — 흰 배경 */
.auth-google {
  background: #fff; color: #3c4043;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.auth-google:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* Kakao — 노란 배경 */
.auth-kakao {
  background: #FEE500; color: rgba(0,0,0,0.85);
}
.auth-kakao:hover { background: #f0d800; }
.auth-kakao svg { flex-shrink: 0; }

/* Naver — 초록 배경 */
.auth-naver {
  background: #03C75A; color: #fff;
}
.auth-naver:hover { background: #02b04e; }
.auth-naver-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #03C75A; color: #fff;
  font-size: 0.82rem; font-weight: 900; font-family: 'Arial Black', sans-serif;
  flex-shrink: 0; line-height: 1;
}

/* 모달 탭 */
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-sm); overflow: hidden;
}
.auth-tab {
  flex: 1; padding: 0.55rem 0; border: none; background: transparent;
  color: var(--label-3); font-size: 0.78rem; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: all 0.18s;
}
.auth-tab.active {
  background: rgba(255,255,255,0.08); color: var(--label);
}
.auth-tab:hover:not(.active) { background: rgba(255,255,255,0.04); }
.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }

/* Discord 버튼 */
.auth-discord {
  background: #5865F2; color: #fff;
}
.auth-discord:hover { background: #4752C4; }

.auth-key-input {
  width: 100%; padding: 0.78rem 1.1rem;
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); color: var(--label);
  font-size: 0.88rem; font-family: var(--font);
  outline: none; transition: border-color 0.18s;
  box-sizing: border-box;
}
.auth-key-input:focus { border-color: rgba(255,255,255,0.3); }
.auth-key-input::placeholder { color: var(--label-3); }
.auth-key-submit {
  justify-content: center;
  background: rgba(255,255,255,0.1); color: var(--label);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.auth-key-submit:hover { background: rgba(255,255,255,0.18); }

.auth-err { font-size: 0.72rem; color: var(--red); min-height: 1em; }

/* 로그인 필요 토스트 */
.auth-toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20,20,28,0.95); color: var(--label);
  padding: 1rem 2rem; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600; font-family: var(--font);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999; pointer-events: none;
  animation: authToastFade 1.8s ease forwards;
}
@keyframes authToastFade {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ════ CONTENT CARD ════ */
.content-card { padding: 1.4rem 1.6rem; }

/* ════ BLOODMOON BANNER ════ */
.bloodmoon-banner {
  background: linear-gradient(135deg, rgba(255,69,58,0.15), rgba(191,90,242,0.1));
  border: 1px solid rgba(255,69,58,0.3);
  border-radius: var(--r-lg); padding: 1rem 1.4rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.bb-icon  { font-size: 1.8rem; }
.bb-title { font-size: 0.9rem; font-weight: 700; color: var(--red); }
.bb-desc  { font-size: 0.78rem; color: var(--label-2); margin-top: 0.2rem; }

/* ════ BLOODMOON TIMELINE ════ */
.bloodmoon-timeline { display: flex; flex-direction: column; gap: 1.2rem; }

.bm-event {
  position: relative;
  border-radius: var(--r); overflow: hidden;
}

.bm-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255,69,58,0.08);
  border: 1px solid rgba(255,69,58,0.2);
  border-radius: var(--r);
}
.bm-icon  { font-size: 1.5rem; flex-shrink: 0; }
.bm-info  { flex: 1; }
.bm-name  { font-size: 0.88rem; font-weight: 600; color: var(--label); }
.bm-date  { font-family: var(--mono); font-size: 0.72rem; color: var(--orange); margin-top: 0.2rem; }
.bm-desc  { font-size: 0.72rem; color: var(--label-2); margin-top: 0.18rem; }
.bm-danger{ font-size: 0.68rem; font-weight: 700; color: var(--red); background: rgba(255,69,58,0.12); padding: 0.18rem 0.6rem; border-radius: 99px; white-space: nowrap; }

/* 위험 구간 타임라인 바 */
.bm-timeline-bar {
  display: flex; align-items: center; gap: 0; margin-top: 0.6rem;
  height: 28px; border-radius: var(--r-sm); overflow: hidden;
  font-size: 0.62rem;
}
.btb-before { background: rgba(255,69,58,0.2); flex: 30; display: flex; align-items: center; justify-content: center; color: var(--red); font-weight: 600; }
.btb-event  { background: rgba(255,69,58,0.7); flex: 2; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.8rem; }
.btb-after  { background: rgba(255,69,58,0.2); flex: 30; display: flex; align-items: center; justify-content: center; color: var(--red); font-weight: 600; }
.btb-today  { position: absolute; top: 0; width: 2px; height: 100%; background: var(--teal); }

/* ── 블러드문 카드 상태 ── */
.bm-event.past {
  opacity: 0.62;
  border: 1px solid rgba(255,69,58,0.35);
  border-radius: var(--r);
}
.bm-event.past .bm-header {
  border-color: rgba(255,69,58,0.25);
}
.bm-event.active {
  border: 1.5px solid rgba(58,255,210,0.55);
  border-radius: var(--r);
  box-shadow: 0 0 18px rgba(58,255,210,0.12), 0 4px 24px rgba(58,255,210,0.08);
}
.bm-event.active .bm-header {
  border-color: rgba(58,255,210,0.3);
  background: rgba(58,255,210,0.05);
}

/* ── 날짜 행 ── */
.bm-date-row {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.18rem;
}

/* BTC 평균 배지 */
.bm-avg-badge {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.05); border-radius: 99px;
  padding: 0.15rem 0.55rem; white-space: nowrap;
  align-self: flex-start; margin-left: auto;
}

/* ── 변동성 4-셀 그리드 ── */
.bm-vol-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  margin-top: 0.65rem;
}
.bm-vol-cell {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm); padding: 0.45rem 0.55rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.bm-vol-lbl { font-size: 0.58rem; color: var(--label-3); letter-spacing: 0.03em; }
.bm-vol-val { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; }

/* 변동성 등급 뱃지 */
.bm-vol-level {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.18rem 0.5rem; border-radius: 99px; width: fit-content;
}
.bm-vol-level.low      { color: #30D158; background: rgba(48,209,88,0.12); }
.bm-vol-level.mid      { color: var(--orange); background: rgba(255,159,10,0.12); }
.bm-vol-level.high     { color: var(--red); background: rgba(255,69,58,0.12); }
.bm-vol-level.very-high{ color: #ff2020; background: rgba(255,32,32,0.18); box-shadow: 0 0 6px rgba(255,32,32,0.3); }

/* ── 기간 행 ── */
.bm-period-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.4rem; font-size: 0.62rem; color: var(--label-3);
  font-family: var(--mono);
}

/* ── 히스토리 힌트 ── */
.bm-hover-hint {
  margin-top: 0.5rem;
  font-size: 0.62rem; color: var(--teal); opacity: 0.7;
  text-align: center; letter-spacing: 0.02em;
  animation: blink 3s ease-in-out infinite;
}

/* ════ ASTROLOGY ════ */
.planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 0.8rem; }
.planet-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg); padding: 1rem; text-align: center; transition: background 0.15s;
}
.planet-card:hover { background: rgba(255,255,255,0.06); }
.planet-symbol { font-size: 1.9rem; margin-bottom: 0.3rem; }
.planet-name   { font-size: 0.68rem; color: var(--label-2); margin-bottom: 0.45rem; line-height: 1.4; }
.planet-status { display: inline-block; font-size: 0.62rem; font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 99px; }
.planet-status.retrograde { color: var(--red);   background: rgba(255,69,58,0.12); }
.planet-status.direct     { color: var(--green); background: rgba(48,209,88,0.1); }
.planet-sign { font-size: 0.72rem; color: var(--label-2); margin-top: 0.4rem; }
.planet-corr { font-size: 0.62rem; color: var(--label-3); margin-top: 0.22rem; }
.planet-end  { font-size: 0.58rem; color: var(--label-3); margin-top: 0.18rem; }

.events-list { display: flex; flex-direction: column; gap: 0.6rem; }
.event-item {
  display: flex; gap: 0.9rem; padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r); transition: background 0.15s;
}
.event-item:hover { background: rgba(255,255,255,0.05); }
.event-date-col { min-width: 60px; text-align: center; flex-shrink: 0; }
.event-date     { font-family: var(--mono); font-size: 0.7rem; color: var(--orange); display: block; }
.event-countdown{ font-size: 0.58rem; color: var(--label-3); display: block; margin-top: 0.14rem; }
.event-name     { font-size: 0.83rem; color: var(--label); font-weight: 500; }
.event-desc     { font-size: 0.7rem; color: var(--label-2); margin-top: 0.2rem; line-height: 1.5; }
.event-signal   { font-size: 0.64rem; font-weight: 700; margin-top: 0.25rem; }
.event-signal.bullish { color: var(--green); }
.event-signal.bearish { color: var(--red); }
.event-signal.neutral { color: var(--orange); }

.correlation-table { overflow-x: auto; }
.corr-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.corr-table th { text-align: left; padding: 0.48rem 0.85rem; color: var(--label-3); font-size: 0.62rem; letter-spacing: 0.1em; border-bottom: 1px solid var(--sep); white-space: nowrap; }
.corr-table td { padding: 0.58rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.035); vertical-align: middle; }
.corr-table tr:hover td { background: rgba(255,255,255,0.025); }
.corr-table tr:last-child td { border-bottom: none; }

/* ════ MOON CYCLE ════ */
.moon-current {
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1rem 0 0.5rem;
}
.mc-phase-emoji { font-size: 5rem; line-height: 1; }
.mc-info { display: flex; flex-direction: column; gap: 0.5rem; }
.mc-phase-name   { font-size: 1.3rem; font-weight: 600; color: var(--label); }
.mc-detail       { font-size: 0.82rem; color: var(--label-2); line-height: 1.7; }
.mc-illumination { font-family: var(--mono); font-size: 0.9rem; color: var(--orange); }

/* 2개월 나란히 */
.moon-calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0.25rem 0;
}
.mc-month { }
.mc-month-title {
  font-size: 0.76rem; font-weight: 700; color: var(--label-2);
  letter-spacing: 0.04em; margin-bottom: 0.7rem;
  padding-bottom: 0.45rem; border-bottom: 1px solid var(--sep);
}
.mc-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.38rem;
}

.mc-day-header {
  text-align: center; font-size: 0.58rem; color: var(--label-3);
  padding: 0.25rem; letter-spacing: 0.06em;
}
.mc-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.38rem 0.15rem; border-radius: var(--r-sm);
  text-align: center; cursor: default;
  min-height: 64px; gap: 0.15rem;
  border: 1px solid transparent;
  transition: background 0.15s;
  position: relative;
}
.mc-day--empty { visibility: hidden; }
.mc-day:not(.mc-day--empty):hover { background: rgba(255,255,255,0.05); }
.mc-day.today    { background: rgba(90,200,250,0.08); border-color: rgba(90,200,250,0.22); }
.mc-day.fullmoon { background: rgba(255,214,10,0.07); border-color: rgba(255,214,10,0.18); }

/* 보름달 주기 끝 (삭 = 새달) — 경고 */
.mc-day.cycle-end {
  background: rgba(255,69,58,0.08);
  border-color: rgba(255,69,58,0.30);
  box-shadow: inset 0 0 10px rgba(255,69,58,0.08);
}
.mc-day.cycle-end .mc-day-num   { color: var(--red); }
.mc-day.cycle-end .mc-day-label { color: var(--red); font-weight: 700; }

.mc-day-num   { font-size: 0.68rem; color: var(--label-3); }
.mc-day.today .mc-day-num { color: var(--teal); font-weight: 700; }
.mc-day-emoji { font-size: 1.35rem; line-height: 1; }
.mc-day-label { font-size: 0.46rem; color: var(--label-3); text-align: center; line-height: 1.2; }
.mc-day.fullmoon .mc-day-label { color: var(--gold); font-weight: 700; }

/* ── 다음 보름달 체크박스 강조 ── */
.mc-day.next-fm {
  border: 2px solid var(--gold) !important;
  background: rgba(255,214,10,0.11) !important;
  box-shadow:
    0 0 0 3px rgba(255,214,10,0.12),
    0 0 18px rgba(255,214,10,0.22);
  animation: nextfm-pulse 2.2s ease-in-out infinite;
  z-index: 1;
}
.mc-day.next-fm .mc-day-num  { color: var(--gold); font-weight: 700; }
.mc-day.next-fm .mc-day-label { color: var(--gold); font-weight: 700; }

@keyframes nextfm-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,214,10,0.12), 0 0 18px rgba(255,214,10,0.22); }
  50%      { box-shadow: 0 0 0 5px rgba(255,214,10,0.22), 0 0 30px rgba(255,214,10,0.40); }
}

/* 체크마크 배지 (다음 보름달) */
.mc-next-fm-check {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: #000;
  font-size: 0.55rem; font-weight: 900;
  position: absolute; top: -6px; right: -6px;
  box-shadow: 0 0 6px rgba(255,214,10,0.7);
  line-height: 1;
}

/* 경고 배지 (주기 끝 — 삭) */
.mc-cycle-warn {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 900;
  position: absolute; top: -6px; right: -6px;
  box-shadow: 0 0 7px rgba(255,69,58,0.65);
  line-height: 1;
  animation: warn-pulse 2.5s ease-in-out infinite;
}
@keyframes warn-pulse {
  0%,100% { box-shadow: 0 0 7px rgba(255,69,58,0.6); }
  50%      { box-shadow: 0 0 14px rgba(255,69,58,0.9), 0 0 22px rgba(255,69,58,0.3); }
}

/* ════ ZODIAC ════ */
.zodiac-card { padding: 0; }

.zodiac-input-area {
  padding: 1.4rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--sep);
}
.zodiac-label {
  display: block; font-size: 0.78rem; color: var(--label-2);
  margin-bottom: 0.7rem; letter-spacing: 0.04em;
}
.zodiac-input-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* 커스텀 셀렉트 */
.zcs-wrap {
  position: relative;
  user-select: none;
}
.zcs-trigger {
  display: flex; align-items: center; gap: 0.5rem;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  color: #e8e8f0;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.zcs-trigger:hover { border-color: rgba(255,255,255,0.3); }
.zcs-wrap.open .zcs-trigger { border-color: var(--mint); }
.zcs-wrap.open .zcs-arrow { transform: rotate(180deg); }
.zcs-arrow { flex-shrink: 0; transition: transform 0.15s; }
.zcs-val { flex: 1; }
#zcs-year  .zcs-trigger { min-width: 90px; }
#zcs-month .zcs-trigger { min-width: 72px; }
#zcs-day   .zcs-trigger { min-width: 64px; }
.zcs-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 999;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-sm);
  overflow-y: auto;
  max-height: 220px;
  min-width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.zcs-wrap.open .zcs-list { display: block; }
.zcs-item {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  color: #c8c8d4;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}
.zcs-item:hover { background: rgba(255,255,255,0.08); color: #e8e8f0; }
.zcs-item.selected { color: var(--mint); background: rgba(58,255,210,0.08); }
#zodiac-year  { min-width: 90px; }
#zodiac-month { min-width: 72px; }
#zodiac-day   { min-width: 64px; }

.zodiac-btn {
  background: linear-gradient(135deg, rgba(58,255,210,0.18), rgba(90,200,250,0.12));
  border: 1px solid rgba(58,255,210,0.35);
  border-radius: var(--r-sm); color: var(--mint);
  font-size: 0.85rem; font-weight: 500; padding: 0.55rem 1.2rem;
  cursor: pointer; transition: background 0.2s, border-color 0.2s; white-space: nowrap;
}
.zodiac-btn:hover {
  background: linear-gradient(135deg, rgba(58,255,210,0.28), rgba(90,200,250,0.2));
  border-color: var(--mint);
}

/* 결과 */
.zodiac-result { padding: 1.4rem 1.6rem 1.6rem; }
@keyframes zodiac-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.zodiac-fadein { animation: zodiac-fade 0.45s ease both; }

/* 별자리 헤더 */
.zodiac-sign-header {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem;
}
.zodiac-symbol {
  width: 52px; height: 52px; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(58,255,210,0.5));
}
.zodiac-sign-info { display: flex; flex-direction: column; gap: 0.25rem; }
.zodiac-sign-name { font-size: 1.25rem; font-weight: 600; color: var(--label); letter-spacing: -0.01em; }
.zodiac-sign-period { font-size: 0.75rem; color: var(--label-2); font-family: var(--mono); }
.zodiac-element-badge {
  display: inline-block; font-size: 0.7rem; padding: 0.16rem 0.65rem;
  border-radius: 99px; margin-top: 0.1rem; font-weight: 500;
}
.element-fire  { background: rgba(255,159,10,0.15); color: var(--orange); border: 1px solid rgba(255,159,10,0.3); }
.element-earth { background: rgba(48,209,88,0.12);  color: var(--green);  border: 1px solid rgba(48,209,88,0.28); }
.element-air   { background: rgba(90,200,250,0.12); color: var(--teal);   border: 1px solid rgba(90,200,250,0.28); }
.element-water { background: rgba(10,132,255,0.14); color: var(--blue);   border: 1px solid rgba(10,132,255,0.3); }

/* 사주 정보 바 */
.zodiac-saju-bar {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: rgba(255,255,255,0.04); border: 1px solid var(--sep);
  border-radius: var(--r); padding: 0.7rem 1rem; margin-bottom: 0.85rem;
}
.zodiac-saju-item { display: flex; flex-direction: column; gap: 0.18rem; padding: 0 0.9rem; flex: 1; min-width: 80px; }
.zodiac-saju-item:first-child { padding-left: 0; }
.zodiac-saju-sep { width: 1px; height: 2rem; background: var(--sep); flex-shrink: 0; }
.zodiac-saju-lbl { font-size: 0.62rem; color: var(--label-3); letter-spacing: 0.06em; text-transform: uppercase; }
.zodiac-saju-val { font-size: 0.85rem; font-weight: 500; color: var(--label); }

/* 사주 설명 패널 */
.zodiac-saju-panel {
  background: rgba(255,255,255,0.03); border: 1px solid var(--sep);
  border-radius: var(--r); padding: 0.85rem 1rem; margin-bottom: 1.1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.zodiac-saju-desc-row {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.83rem; color: var(--label-2); line-height: 1.6;
}
.zodiac-saju-desc-icon {
  font-size: 0.62rem; font-weight: 700; color: var(--mint);
  background: rgba(58,255,210,0.1); border: 1px solid rgba(58,255,210,0.2);
  border-radius: 4px; padding: 0.1rem 0.35rem; flex-shrink: 0; margin-top: 0.18rem;
  letter-spacing: 0.02em;
}

/* 4섹션 */
.zodiac-sections { display: flex; flex-direction: column; gap: 0.85rem; }
.zodiac-section {
  background: rgba(255,255,255,0.035); border: 1px solid var(--sep);
  border-radius: var(--r); padding: 0.95rem 1.1rem;
}
.zodiac-section--family  { background: rgba(90,200,250,0.05);  border-color: rgba(90,200,250,0.18); }
.zodiac-section--caution { background: rgba(255,69,58,0.06);   border-color: rgba(255,69,58,0.22); }
.zodiac-section--invest  { background: rgba(58,255,210,0.04);  border-color: rgba(58,255,210,0.18); }

.zodiac-section-title {
  font-size: 0.72rem; font-weight: 700; color: var(--label-2);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem;
}
.zodiac-section--family  .zodiac-section-title { color: rgba(90,200,250,0.85); }
.zodiac-section--caution .zodiac-section-title { color: rgba(255,100,90,0.85); }
.zodiac-section--invest  .zodiac-section-title { color: rgba(58,255,210,0.85); }

.zodiac-section-icon { font-size: 0.68rem; }
.zodiac-section-icon         { color: var(--label-3); }
.zodiac-section--family  .zodiac-section-icon { color: var(--teal); }
.zodiac-section--caution .zodiac-section-icon { color: var(--red); }
.zodiac-section--invest  .zodiac-section-icon { color: var(--mint); }

.zodiac-item {
  font-size: 0.875rem; color: var(--label); line-height: 1.68;
  padding: 0.2rem 0 0.2rem 1rem; position: relative;
}
.zodiac-item::before {
  content: ''; position: absolute; left: 0; top: 0.73rem;
  width: 4px; height: 4px; border-radius: 50%; background: var(--label-3);
}
.zodiac-section--family  .zodiac-item::before { background: var(--teal); }
.zodiac-section--caution .zodiac-item::before { background: var(--red); }
.zodiac-section--invest  .zodiac-item::before { background: var(--mint); }

/* 오행 × 투자 인사이트 */
.zodiac-ohaeng-note {
  margin-top: 0.85rem; padding: 0.7rem 0.9rem;
  background: rgba(58,255,210,0.07); border: 1px solid rgba(58,255,210,0.2);
  border-radius: var(--r-sm); font-size: 0.8rem; color: rgba(58,255,210,0.9);
  line-height: 1.6;
}

/* 키워드 태그 */
.zodiac-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.zodiac-tag {
  font-size: 0.7rem;
  background: rgba(58,255,210,0.07); border: 1px solid rgba(58,255,210,0.18);
  color: var(--mint); border-radius: 99px; padding: 0.2rem 0.7rem;
}

/* ════ FEAR & GREED ════ */
.fg-top-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem; margin-bottom: 0;
}
.fg-gauge-card, .fg-history-card, .fg-minmax-card { padding: 1.4rem 1.6rem; }

.fg-gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.fg-gauge-label { text-align: center; }
.fg-big-val  { font-family: var(--mono); font-size: 3.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--red); }
.fg-big-text { font-size: 1rem; color: var(--label-2); margin-top: 0.3rem; font-weight: 500; }

.fg-hist-list { display: flex; flex-direction: column; gap: 0.85rem; }
.fg-hist-row  { display: flex; align-items: center; justify-content: space-between; }
.fhr-label    { font-size: 0.82rem; color: var(--label-2); }

.fg-badge {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  padding: 0.3rem 0.9rem; border-radius: 99px; white-space: nowrap;
}
.fg-badge.extreme-fear { background: rgba(255,69,58,0.15);  color: var(--red); }
.fg-badge.fear         { background: rgba(255,107,96,0.13); color: #FF6B60; }
.fg-badge.neutral      { background: rgba(255,159,10,0.13); color: var(--orange); }
.fg-badge.greed        { background: rgba(120,208,112,0.13);color: #78D070; }
.fg-badge.extreme-greed{ background: rgba(48,209,88,0.13);  color: var(--green); }

.fg-mm-item  { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.75rem 0; border-bottom: 1px solid var(--sep); }
.fg-mm-item:last-child { border-bottom: none; padding-bottom: 0; }
.fg-mm-label { font-size: 0.72rem; color: var(--label-3); }
.fg-mm-date  { font-size: 0.75rem; color: var(--label-2); }

.fg-period-btns { display: flex; gap: 0.25rem; }
.fgp-btn {
  background: none; border: 1px solid rgba(255,255,255,0.12);
  color: var(--label-3); font-size: 0.72rem; padding: 0.3rem 0.75rem;
  border-radius: var(--r-sm); cursor: pointer; transition: all 0.15s;
}
.fgp-btn:hover { color: var(--label); background: rgba(255,255,255,0.08); }
.fgp-btn.active { color: var(--label); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

.fg-chart-wrap { position: relative; height: 320px; }
#fg-chart { width: 100% !important; height: 100% !important; }

/* ════ KIMP GAUGE ════ */
.kimp-gauge-section {
  margin: 0.25rem 0 1.75rem;
}
.kimp-gauge-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.kimp-gauge-coin-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235,235,245,0.35);
}
.kimp-gauge-cur-val {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  transition: color 0.5s;
}
.kimp-gauge-wrap { position: relative; }
.kimp-gauge-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  overflow: visible;
}
.kimp-gauge-track-bg {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(to right,
    hsl(145,65%,16%),
    hsl(148,40%,19%),
    rgba(255,255,255,0.04),
    hsl(44,55%,17%),
    hsl(10,65%,20%)
  );
}
.kimp-gauge-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  transition: left 0.45s ease, width 0.45s ease, background 0.45s ease;
}
.kimp-gauge-center-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(235,235,245,0.28);
  border-radius: 1px;
  z-index: 2;
}
.kimp-gauge-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: left 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kimp-gauge-pin-needle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(235,235,245,0.85);
  box-shadow: 0 0 10px rgba(0,0,0,0.6), 0 0 0 3px rgba(0,0,0,0.25);
  transition: background 0.45s;
  background: rgba(30,30,36,0.9);
}
.kimp-gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.63rem;
  color: rgba(235,235,245,0.22);
  font-family: var(--mono);
  padding: 0 1px;
}

/* ════ KIMP TABLE ════ */
.kimp-header-meta { display: flex; align-items: center; gap: 0.75rem; }
.kimp-rate-pill {
  font-size: 0.68rem; color: var(--teal);
  background: rgba(90,200,250,0.1); border: 1px solid rgba(90,200,250,0.2);
  padding: 0.18rem 0.65rem; border-radius: 99px;
}
.kimp-rate-pill strong { font-family: var(--mono); }

.kimp-table-wrap { overflow-x: auto; }
.kimp-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.82rem;
}
.kimp-table th {
  text-align: left; padding: 0.4rem 0.85rem;
  color: var(--label-3); font-size: 0.62rem; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--sep); white-space: nowrap; font-weight: 500;
}
.kimp-table td {
  padding: 0.82rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.035);
  vertical-align: middle;
}
.kimp-table tr:hover td { background: rgba(255,255,255,0.025); }
.kimp-table tr:last-child td { border-bottom: none; }

.kt-sym  { font-weight: 700; font-size: 0.84rem; color: var(--label); margin-right: 0.4rem; }
.kt-name { font-size: 0.66rem; color: var(--label-3); }
.kt-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kt-right { text-align: right !important; }
.kt-kimp  { font-weight: 700; }
.kt-vol   { color: var(--label-3) !important; }
.kt-loading { text-align: center; color: var(--label-3); padding: 2.5rem; font-size: 0.8rem; }

/* ════ TRUMP CHART ════ */
.trump-legend {
  display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.trump-leg-item {
  display: flex; align-items: center; gap: 0.38rem;
  font-size: 0.64rem; color: var(--label-2);
}
.trump-leg-sw {
  display: inline-block; width: 20px; height: 3px; border-radius: 2px;
}
.trump-chart-wrap {
  position: relative; height: 460px;
}
#trump-chart-canvas { width: 100% !important; height: 100% !important; }
.trump-chart-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--label-3); font-size: 0.8rem; pointer-events: none;
}

/* ── 오늘선 오버레이 (흰색 얇은 선) ── */
.trump-today-overlay {
  position: absolute; top: 0; left: 0;
  pointer-events: none; display: none;
}
.trump-today-line {
  position: absolute;
  width: 1px;
  background: rgba(255,255,255,0.45);
}
.trump-today-lbl {
  position: absolute;
  margin-left: 4px;
  font-size: 0.6rem; font-family: var(--mono);
  color: rgba(255,255,255,0.4); letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── 다가오는 중간선거 민트 글로우 ── */
@keyframes midtermGlow {
  0%, 100% { opacity: 0.5;  box-shadow: 0 0 4px 1px rgba(58,255,210,0.4); }
  50%       { opacity: 1;   box-shadow: 0 0 18px 4px rgba(58,255,210,1); }
}
.trump-next-midterm-overlay {
  position: absolute; top: 0; left: 0;
  pointer-events: none; display: none;
}
.trump-next-midterm-line {
  position: absolute;
  width: 2px; margin-left: -1px;
  background: rgba(58,255,210,0.9);
  border-radius: 1px;
  animation: midtermGlow 1.6s ease-in-out infinite;
}
.trump-next-midterm-lbl {
  position: absolute;
  margin-left: 5px;
  font-size: 0.62rem; font-family: var(--mono);
  color: var(--mint); letter-spacing: 0.04em;
  white-space: nowrap;
  animation: midtermGlow 1.6s ease-in-out infinite;
}

/* ── 이벤트 호버 툴팁 ── */
.trump-ev-tip {
  position: absolute;
  display: none;
  background: rgba(18,18,20,0.96);
  border: 1px solid rgba(90,200,250,0.25);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  pointer-events: none;
  z-index: 10;
  min-width: 160px;
}
.trump-ev-tip .tet-type {
  font-size: 0.6rem; color: rgba(90,200,250,0.7);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.trump-ev-tip .tet-label {
  font-size: 0.8rem; color: #fff; font-weight: 600;
  margin-bottom: 0.2rem;
}
.trump-ev-tip .tet-date {
  font-size: 0.68rem; font-family: var(--mono);
  color: rgba(235,235,245,0.45);
}

/* ════ BTC × BLOODMOON CHART ════ */
.btc-bm-legend {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.btc-bm-leg-item {
  display: flex; align-items: center; gap: 0.38rem;
  font-size: 0.64rem; color: var(--label-2);
}
.btc-bm-leg-swatch {
  display: inline-block; width: 20px; height: 3px; border-radius: 2px;
}
.btc-bm-wrap {
  position: relative; height: 400px;
}
#btc-bloodmoon-chart { width: 100% !important; height: 100% !important; }
.btc-bm-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--label-3); font-size: 0.8rem; pointer-events: none;
}


/* ════ BTC 차트 블러드문 호버 툴팁 ════ */
.bm-chart-tooltip {
  position: fixed; z-index: 9999; display: none; pointer-events: none;
  width: 300px;
  background: rgba(14,14,16,0.97);
  border: 1px solid rgba(255,69,58,0.3);
  border-radius: var(--r-lg);
  padding: 0.8rem 0.95rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,69,58,0.1);
  backdrop-filter: blur(24px);
}
.bct-head {
  display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap;
  margin-bottom: 0.5rem; padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bct-moon { font-size: 1rem; }
.bct-name {
  font-size: 0.76rem; font-weight: 700; color: var(--red); flex: 1;
}
.bct-date {
  font-family: var(--mono); font-size: 0.62rem; color: var(--label-3);
}
.bct-date em { color: var(--purple); font-style: normal; }
.bct-vol {
  font-size: 0.62rem; color: var(--label-3);
  margin-bottom: 0.45rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.6;
}
.bct-hist-label {
  font-size: 0.58rem; color: var(--label-3); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.4rem;
}
.bct-item {
  margin-top: 0.45rem; padding-top: 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.bct-item:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.bct-item-date {
  font-family: var(--mono); font-size: 0.6rem; color: var(--label-3);
  display: block; margin-bottom: 0.1rem;
}
.bct-item-name {
  font-size: 0.72rem; font-weight: 600; color: var(--orange);
  display: block; margin-bottom: 0.15rem; line-height: 1.35;
}
.bct-item-detail {
  font-size: 0.62rem; color: var(--label-2); line-height: 1.55; margin: 0;
}
.bct-empty {
  font-size: 0.68rem; color: var(--label-3); text-align: center;
  padding: 0.4rem 0;
}

/* ════ BLOODMOON HISTORY TOOLTIP ════ */
.bm-hist-tooltip {
  position: fixed; z-index: 9999; pointer-events: none;
  display: none;
  background: rgba(18,18,20,0.97);
  border: 1px solid rgba(255,69,58,0.25);
  border-radius: var(--r-lg);
  padding: 0.85rem 1rem;
  min-width: 240px; max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,69,58,0.12);
  backdrop-filter: blur(20px);
}

.bht-head {
  font-size: 0.68rem; font-weight: 700;
  color: var(--orange); margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 0.4rem;
}
.bht-item {
  margin-top: 0.55rem; padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.bht-item:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.bht-date {
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--label-3); margin-bottom: 0.18rem;
}
.bht-name {
  font-size: 0.74rem; font-weight: 600; color: var(--red);
  margin-bottom: 0.22rem; line-height: 1.35;
}
.bht-detail {
  font-size: 0.64rem; color: var(--label-2); line-height: 1.5;
}

/* ════ MOON × BTC CHART ════ */
.mc-chart-legend {
  display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.mc-chart-leg-item {
  display: flex; align-items: center; gap: 0.38rem;
  font-size: 0.64rem; color: var(--label-2);
}
.mc-chart-leg-sw {
  display: inline-block; width: 20px; height: 3px; border-radius: 2px;
}
.mc-moon-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
}
.mc-chart-zoom-btns {
  display: flex; gap: 0.45rem; margin-bottom: 0.7rem;
}
.mc-zoom-btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem; font-family: var(--mono);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: var(--label-2);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.mc-zoom-btn:hover {
  background: rgba(58,255,210,0.12);
  border-color: rgba(58,255,210,0.35);
  color: var(--mint);
}
.mc-chart-wrap {
  position: relative; height: 440px;
}
.mc-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.mc-chart-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--label-3); font-size: 0.8rem; pointer-events: none;
}

/* ════ CHART VIEW ════ */

/* 종목 탭 */
.cv-sym-row {
  display: flex; gap: 0.25rem; margin-bottom: 0.85rem; flex-wrap: wrap;
}
.cv-sym {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(168,212,255,0.6);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.4rem 1.1rem; border-radius: var(--r-sm);
  cursor: pointer; transition: all 0.15s;
}
.cv-sym-q { font-weight: 400; color: rgba(168,212,255,0.35); font-size: 0.72rem; }
.cv-sym:hover { color: var(--sym); border-color: rgba(168,212,255,0.2); background: rgba(168,212,255,0.06); }
.cv-sym.active {
  color: #fff; background: rgba(58,255,210,0.1);
  border-color: rgba(58,255,210,0.3);
  box-shadow: 0 0 12px rgba(58,255,210,0.08);
}

/* 트레이딩 카드 */
.cv-card {
  background: #060608;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* 툴바 */
.cv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
}
.cv-tfs { display: flex; gap: 0.08rem; }
.cv-tf {
  background: none; border: none;
  color: rgba(168,212,255,0.5);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem; border-radius: 4px;
  cursor: pointer; transition: all 0.12s;
}
.cv-tf:hover { color: var(--sym); background: rgba(168,212,255,0.07); }
.cv-tf.active { color: var(--mint); background: rgba(58,255,210,0.1); }

/* 지표 툴바 */
.cv-ind-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.18);
}
.cv-ig { display: flex; align-items: center; gap: 0.25rem; }
.cv-ig-lbl {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.09em;
  color: rgba(235,235,245,0.22); text-transform: uppercase; white-space: nowrap;
  padding-right: 0.3rem;
}
.cv-ig-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.cv-ig-tools { margin-left: auto; gap: 0.3rem; }
.cv-ind-btn {
  background: none; border: 1px solid rgba(255,255,255,0.08);
  color: rgba(168,212,255,0.45);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.18rem 0.5rem; border-radius: 3px;
  cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.cv-ind-btn:hover { color: var(--sym); border-color: rgba(168,212,255,0.25); background: rgba(168,212,255,0.05); }
.cv-ind-btn.active { color: var(--mint); border-color: rgba(58,255,210,0.3); background: rgba(58,255,210,0.08); }
/* MA 버튼은 각 이평선 고유 색으로 활성화 */
#cv-ma-group .cv-ind-btn.active { color: var(--ma-c); border-color: var(--ma-c); background: rgba(255,255,255,0.05); }
.cv-tool-btn {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: rgba(168,212,255,0.55);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em;
  padding: 0.18rem 0.55rem; border-radius: 3px;
  cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.cv-tool-btn:hover { color: var(--sym); border-color: rgba(168,212,255,0.3); }
.cv-tool-btn.active { color: var(--mint); border-color: rgba(58,255,210,0.4); background: rgba(58,255,210,0.1); }

/* 비교 심볼 행 */
.cv-cmp-row {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,200,50,0.03);
}
.cv-cmp-lbl {
  font-family: var(--mono); font-size: 0.6rem; color: rgba(255,200,50,0.5); letter-spacing: 0.08em;
  margin-right: 0.25rem; white-space: nowrap;
}
.cv-cmp-sym {
  background: none; border: 1px solid rgba(255,200,50,0.2);
  color: rgba(255,200,50,0.65);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  padding: 0.16rem 0.5rem; border-radius: 3px;
  cursor: pointer; transition: all 0.12s;
}
.cv-cmp-sym:hover  { color: rgba(255,200,50,0.95); border-color: rgba(255,200,50,0.45); background: rgba(255,200,50,0.07); }
.cv-cmp-sym.active { color: #ffc832; border-color: rgba(255,200,50,0.6); background: rgba(255,200,50,0.12); }
.cv-cmp-remove {
  background: none; border: 1px solid rgba(255,71,87,0.2);
  color: rgba(255,71,87,0.55);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  padding: 0.16rem 0.45rem; border-radius: 3px;
  cursor: pointer; transition: all 0.12s; margin-left: auto;
}
.cv-cmp-remove:hover { color: #ff4757; border-color: rgba(255,71,87,0.5); background: rgba(255,71,87,0.08); }

.cv-right-bar { display: flex; align-items: center; gap: 1rem; }
.cv-ohlc-info {
  font-family: var(--mono); font-size: 0.68rem;
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.cv-ohlc-info .cv-o { color: rgba(235,235,245,0.55); }
.cv-ohlc-info .cv-h { color: var(--green); }
.cv-ohlc-info .cv-l { color: var(--red); }
.cv-ohlc-info .cv-c { color: var(--label); }
.cv-price-live { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--label); white-space: nowrap; }

/* 차트 영역 */
.cv-charts-area  { display: flex; }
.cv-charts-inner { flex: 1; min-width: 0; position: relative; }
.cv-main-chart   { height: 455px; position: relative; }
.cv-rsi-chart    { height: 110px; }
.cv-wto-chart    { height: 150px; }
.cv-macd-chart   { height: 110px; }

/* 그리기 툴바 (왼쪽 사이드바) */
.cv-draw-bar {
  width: 38px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 3px;
  background: rgba(0,0,0,0.35);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.cv-db-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent;
  color: rgba(168,212,255,0.4);
  border-radius: 4px;
  cursor: pointer; transition: all 0.12s;
  padding: 5px; flex-shrink: 0;
}
.cv-db-btn svg { width: 16px; height: 16px; }
.cv-db-btn:hover { color: var(--sym); border-color: rgba(168,212,255,0.2); background: rgba(168,212,255,0.06); }
.cv-db-btn.active { color: var(--mint); border-color: rgba(58,255,210,0.3); background: rgba(58,255,210,0.08); }
.cv-db-btn.cv-db-danger { color: rgba(255,71,87,0.4); }
.cv-db-btn.cv-db-danger:hover { color: #ff4757; border-color: rgba(255,71,87,0.3); background: rgba(255,71,87,0.07); }
.cv-db-sep {
  width: 22px; height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 2px 0;
}

/* 그리기 캔버스 오버레이 */
.cv-draw-canvas {
  position: absolute;
  top: 0; left: 0;
  z-index: 4;
  pointer-events: none;    /* 포인터 모드: 이벤트 통과 */
  cursor: crosshair;
}
.cv-draw-canvas.drawing { pointer-events: all; }

/* 서브 패인 헤더 (RSI / MACD 공용) */
.cv-sub-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.28rem 1rem;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cv-ind-name { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(191,90,242,0.9); }
.cv-ind-name em { color: rgba(191,90,242,0.5); font-style: normal; }
.cv-macd-name { color: rgba(38,215,184,0.9) !important; }
.cv-macd-name em { color: rgba(38,215,184,0.5) !important; }
.cv-ind-val  { font-family: var(--mono); font-size: 0.68rem; color: rgba(191,90,242,0.9); }

/* 로딩 */
.cv-loading {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(6,6,8,0.8);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
}
.cv-loading.show { display: flex; }
@keyframes cvSpin { to { transform: rotate(360deg); } }
.cv-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(58,255,210,0.12);
  border-top-color: var(--mint);
  animation: cvSpin 0.75s linear infinite;
}
.cv-loading-msg {
  font-family: var(--mono); font-size: 0.65rem;
  color: rgba(58,255,210,0.65); letter-spacing: 0.08em;
}

/* BTC.D 패널 */
.cv-btcd-chart-wrap { position: relative; height: 440px; margin: 0 -0.25rem 1rem; }
.cv-btcd-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.cv-btcgold-chart-wrap { position: relative; height: 520px; }
.cv-btcgold-toolbar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cv-bg-tf {
  font: 500 0.7rem/1 var(--mono); color: var(--label-3); background: none;
  border: 1px solid transparent; padding: 0.25rem 0.6rem; border-radius: 4px; cursor: pointer;
}
.cv-bg-tf.active { color: var(--mint); border-color: rgba(58,255,210,0.3); background: rgba(58,255,210,0.08); }
.cv-bg-tf:hover:not(.active) { color: var(--label-2); }
.cv-total-lw-wrap { position: relative; height: 420px; }
.cv-total-chart-wrap { position: relative; height: 660px; }
.cv-total-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.cv-total-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 3rem 0;
}
.cv-total-toggles {
  display: flex; gap: 0.4rem; padding: 0.5rem 0.75rem 0;
}
.cv-btcgold-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 3rem 0;
  color: rgba(58,255,210,0.65);
  font-family: var(--mono); font-size: 0.7rem;
}

.cv-btcd-legend {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.65rem 0; margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--sep);
}
.cv-bl-item { display: flex; align-items: center; gap: 0.38rem; font-size: 0.68rem; color: var(--label-2); }
.cv-bl-line { display: inline-block; width: 22px; height: 2px; }
.cv-bl-hist { background: rgba(80,120,200,0.9); }
.cv-bl-sa   { background: linear-gradient(90deg, rgba(48,209,88,0.9) 50%, transparent 50%); background-size: 6px 2px; }
.cv-bl-sb   { background: linear-gradient(90deg, rgba(191,90,242,0.9) 50%, transparent 50%); background-size: 6px 2px; }
.cv-bl-box  { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.cv-bl-alt  { background: rgba(48,209,88,0.25); border: 1px solid rgba(48,209,88,0.4); }
.cv-bl-mid  { background: rgba(255,150,80,0.18); border: 1px solid rgba(255,150,80,0.35); }

/* 시나리오 설명 */
.cv-btcd-scenarios {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  margin-bottom: 1rem;
}
.cv-sc {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.73rem; line-height: 1.5;
}
.cv-sc strong { display: block; margin-bottom: 0.3rem; font-size: 0.75rem; }
.cv-sc p { color: var(--label-2); margin: 0; }
.cv-sc-a { background: rgba(48,209,88,0.07); border: 1px solid rgba(48,209,88,0.2); }
.cv-sc-a strong { color: rgba(48,209,88,0.95); }
.cv-sc-b { background: rgba(191,90,242,0.07); border: 1px solid rgba(191,90,242,0.2); }
.cv-sc-b strong { color: rgba(191,90,242,0.95); }

/* 데이터 테이블 */
.cv-btcd-table-wrap { overflow-x: auto; }
.cv-btcd-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.73rem;
}
.cv-btcd-table th {
  padding: 0.55rem 0.8rem; text-align: left;
  background: rgba(255,255,255,0.03);
  color: var(--label-3); font-weight: 500; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--sep);
  white-space: nowrap;
}
.cv-btcd-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--label-2); vertical-align: middle;
}
.cv-btcd-table td b { color: var(--label); }
.cv-btcd-table td small { color: var(--label-3); font-size: 0.65rem; }
.cv-row-pred td { background: rgba(58,255,210,0.03); }
.cv-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  padding: 0.18rem 0.55rem; border-radius: 99px; white-space: nowrap;
}
.cv-b1 { background: rgba(90,140,255,0.18); color: rgba(140,180,255,0.9); }
.cv-b2 { background: rgba(48,209,88,0.18);  color: rgba(48,209,88,0.95); }
.cv-b3 { background: rgba(58,255,210,0.15); color: var(--mint); }
.cv-pct { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; }
.cv-dn   { color: var(--red); }
.cv-warn { color: var(--orange); }
.cv-days { font-family: var(--mono); font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 4px; }
.cv-grn  { color: rgba(48,209,88,0.95); background: rgba(48,209,88,0.12); }
.cv-add  { font-family: var(--mono); font-weight: 700; color: var(--mint); }

/* ════ MISC ════ */
.coming-soon { text-align: center; color: var(--label-3); font-size: 0.82rem; padding: 4rem; font-weight: 300; }

/* ════ FUNDING RATE HEATMAP ════ */
.fh-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}

/* 헤더 */
.fh-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding: 1rem 1.4rem 0.8rem;
  border-bottom: 1px solid var(--sep);
}
.fh-title-area { display: flex; flex-direction: column; gap: 0.2rem; }
.fh-updated { font-size: 0.72rem; color: var(--label-3); font-family: var(--mono); }

.fh-controls { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }

/* 기간 버튼 */
.fh-period-group { display: flex; gap: 0; border: 1px solid var(--sep); border-radius: var(--r-sm); overflow: hidden; }
.fh-period-btn {
  background: transparent; border: none; color: var(--label-2);
  font-size: 0.75rem; font-weight: 500; padding: 0.35rem 0.75rem;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.fh-period-btn:hover   { background: rgba(255,255,255,0.07); color: var(--label); }
.fh-period-btn.active  { background: rgba(58,255,210,0.14); color: var(--mint); }

/* 색상 범위 슬라이더 */
.fh-color-group { display: flex; align-items: center; gap: 0.5rem; }
.fh-ctrl-lbl { font-size: 0.7rem; color: var(--label-3); white-space: nowrap; }
.fh-slider {
  -webkit-appearance: none; appearance: none;
  width: 80px; height: 3px;
  background: rgba(255,255,255,0.12); border-radius: 2px; outline: none; cursor: pointer;
}
.fh-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mint); cursor: pointer;
  box-shadow: 0 0 6px rgba(58,255,210,0.5);
}

/* 새로고침 버튼 */
.fh-refresh-btn {
  background: rgba(255,255,255,0.06); border: 1px solid var(--sep);
  border-radius: var(--r-sm); color: var(--label-2);
  font-size: 1rem; width: 28px; height: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.fh-refresh-btn:hover { background: rgba(58,255,210,0.1); color: var(--mint); }

/* 범례 */
.fh-legend {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.4rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fh-leg-val {
  font-size: 0.68rem; color: var(--label-3);
  font-family: var(--mono); white-space: nowrap; min-width: 44px;
}
.fh-leg-val:last-of-type { text-align: right; }
.fh-leg-gradient {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, hsl(260,80%,36%), hsl(180,35%,22%), hsl(28,88%,44%));
}
.fh-leg-unit { font-size: 0.62rem; color: var(--label-3); white-space: nowrap; margin-left: 0.2rem; }

/* 캔버스 래퍼 */
.fh-wrap {
  position: relative; width: 100%;
  min-height: 200px;
  overflow: hidden;
}
#fh-canvas {
  display: block; width: 100%;
  transition: opacity 0.3s;
}

/* 로딩 */
.fh-loading {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  position: absolute; inset: 0; z-index: 2;
  font-size: 0.82rem; color: var(--label-3);
  background: rgba(13,13,15,0.5);
}
.fh-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(58,255,210,0.2);
  border-top-color: var(--mint);
  animation: fh-spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes fh-spin { to { transform: rotate(360deg); } }

/* 실시간 펀딩레이트 바 */
.fh-live-section {
  margin: 0.75rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.fh-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}
.fh-live-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(235,235,245,0.4);
  text-transform: uppercase;
}
.fh-next-funding {
  font-size: 0.7rem;
  color: rgba(58,255,210,0.55);
  font-family: 'Space Mono', monospace;
}
.fh-live-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
}
.fh-live-item {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
}
.fh-live-coin {
  color: rgba(235,235,245,0.45);
  font-weight: 600;
  font-size: 0.68rem;
}
.fh-live-rate {
  font-family: 'Space Mono', monospace;
  font-size: 0.71rem;
  font-weight: 700;
}

/* 툴팁 */
.fh-tooltip {
  position: absolute; z-index: 10;
  background: rgba(18,18,22,0.95);
  border: 1px solid rgba(58,255,210,0.25);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.8rem;
  pointer-events: none;
  opacity: 0; transition: opacity 0.12s;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  min-width: 155px;
}
.fht-coin {
  font-size: 0.9rem; font-weight: 700; color: var(--label);
  margin-bottom: 0.2rem;
}
.fht-usdt { font-size: 0.65rem; color: var(--label-3); margin-left: 0.2rem; }
.fht-date { font-size: 0.68rem; color: var(--label-3); font-family: var(--mono); margin-bottom: 0.5rem; }
.fht-rows { display: flex; flex-direction: column; gap: 0.25rem; }
.fht-row  { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fht-lbl  { font-size: 0.72rem; color: var(--label-3); }
.fht-val  { font-size: 0.78rem; font-weight: 600; font-family: var(--mono); }

/* 청산 히트맵 외부 링크 카드 */
.fh-ext-card {
  margin-top: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
}
.fh-ext-inner {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.3rem 1.5rem; flex-wrap: wrap;
}
.fh-ext-icon { font-size: 2rem; flex-shrink: 0; }
.fh-ext-info { flex: 1; min-width: 0; }
.fh-ext-title { font-size: 1rem; font-weight: 600; color: var(--label); margin-bottom: 0.35rem; }
.fh-ext-desc  { font-size: 0.8rem; color: var(--label-2); line-height: 1.6; }
.fh-ext-btn {
  display: inline-block; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(58,255,210,0.15), rgba(90,200,250,0.1));
  border: 1px solid rgba(58,255,210,0.3);
  color: var(--mint); border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 500;
  padding: 0.6rem 1.1rem; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.fh-ext-btn:hover {
  background: linear-gradient(135deg, rgba(58,255,210,0.25), rgba(90,200,250,0.18));
  border-color: var(--mint);
}

/* ════ ALTSEASON ════ */

/* 히어로 카드 */
.as-hero-card {
  padding: 1.6rem 1.8rem 1.4rem;
  margin-bottom: 1rem;
}

/* 기간 탭 */
.as-period-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.as-ptab {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(235,235,245,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--mono);
}
.as-ptab:hover { border-color: rgba(255,255,255,0.25); color: rgba(235,235,245,0.85); }
.as-ptab.active {
  background: rgba(94,92,230,0.85);
  border-color: rgba(94,92,230,0.9);
  color: #fff;
  font-weight: 600;
}

/* 히어로 바디 — 좌우 2단 */
.as-hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* 좌: 게이지 영역 */
.as-gauge-area { display: flex; flex-direction: column; gap: 0.5rem; }
.as-status-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(235,235,245,0.5);
  transition: color 0.4s;
  min-height: 1.2em;
}
.as-big-number {
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 900;
  font-family: var(--mono);
  line-height: 1;
  transition: color 0.4s, text-shadow 0.4s;
  letter-spacing: -0.04em;
}

/* 그라데이션 바 */
.as-bar-wrap { margin-top: 0.8rem; }
.as-grad-bar {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(to right,
    #FF6B35 0%,
    #FF9F0A 20%,
    #FFD60A 35%,
    #78D070 50%,
    #30D158 65%,
    #34C4FF 80%,
    #5E5CE6 100%
  );
  position: relative;
  overflow: visible;
}
.as-grad-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 26px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  transition: left 0.7s cubic-bezier(.34,1.56,.64,1), background 0.4s, box-shadow 0.4s;
}
.as-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: rgba(235,235,245,0.3);
}

/* 우: 통계 테이블 */
.as-stats-table { display: flex; flex-direction: column; gap: 0; }
.as-stats-header {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 0 0.5rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--label-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.2rem;
}
.as-stats-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.as-stats-row:hover { background: rgba(255,255,255,0.03); }
.as-stats-total-row {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.2rem;
  padding-top: 0.6rem;
}
.as-stat-label { color: rgba(235,235,245,0.55); font-size: 0.78rem; }
.as-stat-val {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: right;
  transition: color 0.4s;
}
.as-stat-btc { color: rgba(235,235,245,0.2); }
.as-stat-total { font-size: 1.1rem; }
.as-source-note {
  font-size: 0.6rem;
  color: rgba(235,235,245,0.18);
  margin-top: 1rem;
  line-height: 1.6;
}

/* 히스토리 차트 */
.as-chart-card {
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.as-chart-wrap {
  height: 340px;
  position: relative;
  margin-top: 0.6rem;
}
.as-reset-zoom {
  font-size: 0.72rem;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(235,235,245,0.55);
  cursor: pointer;
  transition: all 0.15s;
}
.as-reset-zoom:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(235,235,245,0.85);
}
.as-chart-note {
  font-size: 0.62rem;
  color: rgba(235,235,245,0.2);
  margin-top: 0.5rem;
  text-align: right;
}

/* 총합 + 시그널 그리드 */
.as-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.as-total-card { padding: 1.2rem; }
.as-total-row { margin-bottom: 1rem; }
.as-total-formula {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.as-formula-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.as-formula-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.as-formula-item {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(235,235,245,0.75);
}
.as-formula-op { font-size: 1rem; color: var(--label-3); align-self: flex-end; padding-bottom: 0.25rem; }
.as-formula-total {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  transition: color 0.4s;
}
.as-total-bar-wrap { margin-bottom: 1rem; }
.as-total-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: visible;
  position: relative;
  margin-top: 1.4rem;
}
.as-total-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease, background 0.4s;
}
.as-tbar-mark {
  position: absolute;
  top: -16px;
  transform: translateX(-50%);
  font-size: 0.58rem;
  color: rgba(235,235,245,0.22);
  white-space: nowrap;
}
.as-tbar-mark::after {
  content: '';
  display: block;
  width: 1px;
  height: 8px;
  background: rgba(255,255,255,0.12);
  margin: 2px auto 0;
}
.as-threshold-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.as-tg-item {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-weight: 500;
}
.as-tg-item.buy     { background: rgba(48,209,88,0.12);  color: #30D158; }
.as-tg-item.warn    { background: rgba(255,214,10,0.12); color: #FFD60A; }
.as-tg-item.warn2   { background: rgba(255,159,10,0.12); color: #FF9F0A; }
.as-tg-item.danger  { background: rgba(255,107,53,0.12); color: #FF6B35; }
.as-tg-item.extreme { background: rgba(255,69,58,0.12);  color: #FF453A; }

/* 시그널 카드 */
.as-signal-card { padding: 1.2rem; display: flex; flex-direction: column; }
.as-signal-box { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding-top: 0.6rem; }
.as-signal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.as-sig-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.as-sig-label { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.15rem; }
.as-sig-desc { font-size: 0.72rem; color: rgba(235,235,245,0.45); }

/* 전략 표 */
.as-strategy-table { display: flex; flex-direction: column; gap: 0; }
.as-st-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
}
.as-st-row.header {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--label-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.2rem;
}
.as-st-row.buy-row     { color: #30D158; background: rgba(48,209,88,0.06); }
.as-st-row.warn-row    { color: #FFD60A; background: rgba(255,214,10,0.05); }
.as-st-row.danger-row  { color: #FF6B35; background: rgba(255,107,53,0.06); }
.as-st-row.extreme-row { color: #FF453A; background: rgba(255,69,58,0.06); }
.as-st-row span:last-child { font-weight: 700; white-space: nowrap; }

/* 반응형 */
@media (max-width: 900px) {
  .as-hero-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .as-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .as-big-number { font-size: 4rem; }
  .as-formula-item { font-size: 1.1rem; }
  .as-formula-total { font-size: 1.5rem; }
  .as-stats-header,
  .as-stats-row { grid-template-columns: 1fr 60px 60px; }
}

/* ════ ONCHAIN v2 ════ */

/* 요약 바 */
.oc2-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0.9rem 1.2rem;
  position: relative;
}
.oc2-sum-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 100px;
  padding: 0 1rem;
}
.oc2-sum-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.oc2-sum-label {
  font-size: 0.68rem;
  color: rgba(235,235,245,0.38);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.oc2-sum-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(235,235,245,0.92);
  font-family: var(--mono);
}
.oc2-sum-badge {
  font-size: 0.68rem;
  font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}
.oc2-badge-buy     { background: rgba(48,209,88,0.18);  color: rgba(48,209,88,0.95); }
.oc2-badge-neutral { background: rgba(235,235,245,0.08); color: rgba(235,235,245,0.5); }
.oc2-badge-warn    { background: rgba(255,200,50,0.15); color: rgba(255,200,50,0.95); }
.oc2-badge-danger  { background: rgba(255,59,48,0.18);  color: rgba(255,90,80,0.95); }
.oc2-sum-upd {
  position: absolute;
  right: 1rem;
  bottom: 0.4rem;
  font-size: 0.62rem;
  color: rgba(235,235,245,0.25);
  font-family: var(--mono);
}

/* 차트 카드 */
.oc2-chart-card { margin-top: 1rem; }
.oc2-chart-wrap {
  position: relative;
  height: 300px;
  margin-top: 10px;
}

/* 존 레전드 */
.oc2-zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.4rem 0 0;
}
.oc2-zl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: rgba(235,235,245,0.45);
  font-family: var(--mono);
}
.oc2-zdot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 가이드 카드 그리드 */
.oc2-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.oc2-guide-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.oc2-g-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(235,235,245,0.85);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.oc2-g-src {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(235,235,245,0.3);
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
}
.oc2-g-desc {
  font-size: 0.72rem;
  color: rgba(235,235,245,0.5);
  line-height: 1.5;
}
.oc2-g-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.oc2-gz {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
}
.gz-buy  { background: rgba(48,209,88,0.14);  color: rgba(48,209,88,0.9); }
.gz-warn { background: rgba(255,200,50,0.13); color: rgba(255,200,50,0.9); }

@media (max-width: 900px) {
  .oc2-guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .oc2-guide-grid { grid-template-columns: 1fr; }
  .oc2-sum-item   { min-width: 80px; padding: 0 0.5rem; }
}

/* ════ ONCHAIN (legacy) ════ */
.onchain-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 4px;
}
.oc-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oc-stat-label {
  font-size: 0.72rem;
  color: rgba(235,235,245,0.4);
  letter-spacing: 0.03em;
}
.oc-stat-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(235,235,245,0.9);
}
.oc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.oc-metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oc-m-label {
  font-size: 0.72rem;
  color: rgba(235,235,245,0.4);
  letter-spacing: 0.03em;
}
.oc-m-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(110,170,255,0.9);
}
@media (max-width: 800px) {
  .onchain-stat-row { grid-template-columns: repeat(2, 1fr); }
  .oc-metrics-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .onchain-stat-row { grid-template-columns: 1fr 1fr; }
  .oc-metrics-grid  { grid-template-columns: 1fr 1fr; }
}

/* ════ RESPONSIVE ════ */
@media (max-width: 1100px) {
  .hero-3grid { grid-template-columns: repeat(3, 1fr); }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .lower-grid .alert-panel-sm { grid-column: span 2; }
  .fg-top-grid { grid-template-columns: 1fr 1fr; }
  .fg-minmax-card { grid-column: span 2; }
}
@media (max-width: 800px) {
  .hero-3grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .hc-price { font-size: 2rem; }
  .lower-grid { grid-template-columns: 1fr; }
  .lower-grid .alert-panel-sm { grid-column: auto; }
  .fg-top-grid { grid-template-columns: 1fr; }
  .fg-minmax-card { grid-column: auto; }
  /* 모바일: 2개월 캘린더 세로 쌓기 */
  .moon-calendar-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  #site-header { padding: 0.75rem 0; }
  .header-inner { padding: 0 1rem; }
  .pill-nav { padding: 0.45rem 1rem; }
  .header-right { display: none; }
  .logo-calligraphy { height: 34px; }
  .logo-img { width: 40px; height: 40px; }
  #main-content { padding: 1rem 1rem 5rem; }
  .alt-strip { border-radius: var(--r); }
  .mc-day { min-height: 56px; }
  .mc-day-emoji { font-size: 1.1rem; }
}
