/* =============================================
   TradeArchive — Rocket Launch Theme (시안 F)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ── 배경 (이미지 슬레이트블루 톤에서 추출) ── */
  --white:      #ffffff;
  --bg-deep:    #1c2830;
  --bg-mid:     #243040;
  --bg-card:    #1e2d3a;
  --bg-card-2:  #223040;

  /* ── 텍스트 ── */
  --text-primary:   #f0ede8;
  --text-secondary: #8a9aaa;
  --text-muted:     #4a6070;

  /* ── 핵심 강조색 ── */
  --yellow:     #f5c400;
  --yellow-lt:  #ffd740;
  --yellow-dim: rgba(245,196,0,0.12);
  --yellow-glow:rgba(245,196,0,0.4);

  /* ── 수익/손실 ── */
  --green:      #3dd68c;
  --green-dim:  rgba(61,214,140,0.12);
  --red:        #f06060;
  --red-dim:    rgba(240,96,96,0.12);

  /* ── 기타 포인트 ── */
  --blue:       #5ba8e0;
  --blue-dim:   rgba(91,168,224,0.12);
  --purple:     #a78bfa;
  --purple-dim: rgba(167,139,250,0.12);
  --orange:     #f5a623;
  --orange-dim: rgba(245,166,35,0.12);
  --teal:       #22d3ee;
  --teal-dim:   rgba(34,211,238,0.12);

  /* ── 테두리 ── */
  --border:      rgba(255,255,255,0.08);
  --border-md:   rgba(255,255,255,0.12);

  /* ── 반경 ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ── 폰트 ── */
  --font-d:    'Bebas Neue', sans-serif;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(245,196,0,0.3); border-radius: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
