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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #2d3748;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00d4ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.market-status {
    padding: 8px 16px;
    background: #22c55e;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.last-update {
    color: #94a3b8;
    font-size: 0.9rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.priority-alerts {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.priority-alerts h2 {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-alerts h2::before {
    content: "🔥";
    font-size: 1.2rem;
}

.alert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.priority-alert {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #fbbf24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.content-river {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

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

.river-header h2 {
    color: #00d4ff;
    font-size: 1.4rem;
}

.refresh-btn {
    background: linear-gradient(45deg, #00d4ff, #0ea5e9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.river-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.river-container::-webkit-scrollbar {
    width: 6px;
}

.river-container::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 3px;
}

.river-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #0ea5e9);
    border-radius: 3px;
}

.update-item {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #00d4ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-item:hover {
    transform: translateX(5px);
    background: rgba(30, 41, 59, 0.9);
}

.update-item.breaking {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.update-item.earnings {
    border-left-color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.update-item.movers {
    border-left-color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.update-item.ideas {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

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

.update-type {
    background: #374151;
    color: #e5e7eb;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    upper-case;
}

.update-time {
    color: #94a3b8;
    font-size: 0.8rem;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f8fafc;
}

.update-content {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 10px;
}

.update-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.chart-container {
    margin: 15px 0;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    max-height: 300px;
}

.chart-container canvas {
    max-height: 250px !important;
}

.stock-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.metric {
    text-align: center;
    padding: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 6px;
}

.metric-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.opportunity-badge {
    display: inline-block;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
}

.analyst-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.rating-stars {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.watchlist, .customization {
    background: rgba(30, 41, 59, 0.5);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.watchlist h3, .customization h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.watchlist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.watchlist-item:hover {
    background: rgba(30, 41, 59, 0.9);
}

.symbol {
    font-weight: 700;
    color: #f8fafc;
}

.price {
    color: #22c55e;
    font-weight: 600;
}

.price.negative {
    color: #dc2626;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.filter-options label:hover {
    background: rgba(15, 23, 42, 0.8);
}

.filter-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00d4ff;
}

/* Index Page Styles */
.header-tagline {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 10px;
    text-align: center;
}

.hero {
    text-align: center;
    margin: 40px 0;
}

.hero h2 {
    color: #f8fafc;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.earnings-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.earnings-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.earnings-card.premium {
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

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

.card-header h3 {
    color: #f8fafc;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-type {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.premium .card-type {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.card-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.card-features span {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-link {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #0ea5e9);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.premium .card-link {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.premium .card-link:hover {
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.philosophy {
    margin: 60px 0;
    text-align: center;
}

.philosophy h2 {
    color: #f8fafc;
    font-size: 2rem;
    margin-bottom: 40px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.philosophy-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.philosophy-item h3 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.philosophy-item p {
    color: #cbd5e1;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .priority-alerts {
        margin-bottom: 15px;
    }
    
    .alert-container {
        grid-template-columns: 1fr;
    }

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

    .hero h2 {
        font-size: 1.8rem;
    }

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