:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-hover: #1a1a1a;
    --border: #222222;
    --text: #d4d4d8;
    --muted: #a1a1aa;
    --high: #f97316;
    --mid-high: #fb923c;
    --mid: #a78bfa;
    --mid-low: #60a5fa;
    --low: #3b82f6;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--high);
}

header p {
    color: var(--muted);
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.chart-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-wrap {
    position: relative;
    height: 400px;
}

/* Table */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--surface);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead th {
    text-align: left;
    padding: 0.85rem 0.8rem;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--surface-hover);
}

td {
    padding: 0.7rem 0.8rem;
    white-space: nowrap;
}

.col-rank {
    width: 44px;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}

.col-name {
    font-weight: 600;
    color: #fff;
}


.col-price {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text);
}

.col-eff {
    font-weight: 700;
    font-size: 1rem;
}

/* Intelligence bar */
.intel-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intel-num {
    font-weight: 700;
    min-width: 24px;
}

.intel-bar {
    height: 6px;
    border-radius: 3px;
    width: 60px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.intel-fill {
    height: 100%;
    border-radius: 3px;
}

/* Top 3 */
.top-1 td {
    background: rgba(249, 115, 22, 0.08);
}

.top-2 td {
    background: rgba(249, 115, 22, 0.04);
}

.top-3 td {
    background: rgba(249, 115, 22, 0.02);
}

/* Gradient Key Display */
.gradient-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.gradient-bar {
    width: 200px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #3b82f6, #f97316);
}

/* Top Picks Summary */
.top-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pick-card {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.04), var(--surface));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 3px solid var(--high);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pick-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.pick-brand {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.pick-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Methodology Block */
.methodology {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.04), var(--surface));
    border: 1px solid var(--border);
    border-left: 4px solid var(--high);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.methodology h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
}

.methodology p {
    margin-bottom: 0.8rem;
    color: var(--text);
}

.methodology p:last-child {
    margin-bottom: 0;
}

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--muted);
    font-size: 1.1rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media(max-width:700px) {

    td,
    th {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .chart-wrap {
        height: 600px;
    }
}