.repo-stats-hero {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #8b5cf6;
}

.repo-stats-hero {
    background: linear-gradient(135deg, var(--dark-bg, #0f172a) 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.repo-stats-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.repo-stats-hero h1 {
    font-size: 44px;
    line-height: 1.12;
    margin: 0 0 14px;
    color: #ffffff;
    font-weight: 800;
}

.repo-stats-hero .highlight {
    color: var(--secondary-color);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    display: inline-block;
}

.repo-stats-hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin: 14px 0 30px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.stat-card {
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(139, 92, 246, 0.55);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.highlight-card {
    background: rgba(37, 99, 235, 0.3);
    border-color: var(--accent-color);
}

.success-card {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--accent-color);
}

.amber-card {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
}

.stat-number {
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.stat-percent {
    margin-top: 6px;
    font-size: 14px;
    color: #bbf7d0;
    font-weight: 700;
}

.stat-stacked {
    display: grid;
    gap: 10px;
}

.stat-stacked-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-number-sm {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    color: #fef3c7;
}

.stat-label-sm {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.repo-stats-progress-wrap {
    padding: 24px 0 44px;
    background: #ffffff;
}

.repo-stats-progress-title {
    margin: 0 0 12px;
    font-size: 24px;
    color: #0f172a;
}

.repo-stats-progress-panel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px 12px;
}

#verification-chart {
    width: 100%;
    height: 520px;
    display: block;
}

.repo-stats-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #334155;
}

.repo-stats-chart-legend .swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px;
}

.swatch-gray { background: #4b5563; }
.swatch-blue { background: #93c5fd; }
.swatch-green { background: #86efac; }
.swatch-line {
    width: 16px !important;
    height: 2px !important;
    border-radius: 0 !important;
    background: #0f172a;
    vertical-align: 4px !important;
}

.repo-stats-chart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 8px 4px 0;
}

.repo-stats-chart-meta p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.repo-stats-chart-meta span {
    font-weight: 500;
}

.repo-stats-progress-frame {
    width: 100%;
    height: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
