body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #101726, #05070c);
    color: #f5f7ff;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.header, .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #1f2937;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:#9ca3af;
}

.title-block h1 {
    margin: 0;
    font-size: 20px;
}

.subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.meta .pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    margin-left: 6px;
    font-size: 11px;
}

.pill-simu {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: #f59e0b;
    color:#111827;
    font-size: 10px;
    font-weight: 600;
}

.card {
    background: radial-gradient(circle at top, rgba(120,130,255,0.18), rgba(15,23,42,0.95));
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.6);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 16px;
}

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

.gauge-wrapper {
    display:flex;
    flex-direction:column;
    gap:14px;
}

.gauge-box {
    display:flex;
    justify-content:center;
    align-items:center;
}

.gauge {
    position: relative;
    width: 220px;
    height: 220px;
}

.gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(148,163,184,0.2);
    stroke-width: 14;
}

.gauge-value {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease-out;
}

.gauge-center {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.gauge-percentage {
    font-size: 32px;
    font-weight: 600;
}

.gauge-percentage .small {
    font-size: 14px;
    margin-left:4px;
    color:#9ca3af;
}

.gauge-sub {
    margin-top:4px;
    font-size: 13px;
    color:#cbd5f5;
}

.stats-line {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:8px;
}

.stat {
    flex:1;
    min-width: 140px;
}

.stat-label {
    display:block;
    font-size:11px;
    color:#9ca3af;
}

.stat-value {
    font-size:18px;
    font-weight:500;
}

.trend-container {
    margin-top:6px;
    font-size: 13px;
}

.trend {
    display:flex;
    align-items:center;
    gap:6px;
}

.trend-dot {
    font-size:10px;
}

.trend-up { color:#22c55e; }
.trend-down { color:#f97316; }
.trend-stable { color:#9ca3af; }

.curve-card {
    margin-top:16px;
}

.curve-header h2 {
    margin:0;
    font-size:16px;
}

.curve-meta {
    margin-top:2px;
    font-size:11px;
    color:#9ca3af;
}

.curve-wrapper {
    margin-top:10px;
}

#presenceCurve {
    width:100%;
    height:220px;
    display:block;
    background: radial-gradient(circle at top, rgba(15,23,42,0.3), rgba(15,23,42,1));
    border-radius:12px;
}

.footer {
    margin-top:16px;
    font-size:11px;
    color:#9ca3af;
    border-top:1px solid rgba(148,163,184,0.2);
    padding-top:8px;
    justify-content:space-between;
}
