/* ===== Global Navigation ===== */
.global-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link--login {
  background: var(--primary);
  color: white;
}

.nav-link--login:hover {
  background: var(--primary-dark);
  color: white;
}

.nav-link--logout {
  color: var(--text-muted);
}

.nav-divider {
  color: var(--border);
  margin: 0 0.5rem;
}

.nav-user {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.nav-link--danger {
  color: var(--danger);
}

.nav-link--danger {
  color: var(--danger);
}

.nav-link--danger:hover {
  color: #fff;
  background: var(--danger);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg-card-alt);
}

/* mystock Web UI - Clean Professional Theme */

/* ===== CSS Variables ===== */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
#main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-btn--primary {
  background: var(--primary);
  color: white;
}

.hero-btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn--secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-btn--secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-help {
  max-width: 320px;
}

.help-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.help-icon {
  font-size: 1.25rem;
}

.help-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.help-content p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* ===== Quick Actions ===== */
.quick-actions {
  margin-bottom: 2rem;
}

.quick-actions h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-icon {
  font-size: 1.5rem;
}

.quick-title {
  font-weight: 600;
  color: var(--text-primary);
}

.quick-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Date Selection ===== */
.date-selection {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.date-selection h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0;
  border: none;
}

.date-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input[type="date"] {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-family);
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.recent-dates {
  margin-top: 1rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.date-chip {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.date-chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
}

.date-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

/* ===== Time Selection ===== */
.time-selection {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.time-selection h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0;
  border: none;
}

.section-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.time-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.time-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.time-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.time-card:hover .time-label,
.time-card:hover .time-date {
  color: white;
}

/* ===== Market Icon (KR/US) ===== */
.market-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  color: #fff;
}

