/* ══════════════════════════════════════════════
   AI 퀀트 리포트 — Main Stylesheet (Dark Mode)
   Color System:
   - BG:      #080808
   - Card:    #141414
   - Cyan:    #00d4dd
   - Up:      #ff3d3d
   - Down:    #4d7cff
   - Warn:    #ff9500
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg:       #080808;
  --card:     #141414;
  --card-sub: #1e1e1e;
  --card-deep:#252525;
  --cyan:     #00d4dd;
  --up:       #ff3d3d;
  --down:     #4d7cff;
  --warn:     #ff9500;
  --dark:     #0f0f0f;
  --gray1:    #1e1e1e;
  --gray2:    #2a2a2a;
  --gray3:    #555555;
  --gray4:    #888888;
  --text:     #f0f0f0;
  --text-sub: #aaaaaa;
  --radius:   18px;
  --radius-sm:10px;
  --shadow:   0 4px 24px rgba(0,0,0,0.40);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.60);
}

html { font-size: 16px; }

body {
  background: var(--bg);
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── Report Container : 9:16 mobile card stream ── */
.report-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Base Card ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* ── Utility Colors ── */
.cyan       { color: var(--cyan); }
.up         { color: var(--up); }
.down       { color: var(--down); }
.warn-text  { color: var(--warn); }
.neutral-text{ color: var(--gray4); }
.cyan-icon  { color: var(--cyan); }
.warn-icon  { color: var(--warn); }

/* ── Global dark text defaults ── */
p, span, div { color: inherit; }

/* ══════════════════════════════
   CARD 1 — HEADER
══════════════════════════════ */
.card-header {
  background: var(--dark);
  color: white;
  padding: 32px 24px 28px;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,221,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,221,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.header-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--cyan);
  border: 1px solid rgba(0,212,221,0.4);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.header-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.0;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.header-title .cyan { color: var(--cyan); }

.header-date {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  font-weight: 400;
}

.header-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 0 20px;
}

.header-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-pill.warn {
  background: rgba(255,149,0,0.15);
  border-color: rgba(255,149,0,0.35);
  color: var(--warn);
}

/* Score box in header */
.header-score-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,212,221,0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.score-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.score-value {
  font-size: 44px;
  font-weight: 900;
  color: var(--warn);
  line-height: 1;
  margin-bottom: 2px;
}
.score-unit {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
}

.score-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

.score-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--warn), #ff3d3d);
  border-radius: 3px;
  transition: width 1s ease;
}

.header-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ══════════════════════════════
   Card Labels & Titles
══════════════════════════════ */
.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cyan-label   { color: var(--cyan); }
.danger-label { color: var(--up); }

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}
.white-title { color: var(--text); }

/* ══════════════════════════════
   CARD 2 — 핵심 요약
══════════════════════════════ */
.action-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1.5px solid transparent;
}
.action-item.sell  { background: rgba(255,61,61,0.10);  border-color: rgba(255,61,61,0.25); }
.action-item.hold  { background: rgba(0,212,221,0.07);  border-color: rgba(0,212,221,0.22); }
.action-item.pause { background: rgba(255,255,255,0.04);border-color: rgba(255,255,255,0.10);}

.action-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.action-item.sell  .action-icon { background: rgba(255,61,61,0.20);  color: var(--up); }
.action-item.hold  .action-icon { background: rgba(0,212,221,0.18);  color: var(--cyan); }
.action-item.pause .action-icon { background: rgba(255,255,255,0.08);color: var(--gray4); }

.action-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-desc  { font-size: 12px; color: var(--text-sub); line-height: 1.5; }
.action-gain  { font-size: 12px; font-weight: 700; margin-top: 4px; }

.badge-sell {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: var(--up); color: white;
}
.badge-hold {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: var(--cyan); color: white;
}

