/* ==========================================================================
   jjapvis-theme.css — 짭비스(JJAPVIS) HUD 네온 사이버펑크 디자인 시스템
   100만 명 규모 프로덕션급 경량 네온 토큰 & 회전 기하학 심볼 엔진
   ========================================================================== */

:root {
  /* ══ 짭비스 시그니처 네온 테마 컬러 ══ */
  --hud-color: #00ffff;
  --hud-glow: 0 0 16px rgba(0, 255, 255, 0.55);
  --hud-cyan: #00f0ff;
  --hud-blue: #0088ff;
  --hud-green: #00ff88;
  --hud-purple: #b026ff;
  --hud-amber: #ffaa00;

  --jjapvis-bg-dark: #050811;
  --jjapvis-bg-panel: rgba(0, 15, 30, 0.90);
  --jjapvis-bg-card: rgba(0, 20, 38, 0.75);
  --jjapvis-border: rgba(0, 255, 255, 0.25);
  --jjapvis-border-glow: rgba(0, 255, 255, 0.6);
}

/* ── 짭비스 회전 기하학 세모 (geo-icon spin) ──────────────── */
.geo-icon {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
  flex-shrink: 0;
}

.geo-icon.spin, .geo-spin {
  animation: geo-spin 6s linear infinite;
}

@keyframes geo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── 중앙화 벡터 아이콘 기본 스타일 ───────────────────────── */
.icon-svg {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  vertical-align: -0.18em;
  flex-shrink: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.icon-svg.sm {
  width: 0.95em;
  height: 0.95em;
}

.icon-svg.md {
  width: 1.25em;
  height: 1.25em;
}

.icon-svg.lg {
  width: 1.6em;
  height: 1.6em;
}

.icon-svg.xl {
  width: 2.2em;
  height: 2.2em;
}

/* ── 네온 아이콘 박스 (HUD 시그니처) ────────────────────────── */
.hud-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(0, 25, 45, 0.7);
  border: 1px solid var(--jjapvis-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.08);
}

.hud-icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.hud-icon-box:hover {
  transform: translateY(-2px);
  border-color: var(--hud-cyan);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.4), inset 0 0 12px rgba(0, 255, 255, 0.2);
}

