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

:root {
  --brand-dark: #0d1117;
  --brand-darker: #080d14;
  --brand-card: #161b22;
  --brand-border: #21262d;
  --brand-orange: #f97316;
  --brand-gold: #f59e0b;
  --brand-red: #ef4444;
  --brand-green: #22c55e;
  --brand-gradient: linear-gradient(135deg, #e83a00 0%, #f97316 50%, #f59e0b 100%);

  --navbar-h: 56px;
  --ticker-h: 30px;
  --app-top: 86px;      /* navbar + ticker */
  --sidebar-w: 240px;
  --bottom-nav-h: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--brand-dark);
  color: #e5e7eb;
  font-family: 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar (데스크탑만) */
@media (min-width: 769px) {
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--brand-darker); }
  ::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--brand-orange); }
}

/* ============================================================
   UTILITY
   ============================================================ */
/* 그라디언트 텍스트 — 랜딩의 hero 1곳에만 사용. 그 외엔 단색 권장. */
.gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   CARDS — 단색 배경 + hairline 보더 (글로우/blur 제거)
   ============================================================ */
.glass-card {
  background: #11161d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: border-color 0.18s ease;
}
.glass-card:hover { border-color: rgba(255, 255, 255, 0.12); }

/* ============================================================
   BUTTONS — 단색, 글로우/shimmer 제거. 호버는 색상/투명도만.
   ============================================================ */