.strategy-box {
  margin-top: 16px;
  background: rgba(0,212,221,0.07);
  border: 1px solid rgba(0,212,221,0.22);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.strategy-title {
  font-size: 11px; font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.strategy-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
}
.strategy-text strong { color: var(--text); }

/* ══════════════════════════════
   CARD 3 — 포트폴리오
══════════════════════════════ */
.total-asset-box {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.ta-label {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ta-value {
  font-size: 32px; font-weight: 900;
  color: white; line-height: 1;
  margin-bottom: 6px;
}
.ta-unit { font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.5); }
.ta-pnl  { font-size: 14px; font-weight: 700; }

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.account-card {
  background: var(--card-sub);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ac-icon { font-size: 18px; color: var(--cyan); margin-bottom: 6px; }
.ac-label { font-size: 10px; font-weight: 700; color: var(--gray4); text-transform: uppercase; margin-bottom: 4px; }
.ac-value { font-size: 14px; font-weight: 800; color: var(--text); }
.ac-value span { font-size: 11px; font-weight: 400; color: var(--gray4); }
.ac-pnl   { font-size: 12px; font-weight: 700; margin: 4px 0; }
.ac-sub   { font-size: 10px; display: flex; gap: 6px; }

.cash-box {
  background: var(--card-sub);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.cash-header {
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
}
.cash-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-sub);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray2);
}
.cash-row:last-child { border-bottom: none; }
.rate-row { font-weight: 600; color: var(--text); }

.realized-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,61,61,0.10);
  border: 1px solid rgba(255,61,61,0.22);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.rb-label { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.rb-value { font-size: 16px; font-weight: 800; }

/* ══════════════════════════════
   CARD 4 — 종목 현황 테이블
══════════════════════════════ */
.stock-list { margin-bottom: 20px; }

.stock-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray2);
  gap: 8px;
}
.stock-row:last-child { border-bottom: none; }

.header-row {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
}

.stock-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flag { font-size: 16px; flex-shrink: 0; }
.sn-ticker { font-size: 13px; font-weight: 700; color: var(--text); }
.sn-sub    { font-size: 10px; color: var(--gray4); }

.pct    { font-size: 14px; font-weight: 800; text-align: right; }
.amount { font-size: 11px; color: var(--text-sub); text-align: right; }

