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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0f1e;
    color: #e2e8f0;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.brand-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e2e8f0;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Hero */
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 60px 40px 40px;
    gap: 40px;
    background: linear-gradient(135deg, #0a0f1e 0%, #0f1f3d 100%);
    border-bottom: 1px solid #1e293b;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-text p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

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

.badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.python {
    background: rgba(59, 130, 246, 0.15);
    color: #6097f8;
    border-color: rgba(59, 130, 246, 0.3);
}

.badge.bs4 {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge.play {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

.badge.pandas {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-shrink: 0;
}

.stat-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 20px 24px;
    text-align: center;
    min-width: 140px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.highlight {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

.stat-card.highlight .stat-num {
    color: #10b981;
}

.stat-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    padding: 32px 40px;
    gap: 24px;
    align-items: start;
}

/* Panel */
.panel {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #1e293b;
}

.panel-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.count-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #6097f8;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product List */
.product-list {
    padding: 8px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background 0.2s;
    cursor: pointer;
}

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

.product-item.drop {
    border-left: 3px solid #10b981;
    padding-left: 9px;
}

.product-thumb {
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.product-site {
    font-size: 0.72rem;
    color: #64748b;
}

.product-price {
    text-align: right;
}

.price-current {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.price-change {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 2px;
}

.price-change.down {
    color: #10b981;
}

.price-change.up {
    color: #f87171;
}

.price-change.neutral {
    color: #64748b;
}

/* Right panels */
.right-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chart */
.chart-panel .chart-wrapper {
    padding: 20px;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 180px;
    display: block;
}

.chart-tabs {
    display: flex;
    gap: 4px;
}

.tab {
    background: transparent;
    border: 1px solid #1e293b;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.tab.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.tab:hover:not(.active) {
    border-color: #334155;
    color: #94a3b8;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #475569;
    font-weight: 500;
    margin-top: 6px;
}

.price-labels {
    position: absolute;
    right: 20px;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    font-size: 0.67rem;
    color: #475569;
    font-weight: 500;
    text-align: right;
}

/* Alerts */
.alert-list {
    padding: 10px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid transparent;
    transition: all 0.2s;
}

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

.alert-drop {
    border-color: rgba(16, 185, 129, 0.15);
}

.alert-rise {
    border-color: rgba(248, 113, 113, 0.15);
}

.alert-back {
    border-color: rgba(59, 130, 246, 0.15);
}

.alert-icon {
    font-size: 1.1rem;
}

.alert-body {
    flex: 1;
}

.alert-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.alert-detail {
    font-size: 0.72rem;
    color: #64748b;
}

.alert-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.alert-tag.drop {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.alert-tag.rise {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.alert-tag.stock {
    background: rgba(59, 130, 246, 0.15);
    color: #6097f8;
}

/* Footer */
.tech-footer {
    padding: 28px 40px;
    border-top: 1px solid #1e293b;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
}

.tech-title {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tech-tags span {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #1e293b;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tech-credit {
    font-size: 0.72rem;
    color: #475569;
}