.hero-section { text-align: center; padding: 3rem 0; margin-bottom: 3rem; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: #666; margin-bottom: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.feature-card { background: #1a1a2e; padding: 1.5rem; border-radius: 12px; border: 1px solid #e2e8f0; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #1a1a2e; padding: 1.5rem; border-radius: 12px; border: 1px solid #e2e8f0; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-card.highlight { background: #0099cc; color: #0099cc; }
.stat-value { font-size: 2rem; font-weight: bold; margin-bottom: 0.5rem; color: white;}
.stat-label { font-size: 0.9rem; color: #666; }
.stat-card.highlight .stat-label { color: rgba(251, 0, 0, 0.9); }

.stocks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stock-card { background: #1a1a2e; border-radius: 12px; padding: 1.5rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.stock-symbol { font-size: 1.3rem; font-weight: bold; margin: 0; }
.value-score { font-size: 0.9rem; padding: 0.3rem 0.8rem; border-radius: 20px; background: #1a1a2e; font-weight: 600; }

.stock-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.metric { display: flex; flex-direction: column; }
.metric-label { font-size: 0.75rem; color: #666; text-transform: uppercase; margin-bottom: 0.2rem; }
.metric-value { font-size: 1rem; font-weight: 600; }
.metric-value.positive { color: #28a745; }
.metric-value.negative { color: #dc3545; }
.metric-value.oversold { color: #dc3545; font-weight: bold; }

.stock-signals { margin-bottom: 1rem; }
.signal { font-size: 0.85rem; color: #666; padding: 0.3rem 0; border-bottom: 1px solid #e2e8f0; }
.signal:last-child { border-bottom: none; }

.confidence-bar { height: 6px; background: #1a1a2e; border-radius: 3px; overflow: hidden; margin-bottom: 0.3rem; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, #007bff 0%, #28a745 100%); }
.confidence-text { font-size: 0.8rem; color: #666; }

.view-analysis-btn { display: block; width: 100%; padding: 0.6rem; text-align: center; background: #007bff; color: white; text-decoration: none; border-radius: 8px; font-weight: 500; }
.view-analysis-btn:hover { background: #0056b3; }

.table-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-input, .sort-select { padding: 0.6rem 1rem; border: 1px solid #1a1a2e; border-radius: 8px; font-size: 1rem; }
.search-input { flex: 1; min-width: 200px; }

.table-responsive { overflow-x: auto; margin-bottom: 3rem; }
.stocks-table { width: 100%; border-collapse: collapse; background: #1a1a2e; }
.stocks-table thead { background: #1a1a2e; }
.stocks-table th, .stocks-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.stocks-table tbody tr:hover { background: #1a1a2e; }

.symbol-link { color: #b8daff; text-decoration: none; font-weight: 600; }
.symbol-link:hover { text-decoration: underline; }

.score-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }
.score-badge.excellent-value { background: #d4edda; color: #155724; }
.score-badge.good-value { background: #cce5ff; color: #004085; }
.score-badge.fair-value { background: #fff3cd; color: #856404; }

.position-info { display: flex; flex-direction: column; font-size: 0.85rem; }
.from-low { color: #28a745; }
.from-high { color: #dc3545; }

.signal-tag { display: inline-block; padding: 0.2rem 0.6rem; background: #1a1a2e; border-radius: 12px; font-size: 0.75rem; color: #666; margin-right: 0.3rem; }

.action-btn { display: inline-block; padding: 0.4rem 1rem; background: #007bff; color: white; text-decoration: none; border-radius: 4px; font-size: 0.9rem; }
.action-btn:hover { background: #0056b3; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.info-card { background: #1a1a2e; padding: 1.5rem; border-radius: 8px; border: 1px solid #e2e8f0; }

.disclaimer { background: #1a1a2e; border: 1px solid #fecaca; border-radius: 8px; padding: 1.5rem; margin-top: 2rem; }
.disclaimer h3 { color: #dc3545; margin-bottom: 0.5rem; }

.loading { text-align: center; padding: 2rem; color: #666; }
.no-data { text-align: center; padding: 2rem; color: #999; }

.value-categories {
  padding-top: 50px;
}
.category-section {
  padding: 20px 40px;
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .stocks-grid { grid-template-columns: 1fr; }
    .table-controls { flex-direction: column; }
    .search-input, .sort-select { width: 100%; }
}