/* 
  OraclePick Financial AI - Ultra Premium Dark & Gold Theme
  Full Responsive Design System 
*/

:root {
  --bg-dark: #070a12;
  --bg-secondary: #0e1526;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-inner: rgba(30, 41, 59, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(251, 191, 36, 0.3);
  --border-cyan: rgba(56, 189, 248, 0.3);

  --accent-gold: #fbbf24;
  --accent-gold-dark: #d97706;
  --accent-cyan: #38bdf8;
  --accent-green: #34d399;
  --accent-purple: #c084fc;
  --accent-red: #f87171;

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-eng: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(251, 191, 36, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(192, 132, 252, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  padding: 24px 16px 80px 16px;
  display: flex;
  justify-content: center;
}

.app-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-badge {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #000;
  font-family: var(--font-eng);
  font-weight: 900;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.brand-header h1 {
  font-size: 20px;
  font-weight: 800;
}

.brand-header h1 span {
  font-size: 12px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}

.header-badges {
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.badge-free {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-value {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
}

.badge-shield {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-sub);
  border: 1px solid var(--border-glass);
}

/* Top Ad Banner */
.ad-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ad-banner-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.ad-badge-tag {
  font-size: 10px;
  font-weight: 800;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  margin: 0 16px;
}

.ad-banner-content p {
  font-size: 13px;
  color: #f1f5f9;
}

.ad-banner-content p strong {
  color: var(--accent-gold);
}

.ad-cta-btn {
  font-size: 12px;
  font-weight: 800;
  color: #000;
  background: linear-gradient(135deg, #c084fc, #38bdf8);
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Middle Native Ad Banner (Coupang Partners) */
.ad-banner-middle-premium {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(15, 23, 42, 0.95));
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ad-mid-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-mid-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
}

.ad-rec-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.ftc-tag {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.ad-mid-body-vip {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ad-mid-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.book-icon {
  font-size: 36px;
}

.rocket-badge {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.ad-mid-info-vip {
  flex: 1;
}

.ad-mid-info-vip h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.ad-mid-info-vip p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.book-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-chip {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fef08a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.book-chip:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.ad-mid-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.ad-mid-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* FTC Clear Legal Notice Box */
.ad-ftc-bottom {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
}

.ad-ftc-bottom p {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* Bottom B2B Promo Banner */
.ad-banner-bottom {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ad-banner-bottom:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.ad-tag-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.ad-bottom-left h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.ad-bottom-left p {
  font-size: 12px;
  color: var(--text-sub);
}

.ad-btn-glow {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-block;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 36px 20px 20px 20px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-cyan);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.gradient-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-sub);
  max-width: 780px;
  margin: 0 auto;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-num {
  font-family: var(--font-eng);
  font-weight: 900;
  font-size: 11px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 800;
}

/* Quick Chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.chip.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(56, 189, 248, 0.2));
  color: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

/* Search Bar */
.search-bar-row {
  display: flex;
  gap: 12px;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  color: var(--text-muted);
}

.input-with-icon input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 16px 14px 44px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.btn-search {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 800;
  padding: 0 24px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
}

/* Dashboard Top Bar */
.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

.stock-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.stock-title-row h2 {
  font-size: 26px;
  font-weight: 800;
}

.stock-code-tag {
  font-family: var(--font-eng);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.stock-sector-tag {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-card-inner);
  padding: 3px 8px;
  border-radius: 6px;
}

.stock-current-price {
  font-size: 14px;
  color: var(--text-sub);
}

.stock-current-price strong {
  color: var(--text-main);
}

.health-grade-box {
  text-align: right;
}

.grade-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.grade-badge {
  font-family: var(--font-eng);
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.grade-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
}

/* 4 Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.m-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-green);
  background: rgba(52, 211, 153, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.m-value {
  font-family: var(--font-eng);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.m-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Chart & Table Dual Grid */
.analysis-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-container-box, .table-container-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 20px;
}

.box-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.box-title-row h4 {
  font-size: 14px;
  font-weight: 700;
}

.unit-text {
  font-size: 11px;
  color: var(--text-muted);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
}

.table-scroll {
  overflow-x: auto;
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fin-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-sub);
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border-glass);
}

.fin-table th:first-child {
  text-align: left;
}

.fin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: right;
  font-family: var(--font-eng);
  color: #e2e8f0;
}

.fin-table td:first-child {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-sub);
}

/* 3-Line AI Verdict */
.ai-verdict-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 18px 20px;
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ai-chip {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.verdict-time {
  font-size: 11px;
  color: var(--text-muted);
}

.verdict-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.verdict-content p:last-child {
  margin-bottom: 0;
}

/* Strategy Tabs */
.strategy-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.strat-tab {
  flex: 1;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strat-tab:hover {
  background: rgba(251, 191, 36, 0.1);
  color: var(--text-main);
}

.strat-tab.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.strat-hero {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(15, 23, 42, 0.6));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.strat-hero h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.strat-hero p {
  font-size: 13px;
  color: var(--text-sub);
}

.strat-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.strat-point-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
}

.point-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 6px;
}

.strat-point-box h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.strat-point-box p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Compound Calculator Box Styles */
.calc-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.calc-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold);
}

.calc-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-input-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input-box label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-input-row input {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--border-cyan);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-eng);
  font-size: 18px;
  font-weight: 800;
}

.calc-input-row .unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
}