/* ── nav 바 ── */
.site-nav {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 200;
  height: var(--nav-h);
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  padding: 0 40px;
  transition: background 0.3s;
  background: transparent;
  overflow: visible;
}
.site-nav.scrolled {
  background: rgba(26,35,45,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ── 왼쪽: 햄버거 버튼 ── */
.nav-menu-btn {
  width: 42px; height: 32px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.nav-menu-btn:hover { border-color: rgba(255,255,255,0.65); }
.nav-menu-btn span {
  width: 16px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  display: block;
}

/* ── 가운데: 로고 (absolute 중앙) ── */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ── 오른쪽: ADMIN 버튼 ── */
.nav-admin {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  padding: 7px 16px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-admin:hover { border-color: var(--yellow); color: var(--yellow); }
.nav-admin.active { border-color: var(--yellow); color: var(--yellow); }

/* ── 햄버거 클릭 시 드로워 ── */
.nav-drawer {
  position: fixed !important;
  top: var(--nav-h) !important; left: 0 !important; right: 0 !important;
  background: rgba(26,35,45,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 0;
  transform: translateY(-110%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.nav-drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 40px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-drawer a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-drawer a.active { color: var(--yellow); }
.nav-drawer a i { font-size: 11px; width: 14px; text-align: center; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.genspark.ai/api/files/s/5CE2Feee');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.62) saturate(0.9);
  z-index: 0;
  transition: transform 0.1s linear;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,35,45,0.15) 0%,
    rgba(26,35,45,0)    35%,
    rgba(26,35,45,0)    55%,
    rgba(26,35,45,0.7)  80%,
    rgba(26,35,45,0.97) 100%
  );
  z-index: 1;
}

/* 기하학 라인 오버레이 */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.pulse-dot {
  color: var(--yellow);
  animation: pulse 1.8s ease-in-out infinite;
  font-size: 8px;
}
@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

/* 히어로 수익금 — 숫자 기준 중앙정렬 */
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(72px, 11vw, 130px);
  letter-spacing: 3px;
  line-height: 0.9;
  color: var(--yellow);
  text-shadow:
    0 0 40px rgba(245,196,0,0.45),
    0 0 80px rgba(245,196,0,0.18);
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.hero-title .gradient-text { /* + 기호 */
  color: var(--yellow-lt);
  font-size: 0.55em;
  position: absolute;
  left: 0;
  transform: translateX(-110%);
  top: 0.12em;
}
.hero-title .num { display: block; }

/* 기존 gradient-text가 텍스트 스팬으로도 쓰이는 경우 */
.gradient-text:not(.hero-title .gradient-text) {
  color: var(--yellow);
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,196,0,0.5), transparent);
  margin: 22px auto;
}

.hero-stats-row {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.hero-stat-val {
  font-family: var(--font-d);
  font-size: 32px;
  letter-spacing: 1.5px;
  color: var(--yellow);
  line-height: 1;
}
.hero-stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero-stat-sep {
  width: 1px; height: 28px;
  background: rgba(245,196,0,0.2);
}

.hero-sub {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* 하단 브랜드 */
.hero-bottom-bar {
  position: absolute;
  bottom: 44px; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 48px;
}
.hero-brand-text {
  font-family: var(--font-d);
  font-size: clamp(36px,5.5vw,72px);
  letter-spacing: 5px;
  color: rgba(255,255,255,0.9);
  line-height: 1;
}
.hero-brand-text small {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(10px,1vw,13px);
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.28);
  margin-bottom: 6px;
}

/* ── 히어로 티커 바 ── */
.hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  height: 37px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* LIVE 배지 */
.ticker-label-fixed {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--yellow);
  padding: 0 14px;
  height: 37px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1;
}

/* 스크롤 트랙 래퍼 */
.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 37px;
  display: flex;
  align-items: center;
  position: relative;
}

/* 스크롤 트랙 — running 클래스 붙으면 애니메이션 시작 */
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0;
  will-change: transform;
}
.ticker-track.running {
  animation: tickerScroll 35s linear infinite;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 개별 아이템 */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.ticker-item-label {
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ticker-item-price {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.ticker-item-chg {
  font-size: 11px;
  font-weight: 700;
}
.tick-up { color: var(--green); }
.tick-dn { color: var(--red); }

/* 구분자 */
.ticker-sep {
  color: rgba(255,255,255,0.12);
  font-size: 8px;
  padding: 0 2px;
}

/* 로딩 */
.ticker-loading {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  padding: 0 20px;
}

/* 스크롤 힌트 */
.scroll-hint {
  position: absolute;
  bottom: 48px; right: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.38;
}
.scroll-hint-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--white, #fff), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:0.4; }
  50%      { opacity:1; }
}

/* ═══════════════════════════════════════
   KPI STRIP  (히어로 바로 아래)
═══════════════════════════════════════ */
.kpi-section {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  gap: 0;
  min-width: 0;          /* 텍스트 넘침 방지 — 균등 너비 보장 */
  overflow: hidden;
  box-sizing: border-box;
}
.kpi-card:last-child { border-right: none; }
.kpi-card:hover { background: rgba(255,255,255,0.02); }

/* 기존 kpi-icon 숨김 (strip 스타일에선 불필요) */
.kpi-icon { display: none; }

.kpi-body { display: flex; flex-direction: column; }
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-label-lg { font-size: 11px; letter-spacing: 0.8px; }
.kpi-value {
  font-family: var(--font-d);
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--yellow);
}
.kpi-value.profit  { color: var(--yellow); }
.kpi-value.loss    { color: var(--red); }
.kpi-value.gain    { color: var(--green); }
.kpi-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.22);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   PAGE STRUCTURE (trades / analytics / admin)
═══════════════════════════════════════ */
.page-main {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.page-title-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-title-bar h1 {
  font-family: var(--font-d);
  font-size: 40px;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-title-bar h1 i { color: var(--yellow); font-size: 28px; }
.page-title-bar p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   섹션 공통 헤더 (charts-section 등)
═══════════════════════════════════════ */
.charts-section,
.recent-trades-section {
  padding: 72px 0;
  background: var(--bg-deep);
}
.charts-section:nth-child(even),
.recent-trades-section:nth-child(even) {
  background: var(--bg-mid);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: var(--font-d);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 i { color: var(--yellow); }

.s-overline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,196,0,0.6);
  margin-bottom: 10px;
}
.s-title {
  font-family: var(--font-d);
  font-size: clamp(28px,3.5vw,44px);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════
   CHART CARDS
═══════════════════════════════════════ */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.chart-card.full-width { width: 100%; }

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.chart-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-header h3 i { color: var(--yellow); }

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.chart-wrapper { padding: 16px 20px 8px; }

/* 에쿼티 필터 버튼 */
.chart-filters { display: flex; gap: 4px; }
.filter-btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }
.filter-btn.active { background: var(--yellow); color: var(--bg-deep); border-color: var(--yellow); }

.year-select {
  background: var(--bg-card-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   HEATMAP
═══════════════════════════════════════ */
.heatmap-container {
  padding: 12px 20px 4px;
  display: flex;
  gap: 3px;
  overflow-x: auto;
}
.hm-month-col,
.heatmap-month {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 140px;
  gap: 0;
}
.heatmap-month { align-content: flex-start; }
.hm-month-label,
.heatmap-month-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  text-align: center;
  margin-bottom: 4px;
  width: 100%;
}
.hm-day-cell {
  width: 18px; height: 18px;
  margin: 1.5px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.12s;
}
.hm-day-cell:hover { transform: scale(1.25); }

/* 히트맵 일별 셀 (JS: heatmap-day + profit-*/loss-*/no-data) */
.heatmap-day {
  width: 18px; height: 18px;
  margin: 1.5px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.12s;
  background: rgba(255,255,255,0.04);
}
.heatmap-day:hover { transform: scale(1.25); }
.heatmap-day.no-data { background: rgba(255,255,255,0.04); }

/* 수익일 = 초록색 (라이브/에쿼티 커브와 동일) */
.heatmap-day.profit-xs { background: rgba(61,214,140,0.15); }
.heatmap-day.profit-sm { background: rgba(61,214,140,0.35); }
.heatmap-day.profit-md { background: rgba(61,214,140,0.55); }
.heatmap-day.profit-lg { background: rgba(61,214,140,0.78); }
.heatmap-day.profit-xl { background: var(--green); }

/* 손실일 = 빨간색 */
.heatmap-day.loss-xs { background: rgba(240,96,96,0.15); }
.heatmap-day.loss-sm { background: rgba(240,96,96,0.35); }
.heatmap-day.loss-md { background: rgba(240,96,96,0.55); }
.heatmap-day.loss-lg { background: rgba(240,96,96,0.78); }
.heatmap-day.loss-xl { background: var(--red); }

.heatmap-nav {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}
.heatmap-nav button {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: all 0.15s;
}
.heatmap-nav button:hover { border-color: var(--yellow); color: var(--yellow); }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 16px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}
.legend-bar {
  width: 100px; height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--red), rgba(255,255,255,0.04), var(--green));
}

