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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.10), transparent 32%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, #061018 0%, #090d14 40%, #05070b 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.dashboard-shell {
    position: relative;
}

header {
    backdrop-filter: blur(12px);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #9ca3af;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    background: rgba(15, 23, 42, 0.35);
}

.hero-panel {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.40);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.86));
}

.subtitle {
    color: #94a3b8;
    max-width: 56rem;
}

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

.hero-metric {
    min-width: 180px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.42);
}

.hero-metric .label {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.35rem;
}

.hero-metric .value {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.connection-live {
    color: #34d399 !important;
}

.connection-warn {
    color: #fbbf24 !important;
}

.stat-card {
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(9, 14, 23, 0.75));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.chart-panel,
.trading-panel {
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(9, 14, 23, 0.90));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.chart-panel {
    padding: 1.25rem;
}

.section-kicker {
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    margin-bottom: 0.3rem;
}

.section-title {
    color: #f3f4f6;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.chart-wrap,
.mini-chart-box {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.38);
}

.chart-wrap {
    min-height: 280px;
    overflow: hidden;
}

.chart-grid-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.mini-chart-box {
    min-height: 260px;
    overflow: hidden;
}

svg {
    width: 100%;
    height: 100%;
    display: block;
}

.positions-table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
}

.alert-log {
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.alert-log .text-gray-600 {
    color: #6b7280;
}

button {
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

button:hover {
    transform: translateY(-1px);
}

@media (min-width: 1024px) {
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .chart-grid-mini {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

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

    table {
        font-size: 0.8em;
    }

    th, td {
        padding: 8px;
    }
}