.market-kr {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.market-us {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.time-card:hover .market-kr,
.time-card:hover .market-us {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.time-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Consolas', monospace;
}

.time-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== Stats Section ===== */
.stats-section {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  text-decoration: none;
}

/* ===== Recommendations Grid ===== */
.recommendations-section {
  margin-bottom: 2rem;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.rec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rec-symbol {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rec-market {
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  background: var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.rec-horizon {
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  background: var(--purple-light);
  border-radius: var(--radius-sm);
  color: var(--purple);
  font-weight: 600;
}

.rec-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.rec-price {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 600;
}

.rec-time {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rec-target {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

.rec-target.up {
  background: var(--success-light);
  color: #065f46;
}

.rec-target.down {
  background: var(--danger-light);
  color: #991b1b;
}

.rec-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.rec-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.rec-badge--buy {
  background: var(--success-light);
  color: #065f46;
}

.rec-badge--sell {
  background: var(--danger-light);
  color: #991b1b;
}

.rec-badge--hold {
  background: var(--warning-light);
  color: #92400e;
}

.rec-score {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Dates Section ===== */
.dates-section {
  margin-bottom: 2rem;
}

.dates-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.date-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.date-card:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  text-decoration: none;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== Detail Page ===== */
.detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-header-main {
  flex: 1;
}

.detail-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.detail-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Detail Navigation ===== */
.detail-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.nav-back {
  font-weight: 600;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.nav-links a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: white;
  text-decoration: none;
}

/* ===== Section Base ===== */
section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

/* ===== Summary Section ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.summary-horizon {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.summary-badge--buy {
  background: var(--success-light);
  color: #065f46;
}

.summary-badge--sell {
  background: var(--danger-light);
  color: #991b1b;
}

.summary-badge--hold {
  background: var(--warning-light);
  color: #92400e;
}

.summary-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-price-row,
.summary-score-row,
.summary-confidence-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.summary-score {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.summary-confidence {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Fundamental Section ===== */
.fundamental-section {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.fundamental-section h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fundamental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.fundamental-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fundamental-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fundamental-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== Chart Section ===== */
.chart-section {
  background: var(--bg-card);
}

.chart-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.chart-canvas {
  min-height: 400px;
}

.chart-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Strategy Section ===== */
.strategy-section {
  background: var(--bg-card);
}

.strategy-panel {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.strategy-panel-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.strategy-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.strategy-panel-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.strategy-panel-badges {
  display: flex;
  gap: 0.5rem;
}

.strategy-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.strategy-badge--buy {
  background: var(--success-light);
  color: #065f46;
}

.strategy-badge--sell {
  background: var(--danger-light);
  color: #991b1b;
}

.strategy-badge--hold {
  background: var(--warning-light);
  color: #92400e;
}

.strategy-panel-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.strategy-scores,
.strategy-reasons,
.strategy-risks {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.strategy-scores h4,
.strategy-reasons h4,
.strategy-risks h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-value {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.reason-list,
.risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reason-list li,
.risk-list li {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.reason-list li:last-child,
.risk-list li:last-child {
  border-bottom: none;
}

.risk-list li {
  color: #92400e;
}

/* ===== Utilities ===== */
.muted {
  color: var(--text-muted);
  font-style: italic;
}

.err {
  color: var(--danger);
  padding: 1rem;
  background: var(--danger-light);
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  main {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
  }
  
  .detail-nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-back {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .nav-links {
    justify-content: flex-start;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .score-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  section {
    padding: 1rem;
  }

  .chart-canvas {
    min-height: 300px;
  }

  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Day Page ===== */
.day-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.day-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.day-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.day-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.day-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
  border-bottom: none;
}

.day-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.rec-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.rec-item:hover .rec-item-symbol,
.rec-item:hover .rec-item-company,
.rec-item:hover .rec-item-price,
.rec-item:hover .rec-item-score {
  color: white;
}

.rec-item:hover .rec-item-badge {
  background: rgba(255,255,255,0.2);
  color: white;
}

.rec-item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.rec-item-symbol {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  min-width: 80px;
}

.rec-item-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-item-market {
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  background: var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.rec-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rec-item-price {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.rec-item-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--success-light);
  color: #065f46;
}

.rec-item-badge--sell {
  background: var(--danger-light);
  color: #991b1b;
}

.rec-item-badge--hold {
  background: var(--warning-light);
  color: #92400e;
}

.rec-item-score {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 600;
  color: var(--primary);
}

.rec-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== Run Page ===== */
.run-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.run-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.run-market-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.run-market-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
  border-bottom: none;
}

.run-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .run-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Run Header Actions ===== */
.run-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 1rem;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.sort-link:hover {
  color: var(--primary);
  background: var(--bg-card-alt);
}

.sort-link.active {
  color: #fff;
  background: var(--primary);
}

/* ===== Search Page ===== */
.search-page {
  max-width: 900px;
  margin: 0 auto;
}

.search-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.search-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.search-form {
  margin-bottom: 1.5rem;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-family);
  background: var(--bg-card);
  transition: border-color 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-select {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-family);
  background: var(--bg-card);
  cursor: pointer;
}

.search-result-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ===== Error Page ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 0;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0 1rem;
}

.error-message {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== Delete Page ===== */
.delete-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.delete-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.delete-header-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
}

.delete-header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.delete-header-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.delete-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 860px) {
  .delete-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.delete-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.delete-card:hover {
  box-shadow: var(--shadow-md);
}

.delete-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.delete-card--data .delete-card-header {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.delete-card--results .delete-card-header {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.delete-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delete-card--data .delete-card-icon {
  background: #3b82f6;
  color: #fff;
}

.delete-card--results .delete-card-icon {
  background: #f59e0b;
  color: #fff;
}

.delete-card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.delete-card-body {
  padding: 1.5rem;
}

.delete-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.delete-card-desc code {
  background: var(--bg-card-alt);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-family);
  background: var(--bg-page);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  align-self: flex-start;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: translateY(0);
}

/* ===== Alert ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

@media (max-width: 768px) {
  .delete-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .delete-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .btn-danger {
    width: 100%;
    justify-content: center;
  }
}
.rec-item-main .market-icon {
  width: 24px;
  height: 24px;
  font-size: 0.55rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ===== Run Stats Badges ===== */
.run-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.stat-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-buy {
  background: var(--success-light);
  color: #065f46;
}

.stat-sell {
  background: var(--danger-light);
  color: #991b1b;
}

.stat-hold {
  background: var(--warning-light);
  color: #92400e;
}

/* ===== Detail Page ===== */
.detail-index {
  font-size: inherit;
  color: var(--text-muted);
  font-weight: 400;
}

.detail-nav {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 1rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.detail-nav .nav-back {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-nav .nav-links {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  flex: 1;
  justify-content: flex-end;
}

.detail-nav .nav-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.detail-nav .nav-links a:hover {
  color: var(--primary);
  background: var(--bg-card-alt);
}

@media (max-width: 768px) {
  .detail-nav {
    flex-direction: column;
    align-items: flex-start;
    top: 48px;
  }

  .detail-nav .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .run-stats {
    flex-wrap: wrap;
  }

  .run-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-controls {
    justify-content: center;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .rec-grid {
    grid-template-columns: 1fr;
  }

  .rec-item-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .rec-item-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .time-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}

/* 캘린더 스타일 */
.calendar-section {
  margin: 2rem 0;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calendar-section h2 {
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.section-desc {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.calendar-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.calendar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.calendar-nav:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.calendar-nav--prev span,
.calendar-nav--next span {
  font-size: 0.75rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-header-grid {
  margin-bottom: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 80px;
}

.calendar-day:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.calendar-day--other-month {
  color: #cbd5e1;
  background: #f1f5f9;
  cursor: default;
}

.calendar-day--other-month:hover {
  background: #f1f5f9;
  border-color: transparent;
}

.calendar-day--today {
  border-color: #3b82f6;
  background: #eff6ff;
  font-weight: 700;
}

.calendar-day--has-data {
  background: #fff;
  border-width: 2px;
}

.calendar-day--kr {
  border-color: #3b82f6;
}

.calendar-day--us {
  border-color: #10b981;
}

.calendar-day--both {
  border-color: #8b5cf6;
}

.calendar-day-num {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.calendar-day-indicators {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.indicator-dot--kr {
  background: #3b82f6;
}

.indicator-dot--us {
  background: #10b981;
}

.calendar-day-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.calendar-day--has-data:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot--kr {
  background: #3b82f6;
}

.legend-dot--us {
  background: #10b981;
}

.legend-dot--both {
  background: linear-gradient(135deg, #3b82f6 50%, #10b981 50%);
}

.legend-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.legend-label {
  font-size: 0.875rem;
  color: #64748b;
}

/* 최근 날짜 섹션 */
.recent-dates-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.recent-dates-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #475569;
}

.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.date-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.date-chip:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.date-chip.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* 반응형 */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 60px;
    padding: 0.25rem;
  }
  
  .calendar-day-num {
    font-size: 0.875rem;
  }
  
  .calendar-day-count {
    font-size: 0.625rem;
    padding: 0.0625rem 0.375rem;
  }
  
  .calendar-legend {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* 기술적 지표 요약 스타일 */
.tech-summary-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.tech-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #cbd5e1;
}

.tech-summary-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-summary-icon {
  font-size: 1.5rem;
}

.tech-summary-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.tech-summary-date {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  background: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

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

.tech-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s;
  min-height: 100px;
}

.tech-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tech-card--highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  min-height: 120px;
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.tech-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tech-card-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.tech-card-badge.tech-overbought {
  background: #fecaca;
  color: #dc2626;
}

.tech-card-badge.tech-oversold {
  background: #bbf7d0;
  color: #16a34a;
}

.tech-card-badge.tech-neutral,
.tech-card-badge.tech-positive,
.tech-card-badge.tech-negative {
  background: #e2e8f0;
  color: #475569;
}

.tech-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.25rem 0;
  word-break: break-word;
}

.tech-card--highlight .tech-card-value {
  font-size: 1.75rem;
  color: #1e40af;
}

.tech-card-value.tech-overbought {
  color: #dc2626;
}

.tech-card-value.tech-oversold {
  color: #16a34a;
}

.tech-card-value.tech-positive {
  color: #16a34a;
}

.tech-card-value.tech-negative {
  color: #dc2626;
}

.tech-card-desc {
  font-size: 0.625rem;
  color: #94a3b8;
  margin: 0.25rem 0 0 0;
  font-weight: 500;
}

/* 전략 섹션 4, 5 번 스타일 통일 */
.strategy-technicals,
.strategy-fundamentals {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

.strategy-technicals h4,
.strategy-fundamentals h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 0.25rem;
}

.tech-detail-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.tech-detail-grid,
.fundamental-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tech-detail-item,
.fundamental-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.tech-detail-item:hover,
.fundamental-detail-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.tech-detail-label,
.fundamental-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tech-detail-value,
.fundamental-detail-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  word-break: break-word;
}

.tech-detail-value.tech-overbought,
.tech-detail-value.tech-positive,
.fundamental-detail-value.good {
  color: #16a34a;
}

.tech-detail-value.tech-oversold,
.tech-detail-value.tech-negative,
.fundamental-detail-value.warning {
  color: #dc2626;
}

.tech-detail-desc,
.fundamental-detail-desc {
  font-size: 0.625rem;
  color: #94a3b8;
  font-weight: 500;
}

.tech-signal {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.tech-signal--buy {
  background: #bbf7d0;
  color: #16a34a;
}

.tech-signal--sell {
  background: #fecaca;
  color: #dc2626;
}

.tech-signal--neutral {
  background: #e2e8f0;
  color: #475569;
}

.tech-help,
.score-help {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #1e40af;
  line-height: 1.5;
}

.tech-help strong,
.score-help strong {
  color: #1e3a8a;
}

/* 반응형 */
@media (max-width: 768px) {
  .tech-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-card--highlight {
    grid-column: span 2;
  }
  
  .tech-detail-grid,
  .fundamental-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 데이터 없는 날짜 스타일 */
.calendar-day--no-data {
  background: #f8fafc;
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-day--no-data:hover {
  background: #f8fafc;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.calendar-day-count--empty {
  color: #cbd5e1;
  font-weight: 400;
}

/* 데이터 있는 날짜 강조 */
.calendar-day--has-data {
  cursor: pointer;
  background: #fff;
  border-width: 2px;
}

.calendar-day--has-data:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.calendar-day--kr:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.calendar-day--us:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.calendar-day--both:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
}

/* 인디케이터 스타일 개선 */
.calendar-day-indicators {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  justify-content: center;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.indicator-dot--kr {
  background: #3b82f6;
  box-shadow: 0 0 4px #3b82f6;
}

.indicator-dot--us {
  background: #10b981;
  box-shadow: 0 0 4px #10b981;
}

.calendar-day-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 9999px;
  min-width: 20px;
  text-align: center;
}

/* 툴팁 스타일 */
.calendar-day[title] {
  position: relative;
}

.calendar-day--has-data:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

/* Calendar grid layout */
.calendar-body-grid {
  gap: 6px;
  margin-bottom: 1rem;
}

.calendar-day {
  min-height: 80px;
  padding: 8px;
}

/* Ensure calendar renders even with no data */
.calendar-section {
  display: block;
  visibility: visible;
}

.calendar-wrapper {
  display: block;
}

.calendar-header {
  display: flex;
}

.calendar-header-grid {
  display: grid;
}

/* 전략 패널 박스 높이 통일 */
.strategy-panel-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.strategy-panel-body > div {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.strategy-technicals,
.strategy-fundamentals {
  margin-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.strategy-technicals h4,
.strategy-fundamentals h4 {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.tech-detail-box,
.fundamental-detail-grid {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tech-detail-grid,
.fundamental-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tech-detail-item,
.fundamental-detail-item {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100px;
}

.tech-help,
.score-help,
.fundamental-detail-desc {
  margin-top: auto;
}

/* 뉴스 섹션 */
.news-section {
  margin-bottom: 2rem;
}

.news-section h2 {
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-size: 1.5rem;
}

.news-sentiment-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-sentiment-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.news-sentiment-inline .news-sentiment-label {
  font-weight: 600;
  color: #475569;
}

.news-sentiment-inline .news-sentiment-summary {
  color: #64748b;
  font-size: 0.8rem;
}

.news-sentiment-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.news-sentiment-positive {
  background: #dcfce7;
  color: #166534;
}

.news-sentiment-negative {
  background: #fee2e2;
  color: #991b1b;
}

.news-sentiment-neutral {
  background: #f1f5f9;
  color: #475569;
}

.news-summary-text {
  color: #64748b;
  font-size: 0.875rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.news-source {
  font-size: 0.75rem;
  color: #64748b;
}

.news-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.news-title a {
  color: #1e40af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.news-title a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-summary {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.news-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.news-keywords {
  display: flex;
  gap: 0.25rem;
}

.news-keyword {
  padding: 0.125rem 0.5rem;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
}

@media (max-width: 640px) {
  .news-sentiment-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-item {
    padding: 0.75rem;
  }

  .news-item-header {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* 공시 섹션 */
.disclosure-section {
  margin-bottom: 2rem;
}

.disclosure-section h2 {
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-size: 1.5rem;
}

.disclosure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.disclosure-item {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #facc15;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.disclosure-item a {
  color: #1e293b;
  text-decoration: none;
}

.disclosure-item a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 뉴스 섹션 */
.news-section {
  margin-bottom: 2rem;
}

.news-section h2 {
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-size: 1.5rem;
}

.news-summary {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.sentiment-positive {
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.sentiment-negative {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.news-item a {
  color: #1e293b;
  text-decoration: none;
  flex: 1;
}

.news-item a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.news-meta {
  color: #64748b;
  font-size: 0.8rem;
}

.sentiment-badge {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.sentiment-badge.positive {
  background: #dcfce7;
  color: #166534;
}

.sentiment-badge.negative {
  background: #fee2e2;
  color: #991b1b;
}

.sentiment-badge.neutral {
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 768px) {
  .news-item {
    font-size: 0.85rem;
  }
}

/* 종합 전략 분석 섹션 */
.summary-section {
  margin-bottom: 2rem;
}

.summary-section h2 {
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-size: 1.5rem;
}

.summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-card--buy {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.summary-card--sell {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.summary-card--hold {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.summary-icon {
  font-size: 2rem;
}

.summary-title h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #1e293b;
}

.summary-score {
  background: #1e293b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
}

.summary-score .score-value {
  font-size: 1.25rem;
  color: white !important;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.summary-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-item .summary-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.summary-item .summary-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.summary-value.buy {
  color: #22c55e;
}

.summary-value.sell {
  color: #ef4444;
}

.summary-value.hold {
  color: #f59e0b;
}

.summary-value small {
  font-size: 0.875rem;
  font-weight: normal;
  color: #64748b;
  margin-left: 0.5rem;
}

.summary-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.summary-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.summary-reasons .reason-item {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.summary-reasons .positive-item {
  border-left: 3px solid #22c55e;
}

.summary-reasons .negative-item {
  border-left: 3px solid #ef4444;
}

.summary-reasons .reason-icon {
  font-weight: bold;
  font-size: 1rem;
}

.positive-item .reason-icon {
  color: #22c55e;
}

.negative-item .reason-icon {
  color: #ef4444;
}

.summary-reason-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.7;
  color: #334155;
  font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
  .summary-row {
    grid-template-columns: 1fr;
  }
  
  .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* 최종 추천 카드 */
.final-recommendation-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.final-recommendation-card--buy {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.final-recommendation-card--sell {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.final-recommendation-card--hold {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.final-rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.final-rec-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.final-rec-icon {
  font-size: 2rem;
}

.final-rec-title h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #1e293b;
}

.final-rec-score {
  background: #1e293b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
}

.final-rec-score .score-value {
  font-size: 1.25rem;
  color: white !important;
}

.final-rec-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Two-column layout for short-term and medium-long term */
.final-rec-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.final-rec-column {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.final-rec-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.final-rec-column-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.final-rec-column-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.final-rec-column-badge.buy {
  background: #dcfce7;
  color: #166534;
}

.final-rec-column-badge.sell {
  background: #fee2e2;
  color: #991b1b;
}

.final-rec-column-badge.hold {
  background: #fef3c7;
  color: #92400e;
}

.final-rec-strategy-details {
  margin-bottom: 0.5rem;
}

/* 추천 가격 요약 섹션 */
.final-rec-price-summary {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #cbd5e1;
}

.final-rec-price-summary-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.final-rec-price-summary-value {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.final-rec-price-summary-current,
.final-rec-price-summary-target,
.final-rec-price-summary-stop {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.final-rec-price-summary-current::before {
  content: "📌";
  font-size: 0.75rem;
}

.final-rec-price-summary-target::before {
  content: "🎯";
  font-size: 0.75rem;
}

.final-rec-price-summary-stop::before {
  content: "🛡️";
  font-size: 0.75rem;
}

.final-rec-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.final-rec-price-item {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.final-rec-price-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.final-rec-price-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.final-rec-factors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.final-rec-factor-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.final-rec-factor-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.final-rec-factor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.final-rec-factor-item {
  background: #f8fafc;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.final-rec-factor-item.positive-item {
  border-left: 3px solid #22c55e;
}

.final-rec-factor-item.negative-item {
  border-left: 3px solid #ef4444;
}

.final-rec-factor-item .reason-icon {
  font-weight: bold;
  font-size: 0.875rem;
}

.final-rec-no-data {
  color: #94a3b8;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.market-closed-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #856404;
}

.market-closed-notice .notice-icon {
  font-size: 18px;
}

.final-rec-reason-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.final-rec-reason-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  line-height: 1.6;
  color: #475569;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

.final-rec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.final-rec-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.final-rec-item .final-rec-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.final-rec-item .final-rec-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.final-rec-value.buy {
  color: #22c55e;
}

.final-rec-value.sell {
  color: #ef4444;
}

.final-rec-value.hold {
  color: #f59e0b;
}

.final-rec-value small {
  font-size: 0.875rem;
  font-weight: normal;
  color: #64748b;
  margin-left: 0.5rem;
}

.final-rec-section {
  margin-top: 1rem;
}

.final-rec-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.final-rec-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.final-rec-reason-item {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.final-rec-reason-item.positive-item {
  border-left: 3px solid #22c55e;
}

.final-rec-reason-item.negative-item {
  border-left: 3px solid #ef4444;
}

.final-rec-reason-item .reason-icon {
  font-weight: bold;
  font-size: 1rem;
}

.positive-item .reason-icon {
  color: #22c55e;
}

.negative-item .reason-icon {
  color: #ef4444;
}

.final-rec-reason-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.7;
  color: #334155;
  font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
  .final-rec-columns {
    grid-template-columns: 1fr;
  }
  
  .final-rec-column {
    padding: 1rem;
  }
  
  .final-rec-price-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .final-rec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ===== Intraday Section ===== */
.intraday-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.intraday-card {
  padding: 1.25rem;
  border-radius: 8px;
  background: #f8fafc;
}

.intraday-card--buy {
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
}

.intraday-card--sell {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.intraday-card--hold {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.intraday-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.intraday-label {
  font-size: 1.25rem;
  font-weight: 700;
}

.intraday-card--buy .intraday-label { color: #16a34a; }
.intraday-card--sell .intraday-label { color: #dc2626; }
.intraday-card--hold .intraday-label { color: #d97706; }

.intraday-score {
  font-weight: 600;
  color: var(--text-secondary);
}

.intraday-time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.intraday-price {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.intraday-reasons, .intraday-risks {
  margin-top: 0.75rem;
}

.intraday-reasons h4, .intraday-risks h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.intraday-reasons ul, .intraday-risks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intraday-reasons li {
  color: #16a34a;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.intraday-risks li {
  color: #dc2626;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