/* ═══════════════════════════════════════
   TABLES
═══════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }
.trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.trades-table thead tr {
  border-bottom: 1px solid var(--border-md);
}
.trades-table thead th {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 0 12px 14px;
  text-align: left;
  white-space: nowrap;
}
.trades-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}
.trades-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.trades-table td {
  padding: 14px 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.type-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-sm);
}
.type-badge.buy  { background: var(--green-dim); color: var(--green); }
.type-badge.sell { background: var(--red-dim);   color: var(--red); }

.platform-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
}
.platform-badge.mt4 { background: var(--blue-dim); color: var(--blue); }
.platform-badge.mt5 { background: var(--purple-dim); color: var(--purple); }

.profit-cell { font-weight: 700; }
.profit-cell.profit { color: var(--yellow); }
.profit-cell.loss   { color: var(--red); }

.empty-msg {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════
   FILTER BAR (trades 페이지)
═══════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filter-group label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.filter-group select,
.filter-group input[type="date"],
.filter-group input[type="text"] {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 7px 12px;
  font-size: 12px;
  min-width: 120px;
  transition: border-color 0.15s;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--yellow);
}
.filter-group select option { background: var(--bg-card-2); }

.btn-filter-reset {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  transition: all 0.15s;
  align-self: flex-end;
}
.btn-filter-reset:hover { color: var(--yellow); border-color: var(--yellow); }

.filter-stats {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-stats span { display: flex; align-items: center; gap: 5px; }

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.sort-group, .page-size-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.sort-group select, .page-size-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 12px;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: all 0.15s;
}
.page-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); }
.page-btn.active { background: var(--yellow); color: var(--bg-deep); border-color: var(--yellow); }
.page-btn:disabled { opacity: 0.25; pointer-events: none; }

/* ═══════════════════════════════════════
   ANALYTICS KPI GRID
═══════════════════════════════════════ */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--bg-card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s;
}
.stat-box:hover { background: rgba(255,255,255,0.025); }
.stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.stat-val {
  font-family: var(--font-d);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text-primary);
}
.stat-val.green { color: var(--yellow); }
.stat-val.red   { color: var(--red); }

