.gbp-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

.gbp-gauge-widget {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid rgba(0, 207, 255, 0.12);
    border-radius: 20px;
    padding: 36px 28px 28px;
    backdrop-filter: blur(16px);
    text-align: center;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 207, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gbp-gauge-widget--compact {
    padding: 16px 12px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.gbp-gauge-header {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.85rem;
    color: rgba(200, 210, 225, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gbp-gauge-svg {
    display: block;
    margin: 0 auto;
    max-width: 520px;
    width: 100%;
    overflow: visible;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.gbp-gauge-widget--compact .gbp-gauge-svg {
    max-width: 280px;
}

.gbp-score-text {
    font-family: 'Archivo Black', sans-serif;
    fill: #e8ecf1;
    font-size: 46px;
    text-anchor: middle;
    dominant-baseline: central;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.gbp-gauge-widget--compact .gbp-score-text {
    font-size: 30px;
}

.gbp-label-text {
    font-family: 'Archivo Black', sans-serif;
    fill: #8899aa;
    font-size: 12px;
    text-anchor: middle;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gbp-trend-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: 11px;
    text-anchor: middle;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.gbp-sparkline-container {
    margin-top: 20px;
    padding: 16px 0 12px;
    border-top: 1px solid rgba(0, 207, 255, 0.06);
}

.gbp-sparkline-label {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.65rem;
    color: rgba(85, 102, 119, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gbp-sparkline-svg {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
}

.gbp-breakdown {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 207, 255, 0.06);
    padding-top: 16px;
}

.gbp-breakdown-toggle {
    background: none;
    border: 1px solid rgba(0, 207, 255, 0.08);
    border-radius: 6px;
    color: #667788;
    cursor: pointer;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    transition: color 0.2s, border-color 0.2s;
}

.gbp-breakdown-toggle:hover {
    color: #00cfff;
    border-color: rgba(0, 207, 255, 0.25);
}

.gbp-breakdown-bars {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gbp-breakdown-bars.collapsed {
    display: none;
}

.gbp-source-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.gbp-source-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.62rem;
    color: rgba(136, 153, 170, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 110px;
    text-align: right;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gbp-source-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.gbp-source-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.8s, box-shadow 0.8s;
}

.gbp-source-score {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.7rem;
    color: #cdd6e4;
    width: 32px;
    text-align: left;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    transition: color 0.5s;
}

.gbp-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    animation: gbp-pulse 2s ease-in-out infinite;
}

.gbp-status-dot.connected {
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.gbp-status-dot.disconnected {
    background: #ff4444;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.5);
}

@keyframes gbp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.gbp-history-section {
    margin-top: 36px;
}

.gbp-history-header {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    color: rgba(200, 210, 225, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.gbp-history-chart {
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(0, 207, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.gbp-history-svg {
    display: block;
    width: 100%;
}

.gbp-explainer {
    margin-top: 36px;
    background: rgba(10, 14, 23, 0.5);
    border: 1px solid rgba(0, 207, 255, 0.06);
    border-radius: 14px;
    padding: 28px;
}

.gbp-explainer h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.78rem;
    color: rgba(200, 210, 225, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.gbp-explainer p {
    color: rgba(136, 153, 170, 0.85);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0 0 8px;
}

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

@media (max-width: 600px) {
    .gbp-page { padding: 12px 8px 40px; }
    .gbp-gauge-widget { padding: 20px 12px 16px; border-radius: 14px; }
    .gbp-score-text { font-size: 34px; }
    .gbp-source-name { width: 80px; font-size: 0.58rem; }
    .gbp-source-row { gap: 6px; }
    .gbp-gauge-header { font-size: 0.75rem; letter-spacing: 3px; }
}