/* ── 특화 색상별 아이콘 글로우 ──────────────────────────────── */
.icon-cyan {
  color: var(--hud-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.icon-green {
  color: var(--hud-green);
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.icon-purple {
  color: var(--hud-purple);
  filter: drop-shadow(0 0 8px rgba(176, 38, 255, 0.6));
}

.icon-amber {
  color: var(--hud-amber);
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
}

/* ── 파란 네온사인 텍스트 & 사이버 컷 코너 ─────────────────── */
.neon-text-blue {
  color: #00ffff !important;
  text-shadow: 0 0 8px #00ffff, 0 0 20px rgba(0, 255, 255, 0.45);
}

.neon-border-box {
  background: rgba(0, 15, 30, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.08);
}

.cyber-cut {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

/* ── 미니멀 네온 도트 인디케이터 (투박한 아이콘 대체) ────────── */
.neon-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  background-color: var(--hud-cyan);
  box-shadow: 0 0 8px var(--hud-cyan);
  vertical-align: middle;
}

.neon-dot.green {
  background-color: var(--hud-green);
  box-shadow: 0 0 8px var(--hud-green);
}

.neon-dot.amber {
  background-color: var(--hud-amber);
  box-shadow: 0 0 8px var(--hud-amber);
}

/* ── 짭비스 라이브 펄스 인디케이터 ──────────────────────────── */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hud-green);
  box-shadow: 0 0 10px var(--hud-green);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── 사이버네틱 스캔라인 애니메이션 ────────────────────────── */
.scanline-bar {
  position: relative;
  overflow: hidden;
}

.scanline-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: scanlineMove 3s infinite linear;
}

@keyframes scanlineMove {
  100% { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════════════════════
   조메트리(Xometry) 스타일 CAD 드롭존 & DFM 견적 포털
   ══════════════════════════════════════════════════════════════ */
.factory-dropzone {
  border: 2px dashed rgba(0, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(0, 15, 30, 0.7);
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.factory-dropzone:hover,
.factory-dropzone.dragover {
  border-color: #00ffff;
  background: rgba(0, 30, 55, 0.85);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.35), inset 0 0 15px rgba(0, 255, 255, 0.15);
  transform: translateY(-2px);
}

.format-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 2px 3px;
}

/* ── 샘플 도면 원클릭 체험 행 ─────────────────────────────── */
.sample-drawings-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sample-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  color: #e2e8f0;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sample-chip:hover {
  background: rgba(0, 255, 255, 0.15);
  border-color: #00ffff;
  color: #fff;
  transform: translateY(-1px);
}

/* ── 조메트리 DFM 결과 리포트 대시보드 ─────────────────────── */
.dfm-result-panel {
  background: rgba(0, 16, 32, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 255, 255, 0.08);
  animation: fadeIn 0.3s ease;
}

.dfm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dfm-badge-pass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid #00ff88;
  color: #00ff88;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.dfm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dfm-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.dfm-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 견적 매트릭스 테이블 ─────────────────────────────────── */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.quote-table th {
  text-align: left;
  color: #94a3b8;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.quote-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.quote-table tr:hover td {
  background: rgba(0, 255, 255, 0.05);
}

.price-highlight {
  color: #00ffff;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ── 발주처 탈플랫폼 방지 보안 락인 쉴드 ─────────────────────── */
.security-lockin-box {
  background: rgba(0, 30, 50, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-left: 4px solid #00f0ff;
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.security-lockin-box strong {
  color: #00f0ff;
}

/* ── 팩토리 발주 액션 버튼 ─────────────────────────────────── */
.factory-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-order-primary {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  color: #050811;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-order-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-order-sub {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-order-sub:hover {
  background: rgba(0, 255, 255, 0.12);
  border-color: #00ffff;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   퀀트(Quant) 알고리즘 트레이딩 차트 & 전략 대시보드
   ══════════════════════════════════════════════════════════════ */
.quant-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.quant-ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(0, 20, 38, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.quant-symbol-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.quant-symbol-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quant-symbol-chip:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  color: #fff;
}

.quant-symbol-chip.active {
  background: rgba(0, 35, 60, 0.9);
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.quant-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.quant-price-main {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.quant-price-change {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.quant-price-change.up {
  color: #ff3366;
}

.quant-price-change.down {
  color: #0088ff;
}

/* ── 캔들스틱 차트 컨테이너 ─────────────────────────────────── */
.quant-chart-container {
  background: rgba(0, 15, 30, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}

.quant-chart-canvas {
  width: 100%;
  height: 280px;
  display: block;
}

/* ── 기술 지표 매트릭스 ───────────────────────────────────── */
.quant-indicators-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.quant-ind-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.quant-ind-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.quant-ind-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #00f0ff;
}

/* ── 전략 생성 액션 바 ─────────────────────────────────────── */
.quant-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-quant-primary {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #00f0ff 0%, #00ff88 100%);
  color: #050811;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-quant-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.6);
}

.btn-quant-sub {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quant-sub:hover {
  background: rgba(0, 255, 255, 0.12);
  border-color: #00ffff;
  color: #fff;
}

/* ── 전략 분석 결과 스코어카드 ──────────────────────────────── */
.quant-strategy-result {
  background: rgba(0, 18, 36, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 255, 136, 0.06);
}

/* ══════════════════════════════════════════════════════════════
   파이낸스(Finance) 거시경제 & 밸류에이션 대시보드 스타일
   ══════════════════════════════════════════════════════════════ */
.finance-dashboard, .research-dashboard {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: calc(100vh - 180px);
  overflow-y: auto;
}

.macro-ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.macro-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  transition: all 0.2s ease;
}

.macro-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
}

.macro-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}

.macro-val {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
}

.macro-sub {
  font-size: 0.7rem;
  margin-top: 2px;
  font-weight: 600;
}

.dashboard-card {
  background: rgba(0, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}

.preset-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.preset-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover, .preset-chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.preset-chip.research-active {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

.dashboard-input {
  width: 100%;
  background: rgba(0, 20, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.dashboard-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.dashboard-input.research-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

.dashboard-actions-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-finance-primary {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-finance-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.6);
}

.btn-research-primary {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-research-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(236, 72, 153, 0.6);
}

.report-panel {
  background: rgba(0, 15, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  animation: fadeIn 0.3s ease;
}

.report-body-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre-wrap;
  max-height: 520px;
  overflow-y: auto;
}