/* ═══════════════════════════════════════
   ADMIN PAGE
═══════════════════════════════════════ */

/* 로그인 오버레이 */
.login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,35,45,0.97);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 360px;
  text-align: center;
}
.login-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow-dim);
  border: 1px solid rgba(245,196,0,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--yellow);
  margin: 0 auto 20px;
}
.login-card h2 {
  font-family: var(--font-d);
  font-size: 26px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.login-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 28px; }

.login-form { display: flex; flex-direction: column; gap: 12px; }
.input-group {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s;
}
.input-group:focus-within { border-color: var(--yellow); }
.input-group i { color: var(--yellow); font-size: 14px; flex-shrink: 0; }
.input-group input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 14px;
  flex: 1; width: 100%;
}
.input-group input::placeholder { color: var(--text-muted); }

.btn-login {
  background: var(--yellow);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 13px;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
  width: 100%;
}
.btn-login:hover { background: var(--yellow-lt); }
.login-error {
  font-size: 12px;
  color: var(--red);
  min-height: 18px;
}

/* 비밀번호 변경 배너 */
.pw-change-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(245,196,0,0.1);
  border: 1px solid rgba(245,196,0,0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.pw-banner-icon { font-size: 18px; color: var(--yellow); flex-shrink: 0; }
.pw-banner-text { flex: 1; font-size: 13px; color: var(--text-primary); }
.pw-banner-text strong { display: block; font-weight: 700; margin-bottom: 2px; color: var(--yellow); }
.pw-banner-text span { font-size: 12px; color: var(--text-secondary); }
.pw-banner-btn {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--yellow);
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s;
}
.pw-banner-btn:hover { opacity: 0.7; }
.pw-banner-close {
  color: var(--text-muted); font-size: 14px;
  flex-shrink: 0; transition: color 0.15s;
}
.pw-banner-close:hover { color: var(--text-primary); }

/* 관리자 카드 */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.admin-card.highlight-section {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(245,196,0,0.15);
  animation: highlightPulse 0.6s ease-in-out 2;
}
@keyframes highlightPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(245,196,0,0.15); }
  50%      { box-shadow: 0 0 0 4px rgba(245,196,0,0.3); }
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-card-header h2 {
  font-family: var(--font-d);
  font-size: 22px;
  letter-spacing: 1.5px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary);
}
.admin-card-header h2 i { color: var(--yellow); }

.badge-info {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(245,196,0,0.2);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}