.quick-amt-btns {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-amt {
  flex: 1;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-amt:hover, .btn-amt.active {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

/* 4-Period Comparative Grid */
.compound-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.comp-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease;
}

.comp-box:hover {
  transform: translateY(-2px);
}

.comp-year-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
}

.comp-total-amt {
  font-family: var(--font-eng);
  font-size: 20px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
}

.gold-amt {
  color: #fbbf24 !important;
}

.diamond-amt {
  color: #c084fc !important;
}

.comp-sub-row {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.comp-sub-row strong {
  color: #e2e8f0;
}

.profit-text strong {
  color: var(--accent-green) !important;
}

.comp-multi-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px;
  border-radius: 6px;
  text-align: center;
  margin-top: 4px;
}

.gold-badge {
  color: #000;
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
}

.diamond-badge {
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
}

/* Compound Chart */
.compound-chart-wrapper {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
}

.comp-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comp-chart-header h5 {
  font-size: 13px;
  font-weight: 700;
}

.comp-chart-legend {
  font-size: 11px;
  color: var(--text-muted);
}

.comp-canvas {
  height: 220px !important;
}

/* Buffett Insight Box */
.buffett-insight-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bi-icon {
  font-size: 24px;
}

.bi-text {
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
}

.bi-text strong {
  color: var(--accent-gold);
}

/* Download Section */
.download-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.pdf-mockup {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
}

.pdf-tag {
  font-family: var(--font-eng);
  font-weight: 900;
  font-size: 12px;
  color: #0f172a;
}

.pdf-status {
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
}

.pdf-mockup h4 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.pdf-features-list {
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdf-mock-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Form Styles */
.form-container h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.req {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.age-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.age-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-radio-label:hover {
  background: var(--bg-card-inner);
}

.age-radio-label input[type="radio"]:checked + span {
  color: var(--accent-gold);
  font-weight: 700;
}

.btn-download-pdf {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-download-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}

/* Legal Disclaimer Footer */
.legal-footer {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  margin-top: 20px;
}

.disclaimer-badge-row {
  margin-bottom: 12px;
}

.disc-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 6px;
}

.disclaimer-text-box p {
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 8px;
}

.disc-en {
  font-size: 11px !important;
  color: #64748b !important;
  font-style: italic;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile Responsive Overhaul (Smartphones & Tablets) */
@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-visual-grid {
    grid-template-columns: 1fr;
  }

  .strat-points-grid {
    grid-template-columns: 1fr;
  }

  .download-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px 8px calc(40px + env(safe-area-inset-bottom)) 8px;
  }

  .app-wrapper {
    gap: 16px;
  }

  .brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .brand-header h1 {
    font-size: 17px;
  }

  .brand-logo-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .header-badges {
    flex-wrap: wrap;
    gap: 6px;
  }

  .badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero-section {
    padding: 16px 10px 8px 10px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .glass-card {
    padding: 16px;
    border-radius: 18px;
  }

  .card-header h3 {
    font-size: 15px;
  }

  .quick-chips {
    gap: 6px;
    margin-bottom: 14px;
  }

  .chip {
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 10px;
  }

  .search-bar-row {
    flex-direction: column;
    gap: 8px;
  }

  .input-with-icon input {
    padding: 12px 14px 12px 38px;
    font-size: 14px;
  }

  .search-icon {
    left: 12px;
  }

  .btn-search {
    padding: 12px;
    font-size: 14px;
    width: 100%;
    border-radius: 12px;
  }

  .dashboard-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .stock-title-row h2 {
    font-size: 20px;
  }

  .health-grade-box {
    text-align: left;
    background: rgba(30, 41, 59, 0.4);
    padding: 8px 12px;
    border-radius: 10px;
    width: 100%;
  }

  .grade-badge {
    font-size: 22px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .metric-box {
    padding: 12px;
    border-radius: 12px;
  }

  .m-title {
    font-size: 11px;
  }

  .m-value {
    font-size: 19px;
  }

  .m-desc {
    font-size: 10px;
  }

  .canvas-wrapper {
    height: 200px;
  }

  .chart-container-box, .table-container-box {
    padding: 14px;
    border-radius: 14px;
  }

  .fin-table {
    font-size: 12px;
  }

  .fin-table th, .fin-table td {
    padding: 7px 8px;
  }

  .strategy-tabs {
    flex-direction: column;
    gap: 6px;
  }

  .strat-tab {
    font-size: 13px;
    padding: 10px;
    border-radius: 10px;
  }

  .strat-hero {
    padding: 14px;
    border-radius: 12px;
  }

  .strat-point-box {
    padding: 12px;
    border-radius: 12px;
  }

  .pdf-mockup {
    padding: 16px;
    border-radius: 14px;
  }

  .pdf-mockup h4 {
    font-size: 15px;
  }

  .pdf-features-list {
    font-size: 12px;
  }

  .form-container h4 {
    font-size: 15px;
  }

  .form-sub {
    font-size: 12px;
  }

  .ad-mid-body-vip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ad-mid-cta-btn {
    width: 100%;
    text-align: center;
  }

  .btn-download-pdf {
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  .legal-footer {
    padding: 16px;
    border-radius: 16px;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .m-value {
    font-size: 17px;
  }
}

/* Live Dot Pulse Animation */
.live-dot-pulse {
  display: inline-block;
  font-size: 9px;
  animation: livePulseAnim 1.2s infinite ease-in-out;
}
@keyframes livePulseAnim {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
  100% { transform: scale(0.85); opacity: 0.5; }
}

/* High-Definition A4 Printable Template Styles (100% Crisp Korean Font) */
.pdf-a4-page {
  width: 794px;
  min-height: 1123px;
  height: 1123px;
  background: #0f172a;
  color: #f8fafc;
  padding: 36px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pdf-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: #fbbf24;
}

.pdf-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.pdf-brand-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: -0.5px;
}

.pdf-meta-text {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.pdf-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 12px 0 16px 0;
}

.pdf-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.pdf-stock-card {
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pdf-stock-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pdf-stock-title-row h2 {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.pdf-badge-gold {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid #fbbf24;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.pdf-stock-sub {
  font-size: 13px;
  color: #38bdf8;
  font-weight: 600;
}

.pdf-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pdf-metric-box {
  background: #1e293b;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pdf-m-lbl {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}

.pdf-m-val {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.pdf-m-val.gold { color: #fbbf24; }
.pdf-m-val.cyan { color: #38bdf8; }
.pdf-m-val.green { color: #34d399; }

.pdf-m-sub {
  font-size: 11px;
  color: #cbd5e1;
}

.pdf-sec-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pdf-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.pdf-verdict-list {
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
}

.pdf-verdict-list p {
  margin: 0 0 6px 0;
}

.pdf-bullet-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #e2e8f0;
}

.pdf-strat-content {
  font-size: 12px;
  line-height: 1.7;
  color: #e2e8f0;
}

.pdf-disclaimer-box {
  background: #000;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 14px 18px;
  margin-top: auto;
}

.pdf-footer {
  margin-top: 10px;
  font-size: 10px;
  color: #64748b;
  text-align: center;
}