.chart-wrap {
  position: relative;
  height: 220px;
  background: var(--card-sub);
  border-radius: var(--radius-sm);
  padding: 10px 6px 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ══════════════════════════════
   CARD 5 — 시장 진단
══════════════════════════════ */
.market-phase-box {
  text-align: center;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.phase-label { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.phase-value { font-size: 30px; font-weight: 900; color: var(--warn); letter-spacing: 2px; margin-bottom: 4px; }
.phase-sub   { font-size: 12px; color: rgba(255,255,255,0.4); }

.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.index-card {
  border-radius: var(--radius-sm);
  padding: 14px 12px;
}
.warn-card { background: rgba(255,149,0,0.07); border: 1px solid rgba(255,149,0,0.2); }
.fear-card { background: rgba(255,61,61,0.06); border: 1px solid rgba(255,61,61,0.15); }
.oil-card  { background: rgba(255,61,61,0.06); border: 1px solid rgba(255,61,61,0.15); }
.cpi-card  { background: rgba(255,149,0,0.07); border: 1px solid rgba(255,149,0,0.2); }

.ic-label  { font-size: 10px; font-weight: 700; color: var(--gray4); text-transform: uppercase; margin-bottom: 4px; }
.ic-value  { font-size: 22px; font-weight: 900; margin-bottom: 2px; color: var(--text); }
.ic-sub    { font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.ic-note   { font-size: 10px; color: var(--text-sub); }

/* Score Detail */
.score-detail-box {
  background: var(--card-sub);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}
.sdb-title {
  font-size: 12px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.score-total-row {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray2);
  margin-bottom: 10px;
}
.score-total-row span:first-child { font-size: 13px; font-weight: 600; color: var(--text); }
.score-big { font-size: 22px; font-weight: 900; }

.score-items { display: flex; flex-direction: column; gap: 6px; }
.si-row {
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
}
.si-label { color: var(--text-sub); flex: 1; }
.si-score { font-weight: 800; font-size: 13px; min-width: 36px; text-align: right; }
.si-score.neutral { color: var(--gray4); }
.danger-row { background: rgba(255,61,61,0.10); }

.vix-insight {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.65;
  padding: 12px 14px;
  background: rgba(255,149,0,0.08);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.vix-insight strong { color: var(--text); }

/* ══════════════════════════════
   CARD 6 — 뉴스
══════════════════════════════ */
.news-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.news-badge {
  font-size: 10px; font-weight: 700;
  padding: 6px 12px;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.geo-badge  { background: rgba(255,61,61,0.18);  color: var(--up); }
.econ-badge { background: rgba(255,149,0,0.18);  color: var(--warn); }
.earn-badge { background: rgba(0,212,221,0.18);  color: var(--cyan); }

.news-content {
  padding: 12px 14px;
  background: var(--card-sub);
  border: 1px solid rgba(255,255,255,0.05);
  border-top: none;
}
.news-headline {
  font-size: 14px; font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.news-content p {
  font-size: 12px; color: var(--text-sub); line-height: 1.65;
  margin-bottom: 0;
}
.news-content p strong { color: var(--text); }

.news-data-row {
  display: flex; gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.nd-item {
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}

/* ══════════════════════════════
   CARD 7 — 보유 종목
══════════════════════════════ */
.section-flag {
  font-size: 12px; font-weight: 700;
  color: var(--gray4);
  margin: 16px 0 10px;
  padding-left: 2px;
}
.section-flag:first-of-type { margin-top: 0; }

.holding-cards { display: flex; flex-direction: column; gap: 10px; }

.holding-card {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1.5px solid var(--gray2);
  background: var(--card-sub);
}
.holding-card.reduce { border-color: rgba(255,61,61,0.35); background: rgba(255,61,61,0.08); }
.holding-card.hold   { border-color: rgba(0,212,221,0.25);  background: rgba(0,212,221,0.05); }

.hc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hc-ticker {
  font-size: 15px; font-weight: 800;
  color: var(--text);
  flex: 1;
}
.hc-action {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.reduce-tag { background: var(--up); color: white; }
.hold-tag   { background: var(--cyan); color: white; }

.hc-priority {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}
.high-p { background: rgba(255,61,61,0.20);  color: var(--up); }
.mid-p  { background: rgba(255,149,0,0.20); color: var(--warn); }
.low-p  { background: rgba(0,212,221,0.18); color: var(--cyan); }

.hc-pnl { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.hc-desc { font-size: 12px; color: var(--text-sub); line-height: 1.55; margin-bottom: 8px; }
.hc-desc .warn-text { font-weight: 700; }
.hc-desc .cyan { font-weight: 700; }

.hc-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hc-tags span {
  font-size: 10px; padding: 2px 8px;
  border-radius: 20px;
  background: var(--card-deep);
  color: var(--text-sub);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ══════════════════════════════
   CARD 8 — 관망 종목
══════════════════════════════ */
.watchlist { display: flex; flex-direction: column; gap: 4px; }

.wl-section-title {
  font-size: 11px; font-weight: 700;
  color: var(--gray4);
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--gray2);
  margin-bottom: 4px;
}
.danger-section { color: var(--up) !important; border-color: rgba(255,61,61,0.25) !important; }

.wl-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray2);
  margin-bottom: 6px;
}
.medium-row { background: rgba(0,212,221,0.05); border-color: rgba(0,212,221,0.18); }

.wl-left { min-width: 72px; }
.wl-ticker { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.wl-note   { font-size: 10px; color: var(--cyan); font-weight: 600; line-height: 1.3; }

.wl-center { flex: 1; }
.wl-desc   { font-size: 12px; color: var(--text-sub); line-height: 1.5; margin-bottom: 6px; }
.wl-tags   { display: flex; gap: 5px; flex-wrap: wrap; }
.wl-tags span {
  font-size: 10px; padding: 2px 7px;
  border-radius: 20px;
  background: var(--card-deep);
  color: var(--text-sub);
  border: 1px solid rgba(255,255,255,0.08);
}
.undervalued { background: rgba(0,212,221,0.12) !important; color: var(--cyan) !important; border-color: rgba(0,212,221,0.25) !important; }
.fair-val    { background: rgba(255,149,0,0.12) !important; color: var(--warn) !important; border-color: rgba(255,149,0,0.25) !important; }

.wl-right { min-width: 36px; text-align: right; }
.priority-mid {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  background: rgba(255,149,0,0.20);
  color: var(--warn);
}

/* Danger items */
.danger-items { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.danger-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,61,61,0.10);
  border: 1px solid rgba(255,61,61,0.25);
  border-radius: var(--radius-sm);
}
.d-ticker { font-size: 12px; font-weight: 800; color: var(--up); min-width: 80px; }
.d-reason { font-size: 11px; color: var(--text-sub); line-height: 1.5; }

/* ══════════════════════════════
   CARD 9 — 리스크 경고
══════════════════════════════ */
.card-risk {
  background: var(--card);
  color: var(--text);
}
.card-risk .card-title { color: var(--text); }

.risk-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.risk-item {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid;
}
.risk-critical { background: rgba(255,61,61,0.08);  border-color: rgba(255,61,61,0.25); }
.risk-high     { background: rgba(255,149,0,0.07);  border-color: rgba(255,149,0,0.2); }
.risk-medium   { background: rgba(255,149,0,0.04);  border-color: rgba(255,149,0,0.12); }

.risk-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.risk-num {
  font-size: 11px; font-weight: 900;
  color: rgba(255,255,255,0.25);
  min-width: 20px;
}
.risk-icon-wrap {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px;
}
.risk-critical .risk-icon-wrap { background: rgba(255,61,61,0.2);  color: var(--up); }
.risk-high     .risk-icon-wrap { background: rgba(255,149,0,0.2); color: var(--warn); }
.risk-medium   .risk-icon-wrap { background: rgba(255,149,0,0.15);color: var(--warn); }

.risk-title-wrap { flex: 1; }
.risk-title   { font-size: 13px; font-weight: 700; color: white; }
.risk-timing  { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 1px; }

.risk-level {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.critical { background: rgba(255,61,61,0.2);  color: var(--up); }
.high     { background: rgba(255,149,0,0.2); color: var(--warn); }
.medium   { background: rgba(255,149,0,0.15);color: var(--warn); }

.risk-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.risk-desc strong { color: rgba(255,255,255,0.85); }

/* Warn banners */
.warn-banners { display: flex; flex-direction: column; gap: 8px; }
.warn-banner {
  font-size: 11px; font-weight: 600;
  padding: 10px 12px;
  background: rgba(255,149,0,0.08);
  border: 1px solid rgba(255,149,0,0.2);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5;
}
.warn-banner i { color: var(--warn); flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════
   CARD 10 — 전략 요약 Footer
══════════════════════════════ */
.card-footer-summary {
  background: var(--card);
  color: var(--text);
}
.card-footer-summary .card-title { color: var(--text); }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.sg-item {
  background: var(--card-sub);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.07);
}
.sg-label { font-size: 10px; font-weight: 600; color: var(--gray4); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.sg-value { font-size: 14px; font-weight: 800; color: var(--text); }

.final-strategy {
  background: rgba(0,212,221,0.07);
  border: 1px solid rgba(0,212,221,0.22);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}
.fs-title {
  font-size: 11px; font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.final-strategy p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}
.final-strategy p strong { color: var(--text); }
.final-strategy p .cyan { font-weight: 800; }

.report-footer { text-align: center; }
.rf-text {
  font-size: 12px; font-weight: 700;
  color: var(--gray4);
  margin-bottom: 6px;
}
.rf-disclaimer {
  font-size: 10px;
  color: var(--gray3);
  line-height: 1.6;
}

/* ══════════════════════════════
   Responsive tweaks
══════════════════════════════ */
@media (min-width: 480px) {
  .report-container {
    padding: 28px 20px 60px;
    gap: 20px;
  }
  .card { padding: 28px 24px; }
  .header-title { font-size: 54px; }
}

@media (min-width: 768px) {
  body { padding: 24px 0; }
  .report-container {
    max-width: 450px;
    padding: 32px 0 64px;
  }
}

/* ══════════════════════════════
   Animations
══════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeSlideUp 0.5s ease both;
}
.card:nth-child(1)  { animation-delay: 0.05s; }
.card:nth-child(2)  { animation-delay: 0.10s; }
.card:nth-child(3)  { animation-delay: 0.15s; }
.card:nth-child(4)  { animation-delay: 0.20s; }
.card:nth-child(5)  { animation-delay: 0.25s; }
.card:nth-child(6)  { animation-delay: 0.30s; }
.card:nth-child(7)  { animation-delay: 0.35s; }
.card:nth-child(8)  { animation-delay: 0.40s; }
.card:nth-child(9)  { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.50s; }

/* ── Scrollbar (desktop) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