/* 업로드 가이드 */
.upload-guide {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.upload-guide h4 {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.upload-guide h4 i { color: var(--yellow); }
.guide-steps { display: flex; gap: 16px; flex-wrap: wrap; }
.guide-step {
  flex: 1; min-width: 200px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.step-num {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px;
  background: var(--yellow-dim);
  color: var(--yellow);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-bottom: 6px;
}
.guide-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* 업로드 영역 */
.upload-area {
  border: 2px dashed rgba(245,196,0,0.25);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}
.upload-icon { font-size: 36px; color: rgba(245,196,0,0.4); margin-bottom: 14px; }
.upload-area h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.upload-area p { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.btn-select-file {
  background: var(--yellow);
  color: var(--bg-deep);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.btn-select-file:hover { background: var(--yellow-lt); }

.upload-options {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 20px;
}
.option-group {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1; min-width: 180px;
}
.option-group.full { flex: 100%; }
.option-group label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.option-group select,
.option-group input[type="text"] {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 12px;
  transition: border-color 0.15s;
}
.option-group select:focus,
.option-group input:focus { outline: none; border-color: var(--yellow); }

/* 업로드 버튼 */
.btn-upload {
  background: var(--yellow);
  color: var(--bg-deep);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s, transform 0.15s;
}
.btn-upload:hover { background: var(--yellow-lt); transform: translateX(2px); }
.btn-upload:disabled { opacity: 0.4; pointer-events: none; }

/* 진행 바 */
.upload-progress-wrap {
  margin-top: 16px;
  display: none;
}
.upload-progress-wrap.show { display: block; }
.progress-bar-bg {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.3s;
  width: 0%;
}
.progress-text { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* 업로드 결과 */
.upload-result { display: none; }
.upload-result.show { display: block; margin-top: 16px; }
.result-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.result-card h4 {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.result-card h4 i { color: var(--yellow); }
.result-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.result-stat {
  font-size: 12px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 5px;
}
.result-stat strong { color: var(--text-primary); }
.result-stat.success strong { color: var(--green); }
.result-stat.warn strong { color: var(--yellow); }
.result-stat.err strong { color: var(--red); }

/* 업로드 이력 */
.batch-table th, .batch-table td {
  padding: 12px 14px;
  font-size: 12px;
}
.batch-table thead th {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  border-bottom: 1px solid var(--border);
}
.btn-delete-batch {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--red);
  border: 1px solid rgba(240,96,96,0.3);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  transition: all 0.15s;
}
.btn-delete-batch:hover { background: var(--red-dim); }

/* 비밀번호 변경 */
.pw-form { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.btn-save-pw {
  background: var(--yellow);
  color: var(--bg-deep);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  transition: background 0.2s;
}
.btn-save-pw:hover { background: var(--yellow-lt); }

.pw-success { font-size: 12px; color: var(--green); margin-top: 4px; }
.pw-error   { font-size: 12px; color: var(--red);   margin-top: 4px; }

/* 기타 버튼 */
.admin-badge {
  font-size: 11px; font-weight: 600;
  color: var(--yellow);
  display: flex; align-items: center; gap: 6px;
}
.btn-logout {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.15s;
}
.btn-logout:hover { color: var(--red); border-color: rgba(240,96,96,0.4); }

/* ═══════════════════════════════════════
   LINKS & MISC
═══════════════════════════════════════ */
.btn-link {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--yellow);
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.btn-link:hover { gap: 10px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  min-width: 280px; max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideInToast 0.25s ease-out;
}
@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--yellow); }
.toast-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--green); }
.toast.error   .toast-icon { color: var(--red); }
.toast.warning .toast-icon { color: var(--yellow); }
.toast-msg { font-size: 13px; color: var(--text-primary); line-height: 1.5; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: #111820;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-d);
  font-size: 17px; letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
}
.footer-brand .footer-rocket { color: var(--yellow); font-size: 13px; position: relative; top: -1px; }
.footer-brand i { color: var(--yellow); font-size: 13px; }
.footer-note { font-size: 12px; color: var(--text-muted); }
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  max-width: 600px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(3,1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .analytics-kpi-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .analytics-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .filter-bar { flex-direction: column; }
  .hero-bottom-bar { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stats-row { gap: 24px; }
  .hero-title { font-size: 60px; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .analytics-kpi-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 46px; }
}
