:root {
    --bg: #0b0d10;
    --panel: #13171c;
    --border: #232932;
    --text: #f5f7fa;
    --muted: #8f9aa8;
    --accent: #7cffb2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.app {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.subtitle {
    color: var(--muted);
    font-size: 17px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.radar {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.radar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.radar-header h2 {
    margin-bottom: 6px;
}

.radar-header p {
    margin-bottom: 0;
    color: var(--muted);
}

#radar-container {
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 30px;
}

.empty-state {
    text-align: center;
}

.empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

@media (max-width: 650px) {
    .app-header {
        flex-direction: column;
    }
}


.radar-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stock-card {
    padding: 22px;
    background: #0f1318;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.stock-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.ticker {
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.signal-status {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.score {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 18px;
    font-weight: 800;
}

.score-track {
    height: 7px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #20262d;
    border-radius: 999px;
}

.score-fill {
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.stock-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.stock-card.high {
    border-color: rgba(124, 255, 178, 0.4);
}

.stock-card.high .score {
    color: var(--accent);
    border-color: rgba(124, 255, 178, 0.45);
}

@media (max-width: 800px) {
    .radar-grid {
        grid-template-columns: 1fr;
    }
}