.btn-primary {
  background: var(--brand-orange);
  border: 1px solid var(--brand-orange);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.01em;
}
.btn-primary:hover  { background: #ea580c; border-color: #ea580c; }
.btn-primary:active { background: #c2410c; border-color: #c2410c; }
.btn-primary:disabled { background: #374151; border-color: #374151; color: #9ca3af; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: #e5e7eb;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.01em;
}
.btn-secondary:hover  { border-color: rgba(255,255,255,0.28); color: white; }
.btn-secondary:active { background: rgba(255,255,255,0.04); }

/* ============================================================
   SIGNAL BADGES — 작은 사각 라벨, 글로우/letter-spacing 제거
   ============================================================ */
.signal-buy,
.signal-sell,
.signal-hold {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.signal-buy  { background: rgba(34,197,94,0.12);  color: #22c55e; }
.signal-sell { background: rgba(239,68,68,0.12);  color: #ef4444; }
.signal-hold { background: rgba(156,163,175,0.12); color: #9ca3af; }

/* 한국 시장 관행: 상승=빨강, 하락=파랑. 텍스트 색만 사용 */
.price-up   { color: #ef4444; }
.price-down { color: #3b82f6; }

/* ============================================================
   NAVBAR — backdrop-filter 제거, 단색 배경 + 1px hairline
   ============================================================ */
.navbar {
  background: var(--brand-darker);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
}

/* ============================================================
   SIDEBAR — 단색, 좌측 색바로 active 표시 (pill 배경 제거)
   ============================================================ */
.sidebar {
  background: var(--brand-darker);
  border-right: 1px solid rgba(255,255,255,0.06);
  width: var(--sidebar-w);
  position: fixed;
  top: var(--navbar-h);
  left: 0; bottom: 0;
  overflow-y: auto;
  transition: transform 0.25s ease;
  z-index: 500;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  font-size: 14px;
  color: #9ca3af;
  min-height: 44px;
  border-left: 2px solid transparent;
}
.sidebar-item:hover  { color: white; background: rgba(255,255,255,0.03); }
.sidebar-item.active { color: white; background: rgba(255,255,255,0.04); border-left-color: var(--brand-orange); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--app-top);
  padding: 20px;
  min-height: calc(100vh - var(--app-top));
}

/* ============================================================
   MISC
   ============================================================ */
.strength-bar  { height: 4px; background: rgba(255,255,255,0.06); overflow: hidden; }
.strength-fill { height: 100%; transition: width 0.4s ease; }

/* 시장 배지 — 글로우/보더 제거, 작은 텍스트 라벨로 */
.badge-kospi,
.badge-kosdaq {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 2px;
}
.badge-kospi  { background: rgba(96,165,250,0.10); color: #93c5fd; }
.badge-kosdaq { background: rgba(192,132,252,0.10); color: #d8b4fe; }

.form-input {
  background: #11161d;
  border: 1px solid rgba(255,255,255,0.10);
  color: white;
  padding: 12px 14px;
  border-radius: 6px;
  width: 100%;
  transition: border-color 0.15s ease;
  font-size: 16px; /* iOS 자동 줌 방지 */
  min-height: 46px;
  font-family: 'Noto Sans KR', sans-serif;
}
.form-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.32);
}
.form-input::placeholder { color: #4b5563; }

/* Select */
select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select.form-input option {
  background: #161b22;
  color: white;
}

/* ============================================================
   ANIMATIONS — 의미있는 것만 (페이지 전환, 스피너, 티커)
   ============================================================ */
@keyframes fadeIn       { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp     { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes slideUp      { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadeOut      { from{opacity:1} to{opacity:0;pointer-events:none} }
@keyframes spin         { to{transform:rotate(360deg)} }
@keyframes ticker       { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }

.animate-fadeInUp { animation: fadeInUp 0.4s ease-out forwards; }

/* Particle 클래스는 호환성 위해 비웠음 — 호출처(createParticles)는 작동만 하고 시각적 효과 없음 */
.particle { display: none; }

/* ============================================================
   NEWS CARD — hairline 보더, 호버 색상만
   ============================================================ */
.news-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.news-card:hover  { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.02); }
.news-card:active { background: rgba(255,255,255,0.04); }

/* STAT CARD — 동일 톤 */
.stat-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.15s ease;
}
.stat-card:hover { border-color: rgba(255,255,255,0.14); }

/* TABLE WRAPPER (가로 스크롤) */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* TABLE — 신문 표 스타일, 호버는 미세하게 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.data-table th {
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  transition: background-color 0.12s ease;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* SPINNER — 절제된 회색 톤 */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ============================================================
   DASHBOARD v3 (에디토리얼 / FT Markets)
   ─ 카드 박스 X · 이모지 X · hairline 보더 · tabular-nums · 신문 위계
   ============================================================ */

/* 모든 dashboard 영역에 tabular-nums 일괄 적용 — 숫자 정렬 일관성 */
#dashboard-content { font-variant-numeric: tabular-nums; }

/* SECTION — 가로 hairline + 위 패딩만, 카드 배경/보더 없음 */
.ed-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0 24px;
}
.ed-section:first-child { border-top: 0; padding-top: 8px; }

/* 섹션 헤더 — 메인 타이틀 + 우측 영문 eyebrow */
.ed-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.ed-title {
  font-size: 17px; font-weight: 700; color: white; letter-spacing: -0.01em;
}
.ed-title-sub {
  font-size: 12px; color: #6b7280; font-weight: 500; margin-left: 8px;
}
.ed-eyebrow {
  font-size: 10px; font-weight: 700; color: #6b7280;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.ed-link {
  font-size: 12px; color: var(--brand-orange); font-weight: 600;
  cursor: pointer; background: none; border: 0; padding: 0;
}
.ed-link:hover { text-decoration: underline; }

/* HERO — Sentiment 메인 영역 (큰 숫자 + 게이지) */
.ed-hero-stat { font-size: 44px; font-weight: 700; color: white; line-height: 1; letter-spacing: -0.02em; }
.ed-hero-label { font-size: 13px; color: #9ca3af; margin-top: 4px; }
.ed-hero-side {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: #d1d5db;
}
.ed-hero-side .num { font-size: 18px; font-weight: 700; color: white; }
.ed-hero-side .lbl { font-size: 11px; color: #6b7280; letter-spacing: 0.06em; text-transform: uppercase; }

/* SENTIMENT BAR — 얇은 hairline 게이지 (네온/그라디언트 제거) */
.ed-bar {
  display: flex; height: 4px; overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.ed-bar-seg { transition: width 0.4s ease; }
.ed-bar-buy  { background: #22c55e; }
.ed-bar-hold { background: #6b7280; }
.ed-bar-sell { background: #ef4444; }

/* 데이터 행 — 표 형태, 카드 X */
.ed-row {
  display: grid; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: opacity 0.12s;
}
.ed-row:last-child { border-bottom: 0; }
.ed-row:hover { opacity: 0.78; }

/* RANK 행 (매수강도, 거래대금) — 8col grid */
.ed-row-rank { grid-template-columns: 22px 1fr auto auto; gap: 10px 14px; }
.ed-row-rank .rk    { font-size: 11px; color: #6b7280; font-weight: 600; }
.ed-row-rank .nm    { font-size: 14px; color: white; font-weight: 500;
                      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-row-rank .nm-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }
.ed-row-rank .val   { font-size: 14px; color: white; font-weight: 600; text-align: right; }
.ed-row-rank .chg   { font-size: 12px; text-align: right; min-width: 56px; }

/* 시그널 변경 행 */
.ed-row-change { grid-template-columns: 56px 1fr auto; gap: 12px; }
.ed-row-change .ts   { font-size: 12px; color: #9ca3af; }
.ed-row-change .nm   { font-size: 14px; color: white; font-weight: 500; }
.ed-row-change .rsn  { font-size: 12px; color: #6b7280; margin-top: 2px;
                       overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-row-change .arrow { font-size: 12px; font-weight: 600; text-align: right; }
.ed-row-change .arrow .from { color: #6b7280; }
.ed-row-change .arrow .to-buy  { color: #22c55e; }
.ed-row-change .arrow .to-sell { color: #ef4444; }
.ed-row-change .arrow .to-hold { color: #9ca3af; }

/* 뉴스 행 — 신문 헤드라인 */
.ed-row-news { grid-template-columns: 1fr; gap: 0; }
.ed-row-news .ttl  { font-size: 15px; color: white; font-weight: 500; line-height: 1.4;
                     display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                     overflow: hidden; }
.ed-row-news .meta { font-size: 11px; color: #6b7280; margin-top: 4px; letter-spacing: 0.04em; }

/* 업종 강도 행 — 라벨 + 등락률 + 종목수 + 미니바 */
.ed-row-sector { grid-template-columns: 1fr 80px 70px 100px; gap: 12px; }
.ed-row-sector .sec-name  { font-size: 14px; color: white; font-weight: 500; }
.ed-row-sector .sec-rate  { font-size: 14px; font-weight: 700; text-align: right; }
.ed-row-sector .sec-count { font-size: 12px; color: #6b7280; text-align: right; }
.ed-row-sector .sec-bar   {
  position: relative; height: 4px; background: rgba(255,255,255,0.04);
  align-self: center;
}
.ed-row-sector .sec-bar > i {
  position: absolute; top: 0; left: 0; height: 100%; display: block;
}

/* 핫테마 — 섹터와 같은 패턴이지만 상위종목 줄 추가 */
.ed-row-theme { grid-template-columns: 1fr auto; gap: 6px 14px; row-gap: 4px; }
.ed-row-theme .th-name { grid-column: 1; font-size: 14px; color: white; font-weight: 500; }
.ed-row-theme .th-rate { grid-column: 2; font-size: 14px; font-weight: 700; text-align: right; }
.ed-row-theme .th-tops { grid-column: 1; font-size: 12px; color: #6b7280;
                         overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-row-theme .th-cnt  { grid-column: 2; font-size: 11px; color: #6b7280; text-align: right; }

/* 암호화폐 — 인라인 ticker 형태 */
.ed-crypto-grid {
  display: grid; gap: 14px 28px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.ed-crypto-row {
  display: grid; grid-template-columns: 24px 1fr auto;
  align-items: center; gap: 10px;
  cursor: pointer; transition: opacity 0.12s;
}
.ed-crypto-row:hover { opacity: 0.78; }
.ed-crypto-row .sym  { font-size: 13px; color: white; font-weight: 600; letter-spacing: 0.02em; }
.ed-crypto-row .price { font-size: 11px; color: #6b7280; margin-top: 2px; }
.ed-crypto-row .chg  { font-size: 13px; font-weight: 600; text-align: right; }

/* 색상 유틸 (텍스트 방향) */
.ed-up   { color: #22c55e; }
.ed-down { color: #ef4444; }
.ed-flat { color: #9ca3af; }

/* 헤더 영역 — 시계 + 장상태 (카운트다운/LIVE 배지 제거, 차분하게) */
.ed-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 12px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ed-header h1 { font-size: 24px; font-weight: 700; color: white; letter-spacing: -0.02em; }
.ed-header .sub { font-size: 12px; color: #6b7280; margin-top: 4px; letter-spacing: 0.02em; }
.ed-header .meta {
  display: flex; gap: 18px; align-items: baseline; font-size: 12px; color: #9ca3af;
}
.ed-header .meta .key { font-size: 10px; color: #6b7280; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 6px; }

/* 2단 그리드 — 매수강도/거래대금 나란히 */
.ed-grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 880px) {
  .ed-grid-2 { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ed-grid-2 > .ed-col + .ed-col { padding-left: 36px; border-left: 1px solid rgba(255,255,255,0.06); }
}

/* KOSPI/KOSDAQ placeholder — 잠시 안내만 */
.ed-placeholder {
  font-size: 12px; color: #6b7280; padding: 10px 0;
  letter-spacing: 0.02em;
}

/* 모바일 미세 조정 */
@media (max-width: 640px) {
  .ed-section { padding: 22px 0 18px; }
  .ed-hero-stat { font-size: 36px; }
  .ed-row-sector { grid-template-columns: 1fr 70px 60px; }
  .ed-row-sector .sec-bar { display: none; }
  .ed-header h1 { font-size: 20px; }
  .ed-header .meta { gap: 10px; }
}

/* ============================================================
   STOCK MODAL STAT GRID — 전일/시가/고저/거래량/시총/PER/PBR/EPS
   5칸 2줄 (각 셀: 라벨 + 값 2줄 스택 → 시각적 4줄)
   ============================================================ */
.stock-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 20px;
  margin-top: 14px;
  padding: 14px 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-variant-numeric: tabular-nums;
}
.stock-stat-grid .stat-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.stock-stat-grid .lbl {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stock-stat-grid .val {
  font-size: 14px;
  color: white;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 태블릿: 5칸 유지하되 폰트 살짝 축소 */
@media (max-width: 720px) {
  .stock-stat-grid { gap: 12px 14px; }
  .stock-stat-grid .val { font-size: 13px; }
}
/* 모바일: 5칸이 좁으면 자동 축소 */
@media (max-width: 480px) {
  .stock-stat-grid { gap: 10px 10px; }
  .stock-stat-grid .lbl { font-size: 10px; }
  .stock-stat-grid .val { font-size: 12px; }
}

/* ============================================================
   WATCHLIST — 별표 버튼 (어디서든 일관된 작은 토글)
   ============================================================ */
.wl-star {
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: #4b5563; transition: color 0.15s ease, transform 0.1s ease;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wl-star:hover { color: #9ca3af; }
.wl-star.wl-on { color: #f59e0b; }
.wl-star:active { transform: scale(0.92); }

/* ============================================================
   STOCK REPORT (분석 리포트 페이지) — 에디토리얼 + 인쇄 친화
   ============================================================ */
#report-doc { max-width: 920px; margin: 0 auto; font-variant-numeric: tabular-nums; }

.report-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.report-mock-notice {
  font-size: 11px; color: #d97706; padding: 8px 12px;
  background: rgba(245, 158, 11, 0.06);
  border-left: 2px solid #f59e0b;
  margin-bottom: 24px; letter-spacing: 0.02em;
}

.report-header {
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 8px;
}
.report-eyebrow {
  font-size: 11px; font-weight: 700; color: #6b7280;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.report-title {
  font-size: 36px; font-weight: 700; color: white;
  letter-spacing: -0.02em; margin-bottom: 24px; line-height: 1.1;
}
.report-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px;
}
.report-meta > div .lbl {
  font-size: 10px; color: #6b7280; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 4px;
}
.report-meta > div .val { font-size: 18px; color: white; font-weight: 600; }

.report-thesis {
  font-size: 15px; color: #d1d5db; line-height: 1.75;
  letter-spacing: -0.005em;
}
.report-bullets {
  list-style: none; padding: 0; margin: 16px 0 0;
}
.report-bullets li {
  font-size: 14px; color: #d1d5db; line-height: 1.7;
  padding: 6px 0 6px 20px; position: relative;
}
.report-bullets li::before {
  content: '·'; color: #6b7280; position: absolute; left: 6px;
  font-size: 18px; line-height: 1;
}

.report-prose { font-size: 14px; color: #d1d5db; line-height: 1.7; }

.report-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.report-grid-3 .lbl,
.report-grid-4 .lbl {
  font-size: 10px; color: #6b7280; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.report-grid-3 .val,
.report-grid-4 .val {
  font-size: 17px; color: white; font-weight: 600;
}
.report-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.report-disclaimer {
  margin-top: 36px; padding-top: 28px;
}

/* 관심종목 — 행 레이아웃 (순위 / 종목 / 가격 / 등락률 / 강도 / 별표·>) */
.wl-item-row {
  grid-template-columns: 22px 1fr auto 80px 56px auto;
  gap: 14px;
}
.wl-strength {
  font-size: 12px; color: #9ca3af; font-weight: 500; text-align: right;
}
.wl-row-actions {
  display: flex; align-items: center;
}
@media (max-width: 720px) {
  .wl-item-row { grid-template-columns: 22px 1fr auto 64px auto; gap: 10px; }
  .wl-strength { display: none; }
}
@media (max-width: 480px) {
  .wl-item-row { grid-template-columns: 1fr auto auto; gap: 10px; }
  .wl-item-row .rk { display: none; }
}

/* ============================================================
   LANDING — 전문 SaaS 톤 (Linear/Stripe 영감)
   ============================================================ */
.lp h1, .lp h2, .lp h3 {
  font-feature-settings: 'ss01', 'cv11';
}

/* 네비 링크 — 데스크탑만 표시 */
@media (min-width: 768px) {
  .lp-nav-links { display: flex !important; }
  .lp-nav-links a:hover { color: white !important; }
}

/* 모바일에서 hero 본문 줄바꿈 숨김 */
@media (max-width: 540px) {
  .lp .lp-br { display: none; }
}

/* Mock window — 데스크탑에서만 좌우 넓게 */
@media (max-width: 880px) {
  .lp-mock-body { grid-template-columns: 1fr !important; }
  .lp-mock-body aside { display: none !important; }
  .lp-mock-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .lp-feature-cell { border-right: 0 !important; }
}

/* 비대칭 split — 데스크탑에서 텍스트 / 비주얼 분할 */
@media (min-width: 960px) {
  .lp-split { grid-template-columns: 1fr 1.2fr !important; gap: 80px !important; }
  .lp-split-reverse { grid-template-columns: 1.2fr 1fr !important; }
  /* split-reverse: 좌(시각) / 우(텍스트) — DOM 순서 그대로 */
}

/* KPI 행 — 모바일에서 borders 정리 */
@media (max-width: 640px) {
  .lp-kpi { border-left: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 16px !important; }
}

/* Mock 윈도우의 hover (절제된 디테일) */
.lp-mock { transition: transform 0.3s ease, box-shadow 0.3s ease; }
@media (min-width: 880px) {
  .lp-mock:hover { transform: translateY(-2px); box-shadow: 0 32px 100px rgba(0,0,0,0.6); }
}

/* 기능 셀 호버 (절제) */
.lp-feature-cell { transition: background-color 0.2s ease; }
.lp-feature-cell:hover { background: rgba(255,255,255,0.015); }

/* ============================================================
   LANDING — Startup template tone (라이트 위주 + 다크 액센트)
   ============================================================ */
.lp-startup {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  letter-spacing: -0.005em;
  color: #1f2329;
}
.lp-startup * { box-sizing: border-box; }

/* NAV */
.lp-startup .lp-nav {
  background: white; border-bottom: 1px solid #e8e8e8;
  position: sticky; top: 0; z-index: 100;
}
.lp-startup .lp-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lp-startup .lp-brand {
  font-size: 22px; font-weight: 800; color: #1f2329;
  cursor: pointer; letter-spacing: -0.02em;
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.lp-startup .lp-brand-img {
  height: 44px; width: auto; display: block;
}
@media (max-width: 540px) {
  .lp-startup .lp-brand-img { height: 34px; }
}
.lp-startup .lp-menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 36px; align-items: center;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.lp-startup .lp-menu a {
  font-size: 14px; font-weight: 500; color: #5e6470;
  text-decoration: none; padding: 12px 0;
  position: relative; transition: color 0.18s;
}
.lp-startup .lp-menu a:hover { color: #1f2329; }
.lp-startup .lp-menu a.active { color: #1f2329; font-weight: 600; }
.lp-startup .lp-menu a.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px; background: var(--brand-orange); border-radius: 2px;
}
.lp-startup .lp-nav-right { display: flex; gap: 8px; align-items: center; }
.lp-startup .lp-icon-btn {
  background: none; border: 0; color: #5e6470; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}
.lp-startup .lp-icon-btn:hover { background: #f5f5f5; color: #1f2329; }

@media (max-width: 760px) {
  .lp-startup .lp-menu { display: none; }
}

/* SECTIONS */
.lp-startup .lp-section { padding: clamp(64px, 8vw, 112px) 0; }
.lp-startup .lp-section-light-2 { background: #fafafa; }
.lp-startup .lp-section-gray { background: #f0f1f3; }
.lp-startup .lp-section-dark { background: #2c2f33; color: #e5e7eb; }
.lp-startup .lp-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* HERO — 배경 이미지 사용 시 다크 톤 */
.lp-startup .lp-hero {
  padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(56px, 7vw, 100px);
  position: relative; overflow: hidden;
}
.lp-startup .lp-hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.lp-startup .lp-hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.lp-startup .lp-hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1a2e 50%, #0a0e1a 100%);
}
/* 다크 오버레이 — 이미지 위에 그라디언트 + 좌측 더 진하게 (텍스트 영역) */
.lp-startup .lp-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,26,0.82) 0%, rgba(10,14,26,0.62) 50%, rgba(10,14,26,0.92) 100%),
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(10,14,26,0.6) 0%, rgba(10,14,26,0) 70%);
}
.lp-startup .lp-hero > .lp-container { position: relative; z-index: 2; }

/* 다크 hero에서 텍스트 색상 변경 */
.lp-startup .lp-hero-image .lp-h1 { color: white; }
.lp-startup .lp-hero-image .lp-lead { color: rgba(255,255,255,0.78); }
.lp-startup .lp-hero-image .lp-btn-ghost {
  background: transparent; color: white; border-color: rgba(255,255,255,0.3);
}
.lp-startup .lp-hero-image .lp-btn-ghost:hover {
  border-color: white; background: rgba(255,255,255,0.06);
}

/* mock wrap — hero 다크 위에서도 자연스럽게 띄움 */
.lp-startup .lp-hero-image .lp-mock-wrap { position: relative; z-index: 2; }
.lp-startup .lp-hero-image .lp-product-mock {
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

@media (max-width: 720px) {
  .lp-startup .lp-hero-overlay {
    background: linear-gradient(180deg, rgba(10,14,26,0.92) 0%, rgba(10,14,26,0.78) 50%, rgba(10,14,26,0.95) 100%);
  }
}
.lp-startup .lp-h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.03em; color: #1f2329;
  margin: 0 auto 20px; max-width: 920px;
}
.lp-startup .lp-h2 {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.025em; color: #1f2329; margin: 0 0 16px;
}
.lp-startup .lp-h2-light {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.025em; color: white; margin: 12px 0 16px;
}
.lp-startup .lp-accent {
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 60%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-startup .lp-lead {
  font-size: clamp(15px, 1.5vw, 18px); color: #5e6470;
  line-height: 1.7; max-width: 680px; margin: 0 auto 36px;
}
.lp-startup .lp-section-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--brand-orange);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
}
.lp-startup .lp-section-head-center { text-align: center; margin-bottom: 56px; }
.lp-startup .lp-section-sub {
  font-size: 15px; color: #5e6470; line-height: 1.65; max-width: 600px; margin: 0 auto;
}
.lp-startup .lp-section-sub-light {
  font-size: 15px; color: #b0b6bf; line-height: 1.65; max-width: 600px; margin: 0 auto 28px;
}

/* CTA */
.lp-startup .lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lp-startup .lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; font-size: 14px; font-weight: 700;
  border-radius: 4px; cursor: pointer; min-height: 48px;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
  letter-spacing: 0.02em; border: 0;
  font-family: inherit;
}
.lp-startup .lp-btn:active { transform: scale(0.98); }
.lp-startup .lp-btn-primary { background: var(--brand-orange); color: white; }
.lp-startup .lp-btn-primary:hover { background: #ea580c; }
.lp-startup .lp-btn-ghost { background: transparent; color: #1f2329; border: 1px solid #d1d5db; }
.lp-startup .lp-btn-ghost:hover { border-color: #1f2329; }
.lp-startup .lp-btn-outline-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.lp-startup .lp-btn-outline-light:hover { border-color: white; }

/* PRODUCT MOCK (Hero) */
.lp-startup .lp-mock-wrap { margin-top: clamp(48px, 6vw, 80px); }
.lp-startup .lp-product-mock {
  background: white; border: 1px solid #e8e8e8; border-radius: 12px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}
.lp-startup .lp-mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}
.lp-startup .lp-mock-bar > span:nth-child(1) { width: 11px; height: 11px; background: #ef4444; border-radius: 50%; opacity: 0.8; }
.lp-startup .lp-mock-bar > span:nth-child(2) { width: 11px; height: 11px; background: #f59e0b; border-radius: 50%; opacity: 0.8; }
.lp-startup .lp-mock-bar > span:nth-child(3) { width: 11px; height: 11px; background: #22c55e; border-radius: 50%; opacity: 0.8; }
.lp-startup .lp-mock-url { flex: 1; text-align: center; font-size: 12px; color: #9ca3af; }
.lp-startup .lp-mock-live { font-size: 11px; color: #22c55e; font-weight: 700; letter-spacing: 0.06em; }

.lp-startup .lp-mock-content { display: grid; grid-template-columns: 200px 1fr; min-height: 480px; }
.lp-startup .lp-mock-side {
  border-right: 1px solid #f0f0f0; padding: 18px 12px; background: #fafafa;
}
.lp-startup .lp-mock-side-label {
  font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0 8px 8px;
}
.lp-startup .lp-mock-side-item {
  padding: 9px 12px; border-radius: 6px; font-size: 13px; color: #5e6470;
  cursor: default; margin-bottom: 2px;
}
.lp-startup .lp-mock-side-item.active {
  background: rgba(249,115,22,0.08); color: var(--brand-orange); font-weight: 600;
  border-left: 2px solid var(--brand-orange); padding-left: 10px;
}

.lp-startup .lp-mock-main { padding: 28px 32px; font-variant-numeric: tabular-nums; }
.lp-startup .lp-mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.lp-startup .lp-mock-eyebrow { font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.lp-startup .lp-mock-title { font-size: 22px; font-weight: 700; color: #1f2329; letter-spacing: -0.02em; margin: 0; }
.lp-startup .lp-mock-num-md { font-size: 18px; font-weight: 700; color: #1f2329; }
.lp-startup .lp-mock-up { font-size: 11px; color: #16a34a; font-weight: 600; }

.lp-startup .lp-mock-hero-row { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.lp-startup .lp-mock-num-xl { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.lp-startup .lp-mock-num-xl.up { color: #16a34a; }
.lp-startup .lp-mock-sub { font-size: 13px; color: #5e6470; margin-top: 6px; }
.lp-startup .lp-mock-stats { display: flex; gap: 24px; padding-bottom: 6px; }
.lp-startup .lp-mock-stat { font-size: 18px; color: #1f2329; font-weight: 700; }
.lp-startup .lp-mock-stat-up { font-size: 18px; color: #16a34a; font-weight: 700; }
.lp-startup .lp-mock-stat-down { font-size: 18px; color: #dc2626; font-weight: 700; }

.lp-startup .lp-mock-bar-track {
  display: flex; height: 6px; overflow: hidden; background: #f5f5f5; margin-bottom: 28px;
}

.lp-startup .lp-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.lp-startup .lp-mock-section-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
}
.lp-startup .lp-mock-section-title { font-size: 13px; font-weight: 700; color: #1f2329; }
.lp-startup .lp-mock-section-eyebrow { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.12em; }
.lp-startup .lp-mock-row {
  display: grid; grid-template-columns: 22px 1fr 50px 56px;
  align-items: center; gap: 10px; padding: 8px 0;
  font-size: 13px; border-bottom: 1px solid #f5f5f5;
}
.lp-startup .lp-mock-rk { color: #9ca3af; font-weight: 600; }
.lp-startup .lp-mock-name { color: #1f2329; font-weight: 500; }
.lp-startup .lp-mock-time { font-size: 12px; color: #9ca3af; }
.lp-startup .lp-mock-reason { font-size: 11px; color: #9ca3af; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-startup .lp-mock-score { color: #1f2329; font-weight: 700; text-align: right; }
.lp-startup .lp-mock-score small { font-size: 10px; color: #9ca3af; font-weight: 400; }
.lp-startup .lp-mock-up-rate { color: #16a34a; text-align: right; font-size: 12px; font-weight: 600; }
.lp-startup .lp-mock-down-rate { color: #dc2626; text-align: right; font-size: 12px; font-weight: 600; }
.lp-startup .lp-mock-pill {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
}
.lp-startup .lp-mock-pill.up { background: rgba(34,197,94,0.12); color: #16a34a; }
.lp-startup .lp-mock-pill.down { background: rgba(239,68,68,0.12); color: #dc2626; }
.lp-startup .lp-mock-pill.neutral { background: rgba(156,163,175,0.14); color: #6b7280; }

@media (max-width: 880px) {
  .lp-startup .lp-mock-side { display: none; }
  .lp-startup .lp-mock-content { grid-template-columns: 1fr; }
  .lp-startup .lp-mock-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-startup .lp-mock-main { padding: 22px 20px; }
  .lp-startup .lp-mock-num-xl { font-size: 44px; }
}

/* 3 ICON CARDS */
.lp-startup .lp-icon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.lp-startup .lp-icon-card {
  text-align: center; padding: 8px;
}
.lp-startup .lp-icon-circle {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(249,115,22,0.20);
}
.lp-startup .lp-icon-title {
  font-size: 18px; font-weight: 700; color: #1f2329; margin: 0 0 10px; letter-spacing: -0.01em;
}
.lp-startup .lp-icon-body {
  font-size: 14px; color: #5e6470; line-height: 1.7; margin: 0;
  max-width: 320px; margin-left: auto; margin-right: auto;
}

/* SPLIT SECTION */
.lp-startup .lp-split {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 960px) {
  .lp-startup .lp-split { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.lp-startup .lp-split-text { max-width: 480px; }
.lp-startup .lp-checklist { list-style: none; padding: 0; margin: 24px 0 28px; }
.lp-startup .lp-checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #1f2329; padding: 7px 0;
}
.lp-startup .lp-check {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(249,115,22,0.12); color: var(--brand-orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}

/* REPORT MOCK */
.lp-startup .lp-report-mock {
  background: white; border: 1px solid #e8e8e8; border-radius: 10px;
  padding: 28px 28px; font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.lp-startup .lp-report-mock-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; margin-bottom: 18px;
}
.lp-startup .lp-report-mock-title {
  font-size: 22px; font-weight: 700; color: #1f2329; margin-top: 4px; letter-spacing: -0.02em;
}
.lp-startup .lp-pill-buy {
  background: rgba(34,197,94,0.10); color: #16a34a;
  padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid rgba(34,197,94,0.25);
}
.lp-startup .lp-report-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.lp-startup .lp-metric-card {
  background: #fafaf7; border-radius: 6px; padding: 14px 16px;
  border-left: 3px solid var(--brand-orange);
}
.lp-startup .lp-metric-card:nth-child(2) { border-left-color: #16a34a; }
.lp-startup .lp-metric-label {
  font-size: 10px; color: #9ca3af; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.lp-startup .lp-metric-value { font-size: 20px; font-weight: 700; color: #1f2329; line-height: 1; }
.lp-startup .lp-metric-value small { font-size: 11px; color: #9ca3af; font-weight: 500; margin-left: 3px; }
.lp-startup .lp-metric-up { font-size: 11px; color: #16a34a; font-weight: 600; margin-top: 4px; }

.lp-startup .lp-callout {
  background: rgba(34,197,94,0.06); border-left: 3px solid #22c55e;
  padding: 12px 14px; border-radius: 4px; margin-bottom: 18px;
  font-size: 12px; color: #1f2329; line-height: 1.6;
}
.lp-startup .lp-callout-label {
  font-size: 10px; color: #16a34a; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 4px;
}

.lp-startup .lp-consensus { margin-bottom: 18px; }
.lp-startup .lp-consensus-label {
  font-size: 10px; color: #9ca3af; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 10px; text-transform: uppercase;
}
.lp-startup .lp-bar-row {
  display: grid; grid-template-columns: 100px 1fr 80px;
  align-items: center; gap: 10px; padding: 5px 0; font-size: 12px;
}
.lp-startup .lp-bar-house { color: #1f2329; font-weight: 500; }
.lp-startup .lp-bar-rating { color: #16a34a; font-weight: 700; font-size: 11px; }
.lp-startup .lp-bar-track { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.lp-startup .lp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand-orange), #f59e0b); border-radius: 3px; }
.lp-startup .lp-bar-target { color: #1f2329; font-weight: 600; text-align: right; }

.lp-startup .lp-report-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid #f0f0f0;
  font-size: 11px; color: #9ca3af;
}
.lp-startup .lp-report-pdf { color: var(--brand-orange); font-weight: 700; }

/* DISTRIBUTION CHART */
.lp-startup .lp-distribution-mock {
  background: white; border: 1px solid #e8e8e8; border-radius: 10px;
  padding: 28px 30px; box-shadow: 0 12px 40px rgba(0,0,0,0.05);
  font-variant-numeric: tabular-nums;
}
.lp-startup .lp-distribution-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.lp-startup .lp-distribution-tag { font-size: 12px; color: #16a34a; font-weight: 600; }
.lp-startup .lp-distribution-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-bottom: 8px; }
.lp-startup .lp-dist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-startup .lp-dist-bar { width: 100%; border-radius: 3px 3px 0 0; opacity: 0.9; }
.lp-startup .lp-dist-label { font-size: 10px; color: #9ca3af; letter-spacing: -0.005em; }
.lp-startup .lp-distribution-foot {
  display: flex; justify-content: space-between;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; font-size: 13px;
}
.lp-startup .lp-distribution-foot span { color: #9ca3af; margin-right: 6px; }

/* SECTION WITH BACKGROUND IMAGE — Split 섹션에 배경 이미지 적용 */
.lp-startup .lp-section-image {
  position: relative; overflow: hidden;
}
.lp-startup .lp-section-image-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1;
}
.lp-startup .lp-section-image-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,12,24,0.85) 0%, rgba(8,12,24,0.72) 50%, rgba(8,12,24,0.88) 100%);
}

/* Split #1 안의 텍스트가 다크 배경 위에 보이도록 색상 오버라이드 */
.lp-startup .lp-section-image .lp-h2 { color: white; }
.lp-startup .lp-section-image .lp-section-sub { color: rgba(255,255,255,0.78); }
.lp-startup .lp-section-image .lp-checklist li { color: rgba(255,255,255,0.92); }
.lp-startup .lp-section-image .lp-check {
  background: rgba(249,115,22,0.18); color: #fb923c;
}

/* 좌측 리포트 미니어처 카드는 화이트 배경 유지 — 다크 위에서 더 두드러지게 */
.lp-startup .lp-section-image .lp-report-mock {
  background: white;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

/* FOOTER */
.lp-startup .lp-footer {
  background: #2c2f33; color: #b0b6bf;
  padding: 56px 0 36px;
}
.lp-startup .lp-footer-brand {
  font-size: 18px; font-weight: 700; color: white; letter-spacing: -0.01em;
}
.lp-startup .lp-footer-tagline {
  font-size: 13px; color: #9ca3af; margin-top: 8px;
}
.lp-startup .lp-footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin: 24px 0 28px; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-startup .lp-footer-links a {
  font-size: 13px; color: #9ca3af; text-decoration: none; cursor: pointer;
  transition: color 0.18s;
}
.lp-startup .lp-footer-links a:hover { color: white; }
.lp-startup .lp-footer-fineprint {
  font-size: 11px; color: #6b7280; line-height: 1.6;
}

/* ============================================================
   LIGHT SECTIONS — 다크 사이에 끼워서 시각적 리듬 생성
   ============================================================ */
.lp-light {
  background: #fafaf7;
  color: #1a1f2a;
  position: relative;
  z-index: 1;
}
.lp-light h1, .lp-light h2, .lp-light h3 { color: #0a0e16; }
.lp-light .lp-light-eyebrow {
  font-size: 11px; font-weight: 700; color: #a16207;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.lp-light .lp-light-muted { color: #525866; }
.lp-light .lp-light-subtle { color: #6b7280; }

/* 라이트 섹션 안의 기능 카드 */
.lp-light-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.lp-light-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  border-color: #d1d5db;
}
.lp-light-card .lc-illust {
  height: 120px;
  margin: -8px -8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.lp-light-card .lc-eyebrow {
  font-size: 10px; font-weight: 700; color: #a16207;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.lp-light-card .lc-title {
  font-size: 16px; font-weight: 700; color: #0a0e16;
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.lp-light-card .lc-body {
  font-size: 13px; color: #525866; line-height: 1.6; margin: 0;
}

/* 다크-라이트 트랜지션 보더 */
.lp-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 50%, transparent);
}

/* ============================================================
   리포트 — PDF 스타일 시각 요소 (색상 액센트 카드 / 콜아웃 / 메트릭)
   ============================================================ */

/* 좌측 색상 보더 카드 — 카테고리/시그널 색상 표현 */
.r-card {
  position: relative;
  padding: 16px 18px 16px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  border-left: 3px solid #6b7280;
}
.r-card.success { border-left-color: #22c55e; }
.r-card.warn    { border-left-color: #f59e0b; }
.r-card.danger  { border-left-color: #ef4444; }
.r-card.info    { border-left-color: #3b82f6; }
.r-card.brand   { border-left-color: var(--brand-orange); }
.r-card .r-card-eyebrow {
  font-size: 10px; font-weight: 700; color: #9ca3af;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.r-card .r-card-title {
  font-size: 14px; font-weight: 700; color: white; margin-bottom: 8px;
}
.r-card .r-card-body {
  font-size: 13px; color: #d1d5db; line-height: 1.65;
}

/* Hero 카드 — 큰 숫자 + 라벨 (목표가, KPI 등) */
.r-metric {
  position: relative;
  padding: 18px 18px 18px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  border-left: 3px solid #6b7280;
}
.r-metric.success { border-left-color: #22c55e; }
.r-metric.warn    { border-left-color: #f59e0b; }
.r-metric.danger  { border-left-color: #ef4444; }
.r-metric.info    { border-left-color: #3b82f6; }
.r-metric.brand   { border-left-color: var(--brand-orange); }
.r-metric .label  { font-size: 11px; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.r-metric .value  { font-size: 28px; font-weight: 700; color: white; line-height: 1; letter-spacing: -0.01em; }
.r-metric .value .unit { font-size: 13px; font-weight: 500; color: #9ca3af; margin-left: 4px; }
.r-metric .delta  { font-size: 12px; font-weight: 600; margin-top: 6px; }
.r-metric .desc   { font-size: 12px; color: #9ca3af; margin-top: 8px; line-height: 1.5; }

/* 콜아웃 (강조 박스) — 핵심 메시지/면책 */
.r-callout {
  padding: 14px 18px;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: 13px; line-height: 1.65;
  display: flex; gap: 10px; align-items: flex-start;
}
.r-callout.success { background: rgba(34,197,94,0.06);  border-color: #22c55e; color: #d1fae5; }
.r-callout.warn    { background: rgba(245,158,11,0.06); border-color: #f59e0b; color: #fef3c7; }
.r-callout.danger  { background: rgba(239,68,68,0.06);  border-color: #ef4444; color: #fee2e2; }
.r-callout.info    { background: rgba(59,130,246,0.06); border-color: #3b82f6; color: #dbeafe; }
.r-callout .r-callout-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 4px; opacity: 0.8;
}

/* Pill — 라벨 (Bull/Base/Bear, BUY 의견 등) */
.r-pill {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
}
.r-pill.success { background: rgba(34,197,94,0.12);  color: #4ade80; }
.r-pill.warn    { background: rgba(245,158,11,0.12); color: #fbbf24; }
.r-pill.danger  { background: rgba(239,68,68,0.12);  color: #f87171; }
.r-pill.info    { background: rgba(59,130,246,0.12); color: #60a5fa; }
.r-pill.neutral  { background: rgba(255,255,255,0.06); color: #9ca3af; }

/* 큰 BUY/SELL 배지 (투자의견) */
.r-opinion {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
}
.r-opinion.buy   { background: rgba(34,197,94,0.10);  color: #22c55e; border: 1px solid rgba(34,197,94,0.30); }
.r-opinion.sell  { background: rgba(239,68,68,0.10);  color: #ef4444; border: 1px solid rgba(239,68,68,0.30); }
.r-opinion.hold  { background: rgba(156,163,175,0.10); color: #9ca3af; border: 1px solid rgba(156,163,175,0.30); }

/* 그리드 */
.r-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.r-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) {
  .r-grid-2, .r-grid-3, .r-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 540px) and (max-width: 880px) {
  .r-grid-3 { grid-template-columns: 1fr 1fr; }
  .r-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* 차트 컨테이너 */
.r-chart-box {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 14px 16px;
  position: relative;
}
.r-chart-canvas { width: 100% !important; height: 240px !important; }

/* 수평 막대 차트 (컨센서스 등) */
.r-bar-row {
  display: grid; grid-template-columns: 110px 1fr 90px;
  align-items: center; gap: 12px; padding: 6px 0;
}
.r-bar-row .r-bar-name { font-size: 13px; color: white; font-weight: 500; }
.r-bar-row .r-bar-track {
  height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden;
}
.r-bar-row .r-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--brand-orange), #f59e0b); border-radius: 4px;
  transition: width 0.6s ease;
}
.r-bar-row .r-bar-value { font-size: 13px; color: white; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* 마이페이지 - 분석 이력 카드 */
.hist-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,0.4);
}
.hist-card:hover button[aria-label="삭제"] { opacity: 1 !important; }

/* 테마주 타일 */
.theme-tile {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.theme-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,0.4);
  background: rgba(249,115,22,0.02);
}
.theme-tile-eyebrow {
  font-size: 10px; color: #6b7280; letter-spacing: 0.06em;
}
.theme-tile-name {
  font-size: 17px; font-weight: 700; color: white; letter-spacing: -0.01em;
}
.theme-tile-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.04);
  font-variant-numeric: tabular-nums;
}
.theme-tile-top { font-size: 11px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.theme-tile-rate { font-size: 13px; font-weight: 700; }

/* AI 엔진 선택 패널 */
.engine-panel {
  padding: 8px 0;
}
.engine-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.engine-label {
  font-size: 12px; color: #9ca3af; font-weight: 600;
  letter-spacing: 0.02em; min-width: 70px;
}
.engine-select {
  flex: 1; min-width: 240px; max-width: 480px;
  padding: 11px 14px; min-height: 44px;
}
.engine-hint {
  font-size: 11px; color: #6b7280; margin-top: 10px; line-height: 1.6;
}
.report-disclaimer p {
  font-size: 11px; color: #6b7280; line-height: 1.7;
}

@media (max-width: 720px) {
  .report-title { font-size: 28px; }
  .report-meta { grid-template-columns: 1fr 1fr; gap: 14px; }
  .report-grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .report-grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============================================================
   PRINT — PDF 다운로드용 (window.print() 시 활성화)
   브라우저 인쇄 다이얼로그에서 "PDF로 저장" 선택 시 적용됨
   ============================================================ */
@media print {
  /* 색상 그대로 출력 */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* UI 크롬 모두 숨김 — 리포트 본문만 인쇄 */
  body { background: white !important; color: black !important; }
  .navbar, .sidebar, .ticker-tape, .bottom-nav, .sidebar-overlay,
  #main-navbar, #ticker-bar, #sidebar, #bottom-nav,
  .no-print { display: none !important; }

  .main-content, #main-content {
    margin: 0 !important; padding: 0 !important;
  }

  #report-doc {
    max-width: 100% !important; padding: 24px !important;
    color: black !important; background: white !important;
  }

  /* 텍스트 색상 — 인쇄에서 가독성 좋게 */
  #report-doc, #report-doc * {
    color: #111827 !important;
  }
  #report-doc .ed-up   { color: #16a34a !important; }
  #report-doc .ed-down { color: #dc2626 !important; }
  #report-doc .ed-flat { color: #6b7280 !important; }
  #report-doc .signal-buy  { color: #16a34a !important; background: rgba(34,197,94,0.10) !important; }
  #report-doc .signal-sell { color: #dc2626 !important; background: rgba(239,68,68,0.10) !important; }
  #report-doc .signal-hold { color: #6b7280 !important; background: rgba(156,163,175,0.10) !important; }

  /* 보더 — 진하게 */
  #report-doc .ed-section { border-top: 1px solid #d1d5db !important; }
  #report-doc .report-header { border-bottom: 1px solid #d1d5db !important; }

  /* 페이지 분리 힌트 — 섹션이 페이지 중간에 잘리지 않도록 */
  .ed-section, .report-header { page-break-inside: avoid; break-inside: avoid; }

  /* 차트 — 인쇄 시 캔버스 그대로 출력 */
  #report-chart { height: 280px !important; }
}

/* ============================================================
   MODAL (하단 시트 스타일)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  /* 단색 거의 불투명 배경 — backdrop-filter 제거 (차트 매 프레임 redraw 시 GPU 비용 큼) */
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 0;
  /* GPU 레이어 분리 → 부모 dashboard와 합성 비용 감소 */
  will-change: opacity;
  contain: layout style paint;
}

.modal-content {
  background: var(--brand-card);
  border-top: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px 14px 0 0;
  padding: 16px 16px 20px;
  width: 100%;
  max-width: 100%;
  animation: slideUp 0.25s ease;
  height: 96vh;
  max-height: 96vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 모달 핸들 바 */
.modal-content::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ALERT — 보더 단순화, 색상 약하게 */
.alert-success,
.alert-error {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 13px;
  border-left: 2px solid;
}
.alert-success { background: rgba(34,197,94,0.08); border-left-color: #22c55e; color: #4ade80; }
.alert-error   { background: rgba(239,68,68,0.08); border-left-color: #ef4444; color: #f87171; margin-bottom: 12px; }

/* TICKER */
.ticker-tape {
  background: var(--brand-darker);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden; white-space: nowrap; padding: 6px 0;
  height: var(--ticker-h);
  display: flex; align-items: center;
}
.ticker-inner { display: inline-block; animation: ticker 40s linear infinite; }

/* TAB — underline 스타일, pill 배경 제거 */
.tab-btn {
  padding: 10px 4px;
  margin-right: 18px;
  font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  color: #6b7280;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  min-height: 40px; white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
}
.tab-btn.active            { color: white; border-bottom-color: var(--brand-orange); }
.tab-btn:hover:not(.active){ color: #d1d5db; }
.tab-btn:active            { opacity: 0.7; }

/* TOAST — 차분하게, 배경 단단히 */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 12px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 9px;
  animation: slideUp 0.25s ease, fadeOut 0.3s ease 2.7s forwards;
  min-width: 220px; max-width: calc(100vw - 28px);
  text-align: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.toast-success { background: #11261d; color: #86efac; border-color: rgba(34,197,94,0.4); }
.toast-error   { background: #2a1517; color: #fca5a5; border-color: rgba(239,68,68,0.4); }

/* MISC */
.admin-badge {
  background: rgba(249,115,22,0.12);
  color: var(--brand-orange);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trend-up::before   { content: '▲ '; }
.trend-down::before { content: '▼ '; }
.chart-container { position: relative; height: 240px; width: 100%; }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 18px 0; border: 0; }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 499;
  backdrop-filter: blur(3px);
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   BOTTOM NAV (모바일 전용 하단 탭바)
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h); z-index: 600;
  background: rgba(8,13,20,0.98);
  border-top: 1px solid rgba(249,115,22,0.12);
  backdrop-filter: blur(20px);
  /* safe area for iPhone X+ */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-items {
  display: flex; height: 100%;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: all 0.2s;
  color: #4b5563; font-size: 9px; font-weight: 600;
  letter-spacing: 0.02em;
  border: none; background: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 0 4px;
  min-height: 52px;
}
.bottom-nav-item i { font-size: 17px; margin-bottom: 1px; }
.bottom-nav-item.active { color: var(--brand-orange); }
.bottom-nav-item:active { opacity: 0.7; }

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  :root {
    --navbar-h: 56px;
    --ticker-h: 30px;
    --app-top: 86px;
  }

  /* ---- Sidebar: 전체화면 드로어 ---- */
  .sidebar {
    top: 0 !important;
    width: 280px;
    transform: translateX(-100%);
    z-index: 700;
    padding-top: 56px;
  }
  .sidebar.open { transform: translateX(0) !important; }

  /* ---- Main ---- */
  .main-content {
    margin-left: 0 !important;
    margin-top: var(--app-top) !important;
    padding: 14px 14px calc(var(--bottom-nav-h) + 16px) !important;
  }

  /* ---- Bottom Nav 표시 ---- */
  .bottom-nav { display: block; }

  /* ---- 카드 ---- */
  .glass-card { border-radius: 12px; }
  .stat-card  { padding: 14px; border-radius: 12px; }
  .news-card  { padding: 13px 14px; }

  /* ---- 탭 ---- */
  .tab-btn { padding: 8px 12px; font-size: 12px; min-height: 40px; }

  /* ---- 테이블 ---- */
  .data-table th { padding: 10px 10px; font-size: 10px; }
  .data-table td { padding: 10px 10px; font-size: 12px; }

  /* ---- 모달 ---- */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-content {
    border-radius: 20px 20px 0 0;
    padding: 10px 13px calc(14px + env(safe-area-inset-bottom, 0px));
    height: 95vh;
    max-height: 95vh;
    width: 100%;
  }

  /* ---- Chart ---- */
  .chart-container { height: 170px; }

  /* ---- Toast ---- */
  .toast { bottom: calc(var(--bottom-nav-h) + 12px); }

  /* ---- 폼 입력 ---- */
  .form-input { font-size: 16px; }

  /* ---- 버튼 ---- */
  .btn-primary, .btn-secondary { min-height: 50px; }

  /* ---- 2단 → 1단 ---- */
  .two-col { grid-template-columns: 1fr !important; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 390px)
   ============================================================ */
@media (max-width: 390px) {
  .tab-btn { padding: 7px 9px; font-size: 11px; }
  .data-table th, .data-table td { padding: 9px 8px; font-size: 11px; }
  .stat-card { padding: 12px; }
  .main-content { padding: 12px 12px calc(var(--bottom-nav-h) + 12px) !important; }
  .news-card { padding: 12px 13px; }
  .signal-buy, .signal-sell, .signal-hold { padding: 3px 9px; font-size: 11px; }
  .bottom-nav-item { font-size: 8px; }
  .bottom-nav-item i { font-size: 16px; }
}

/* ============================================================
   DESKTOP (> 768px) — 데스크탑에서 modal을 중앙 시트로
   ============================================================ */
@media (min-width: 769px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-content {
    border-radius: 20px;
    max-width: 1200px;
    width: 95vw;
    height: 92vh;
    max-height: 92vh;
    padding: 22px 24px 22px;
  }
  .modal-content::before { display: none; }
  .chart-container { height: 240px; }
}
@media (min-width: 1280px) {
  .modal-content { max-width: 1400px; }
}

/* ============================================================
   Dashboard v4 — gridstack widgets
   ============================================================ */

.grid-stack {
  background: transparent;
  margin-top: 14px;
}
.grid-stack > .grid-stack-item > .grid-stack-item-content {
  background: rgba(22, 27, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  inset: 0;
}

.widget-card {
  display: flex; flex-direction: column;
  height: 100%; min-height: 0;
}
.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: move;
  user-select: none;
  background: rgba(255, 255, 255, 0.015);
  flex-shrink: 0;
}
.widget-title {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
}
.widget-title > span:first-child {
  font-size: 12px; font-weight: 700; color: #e5e7eb; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.widget-eyebrow {
  font-size: 9px; font-weight: 700; color: #4b5563;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.widget-pin {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6b7280;
  width: 26px; height: 26px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.widget-pin:hover {
  color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}
.widget-pin.is-pinned {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  transform: rotate(-30deg);
}
.widget-body {
  flex: 1; min-height: 0;
  overflow: auto;
  padding: 0;
}
.widget-body::-webkit-scrollbar { width: 6px; height: 6px; }
.widget-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* 종목 순위 리스트 — KPI 위젯에서 공통 사용 */
.ed-rank-list {
  list-style: none; margin: 0; padding: 0;
}
.ed-rank-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  transition: background 0.12s;
}
.ed-rank-list li:hover { background: rgba(255, 255, 255, 0.03); }
.ed-rank-list li:last-child { border-bottom: 0; }
.ed-rank-list .rank {
  font-size: 10px; color: #4b5563; font-weight: 700;
}
.ed-rank-list .name { min-width: 0; }
.ed-rank-list .name .n {
  font-weight: 600; color: white; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-rank-list .name .c {
  font-size: 10px; color: #6b7280;
}
.ed-rank-list .px {
  font-size: 12px; color: #d1d5db; font-weight: 500;
}
.ed-rank-list .rate {
  font-size: 11px; font-weight: 700; min-width: 52px; text-align: right;
}

/* 그리드는 어두운 배경 위에 옅은 placeholder + 핸들 표시 */
.grid-stack-item.ui-draggable-dragging > .grid-stack-item-content {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.grid-stack-placeholder > .placeholder-content {
  background: rgba(249, 115, 22, 0.08);
  border: 1px dashed rgba(249, 115, 22, 0.4);
  border-radius: 10px;
}
.ui-resizable-se {
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  border-right: 2px solid rgba(255, 255, 255, 0.18);
  width: 10px; height: 10px;
  margin: -2px;
}

/* 모바일 — 단일 컬럼, 핸들 숨김 */
@media (max-width: 768px) {
  .widget-header { cursor: default; }
  .ui-resizable-handle { display: none !important; }
}
