/* ───────────────────────────── Global */
html, body {
    font-family: "Segoe UI Variable Text", "Bahnschrift", "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.09), transparent 30%),
        radial-gradient(circle at top right, rgba(3, 105, 161, 0.08), transparent 33%),
        radial-gradient(circle at center, rgba(14, 165, 233, 0.04), transparent 40%),
        linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
    color: #0f172a;
    font-feature-settings: "tnum" 1, "ss01" 1;
    overflow-x: clip;
}

:focus-visible {
    outline: 3px solid rgba(3, 105, 161, 0.45);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6, .mud-typography-h6 {
    font-family: "Segoe UI Variable Display", "Bahnschrift", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

a, .btn-link { color: #0369A1; }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0F766E, #0369A1);
    border: none;
}

.content { padding-top: 1rem; }

/* ───────────────────────────── Dashboard shell */
.analytics-dashboard {
    padding-bottom: 2.8rem;
    position: relative;
}

.analytics-dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.38), transparent 22%),
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 24%);
}

.hero-ribbon {
    border-radius: 22px;
    padding: 1.05rem 1.4rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%),
        linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(3, 105, 161, 0.04));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.hero-ribbon::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.65), rgba(255,255,255,0));
}

.hero-ribbon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-ribbon-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0F766E;
    font-weight: 700;
}

.hero-ribbon-title strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.hero-ribbon-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-stat {
    min-width: 130px;
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-stat span,
.text-muted-custom,
.section-kicker {
    color: #64748b;
}

.section-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #0F766E;
    margin-bottom: 0.25rem;
}

.hero-stat strong {
    display: block;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ───────────────────────────── Surface panels */
.surface-panel {
    padding: 1.4rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.control-panel { min-height: 100%; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.aggregation-select {
    min-width: 220px;
}

/* ───────────────────────────── Upload dropzone */
.upload-dropzone {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.06), rgba(15, 118, 110, 0.07));
    border: 1.5px dashed rgba(3, 105, 161, 0.35);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-dropzone:hover {
    border-color: #0369A1;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.10), rgba(15, 118, 110, 0.10));
}

.upload-dropzone:focus-within {
    border-color: #0369A1;
    box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.12);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F766E;
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
}

.upload-dropzone-info { min-width: 0; }
.upload-dropzone-title {
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upload-dropzone-subtitle {
    color: #64748b;
    font-size: 0.85rem;
}

.template-link {
    display: grid;
    grid-template-columns: 28px 1fr 22px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: #0F766E;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.template-link:hover {
    background: linear-gradient(135deg, #ccfbf1 0%, #cffafe 100%);
    border-color: rgba(15, 118, 110, 0.40);
    transform: translateY(-1px);
    text-decoration: none;
}

.template-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.template-link-info { min-width: 0; line-height: 1.2; }
.template-link-info strong {
    display: block;
    color: #0F766E;
    font-weight: 700;
    font-size: 0.92rem;
}
.template-link-info span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    margin-top: 0.1rem;
}

.cta-button {
    min-height: 50px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #0F766E 0%, #0369A1 100%) !important;
}

.cta-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.18);
}

/* ───────────────────────────── KPI Cards */
.kpi-card {
    position: relative;
    padding: 1.3rem 1.4rem;
    border-radius: 20px;
    min-height: 138px;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}

.kpi-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
    border-radius: 5px 0 0 5px;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-body { min-width: 0; flex: 1; }

.kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.35rem;
}

/* KPI variants */
.kpi-energy::before { background: linear-gradient(180deg, #10B981, #059669); }
.kpi-energy .kpi-icon { background: #ECFDF5; color: #047857; }

.kpi-loss::before { background: linear-gradient(180deg, #DC2626, #991B1B); }
.kpi-loss .kpi-icon { background: #FEF2F2; color: #B91C1C; }
.kpi-loss .kpi-value { color: #B91C1C; }

.kpi-battery::before { background: linear-gradient(180deg, #0369A1, #1D4ED8); }
.kpi-battery .kpi-icon { background: #EFF6FF; color: #1D4ED8; }

.kpi-saved::before { background: linear-gradient(180deg, #0F766E, #115E59); }
.kpi-saved .kpi-icon { background: #F0FDFA; color: #0F766E; }
.kpi-saved .kpi-value { color: #0F766E; }

/* ───────────────────────────── Ratio (yüzdelik) cards */
.ratio-card {
    position: relative;
    padding: 1.1rem 1.2rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 154px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ratio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.ratio-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ratio-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.ratio-titlewrap { min-width: 0; flex: 1; }

.ratio-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.ratio-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.ratio-bar {
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: #f1f5f9;
    overflow: hidden;
}

.ratio-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.ratio-sub {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

/* ratio variants */
.ratio-impact .ratio-icon { background: #FFF7ED; color: #C2410C; }
.ratio-impact .ratio-bar-fill { background: linear-gradient(90deg, #F97316, #C2410C); }
.ratio-impact .ratio-value { color: #C2410C; }

.ratio-recovery .ratio-icon { background: #ECFDF5; color: #047857; }
.ratio-recovery .ratio-bar-fill { background: linear-gradient(90deg, #10B981, #047857); }
.ratio-recovery .ratio-value { color: #047857; }

.ratio-match .ratio-icon { background: #EFF6FF; color: #1D4ED8; }
.ratio-match .ratio-bar-fill { background: linear-gradient(90deg, #3B82F6, #1D4ED8); }
.ratio-match .ratio-value { color: #1D4ED8; }

.ratio-surplus .ratio-icon { background: #FEFCE8; color: #A16207; }
.ratio-surplus .ratio-bar-fill { background: linear-gradient(90deg, #FACC15, #A16207); }
.ratio-surplus .ratio-value { color: #A16207; }

/* ───────────────────────────── Signal cards */
.signal-card {
    min-height: 158px;
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.signal-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(4px);
}

.signal-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.signal-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
}

.signal-card-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.signal-card-value {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.55rem;
}

.signal-card-caption {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
    max-width: 34ch;
}

.signal-export {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 255, 255, 0.98));
}
.signal-export .signal-card-icon { color: #b45309; }

.signal-risk {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.98));
}
.signal-risk .signal-card-icon { color: #b91c1c; }

.signal-soc {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.98));
}
.signal-soc .signal-card-icon { color: #0369a1; }

.signal-grid {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.98));
}
.signal-grid .signal-card-icon { color: #0f766e; }

/* ───────────────────────────── Donut supply mix */
.supply-mix-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.3rem;
    align-items: center;
    min-width: 0;
}

.supply-mix-legend {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.mix-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.14);
    min-width: 0;
}

.mix-row strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 700;
}

.mix-row span:not(.mix-dot) {
    font-size: 0.78rem;
    color: #64748b;
    overflow-wrap: anywhere;
}

.mix-row b {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.mix-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
}

.mix-direct  .mix-dot { background: #F59E0B; }
.mix-direct  b { color: #C2410C; }
.mix-battery .mix-dot { background: #0F766E; }
.mix-battery b { color: #0F766E; }
.mix-grid    .mix-dot { background: #94A3B8; }
.mix-grid    b { color: #475569; }

@media (max-width: 1199.98px) {
    .supply-mix-wrap { grid-template-columns: 1fr; justify-items: center; }
}

/* ───────────────────────────── Chart manual legend */
.legend-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #475569;
}

.legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 3px;
}

/* ───────────────────────────── Empty state */
.empty-state {
    padding: 4rem 1rem;
    text-align: center;
}

.empty-icon {
    color: #94a3b8;
    font-size: 3rem !important;
    margin-bottom: 0.5rem;
}

/* ───────────────────────────── Insight panel */
.insight-panel { min-height: 100%; }
.futuristic-panel {
    position: relative;
    overflow: hidden;
}

.futuristic-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(29, 78, 216, 0.05), transparent 36%),
        radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.10), transparent 22%);
    pointer-events: none;
}

.season-panel {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
}

.season-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.season-card {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(255, 255, 255, 0.82);
}

.season-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.7rem;
}

.season-card-head strong {
    font-size: 1rem;
}

.season-card-head span {
    color: #475569;
    font-size: 0.82rem;
}

.season-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.9rem;
}

.season-card-grid label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.season-card-grid b {
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.season-winter { background: linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(255, 255, 255, 0.95)); }
.season-spring { background: linear-gradient(135deg, rgba(220, 252, 231, 0.72), rgba(255, 255, 255, 0.95)); }
.season-summer { background: linear-gradient(135deg, rgba(254, 249, 195, 0.84), rgba(255, 255, 255, 0.95)); }
.season-autumn { background: linear-gradient(135deg, rgba(255, 237, 213, 0.82), rgba(255, 255, 255, 0.95)); }

.insight-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.92rem;
}

.insight-row strong {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.text-loss { color: #B91C1C !important; font-weight: 700; }

/* ───────────────────────────── Tables */
.detail-mud-table .mud-table-head .mud-table-cell,
.loss-table .mud-table-head .mud-table-cell {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    background: #f8fafc;
}

.detail-mud-table .mud-table-cell,
.loss-table .mud-table-cell {
    font-variant-numeric: tabular-nums;
}

.hourly-risk-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hourly-risk-row {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.88);
}

.hourly-risk-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hourly-risk-meta strong {
    font-size: 1rem;
}

.hourly-risk-meta span,
.hourly-risk-stats span {
    color: #64748b;
    font-size: 0.82rem;
}

.hourly-risk-bars {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.hourly-bar {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 0.8rem;
}

.hourly-bar label {
    font-size: 0.78rem;
    color: #475569;
}

.hourly-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.hourly-bar-fill {
    height: 100%;
    border-radius: inherit;
}

.hourly-bar-fill.import { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.hourly-bar-fill.discharge { background: linear-gradient(90deg, #0ea5e9, #0369a1); }

.hourly-bar b {
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.hourly-risk-stats {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
}

.risk-high {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.98));
}

.risk-medium {
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.15);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.98));
}

.risk-low {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.98));
}

.recommendation-panel {
    min-height: 100%;
}

.recommendation-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.recommendation-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.84);
}

.recommendation-body strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.94rem;
}

.recommendation-body span {
    display: block;
    color: #475569;
    font-size: 0.83rem;
    line-height: 1.45;
}

.rec-opportunity {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.78), rgba(255, 255, 255, 0.96));
}
.rec-opportunity .recommendation-icon { color: #047857; }

.rec-warning {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.82), rgba(255, 255, 255, 0.96));
}
.rec-warning .recommendation-icon { color: #c2410c; }

.rec-critical {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.84), rgba(255, 255, 255, 0.96));
}
.rec-critical .recommendation-icon { color: #b91c1c; }

.rec-neutral {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.74), rgba(255, 255, 255, 0.96));
}
.rec-neutral .recommendation-icon { color: #1d4ed8; }

/* ───────────────────────────── Charts */
.chart-host {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.chart-host .mud-chart,
.chart-host .mud-chart svg {
    width: 100% !important;
    max-width: 100%;
}

.donut-chart-host {
    min-height: 280px;
    width: 100%;
    max-width: 320px;
    justify-self: center;
}

.mud-chart {
    overflow: visible;
}
.mud-chart svg text {
    font-size: 11px;
    fill: #475569;
}

.chart-host .mud-chart {
    overflow: hidden;
}

/* ───────────────────────────── Legacy summary card (LogHistory) */
.summary-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
}

.log-vault-shell {
    position: relative;
    padding: 1.5rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.log-vault-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.10), transparent 25%),
        radial-gradient(circle at 100% 0%, rgba(3, 105, 161, 0.10), transparent 22%);
}

.log-vault-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.log-vault-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0;
    line-height: 1.05;
}

.log-vault-subtitle {
    margin: 0.45rem 0 0;
    color: #64748b;
    max-width: 48ch;
}

.log-vault-badge {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(3, 105, 161, 0.10));
    border: 1px solid rgba(15, 118, 110, 0.18);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0f766e;
}

.log-vault-auth {
    max-width: 560px;
}

.log-vault-auth-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.log-vault-auth-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.log-vault-auth-card p {
    margin: 0;
    color: #64748b;
}

.log-vault-auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f766e, #0369a1);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}

.premium-input {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.92);
}

.premium-login-button {
    min-height: 48px;
    border-radius: 14px;
    padding-inline: 1rem;
    font-weight: 800;
}

.log-vault-table {
    position: relative;
    z-index: 1;
}

.log-vault-table .table {
    margin-bottom: 0;
}

.log-vault-table thead th {
    white-space: nowrap;
}

/* ───────────────────────────── Blazor error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Bir hata oluştu.";
}

/* ───────────────────────────── Responsive */
@media (max-width: 1199.98px) {
    .hero-ribbon-row { flex-direction: column; align-items: flex-start; }
    .panel-header { flex-direction: column; }
    .aggregation-select { width: 100%; }
}

@media (max-width: 767.98px) {
    .surface-panel { padding: 1rem; border-radius: 16px; }
    .hero-ribbon, .surface-panel { border-radius: 16px; }
    .hero-ribbon-stats { width: 100%; display: grid; grid-template-columns: 1fr; }
    .kpi-value { font-size: 1.3rem; }
    .season-card-grid { grid-template-columns: 1fr; }
    .hourly-bar { grid-template-columns: 1fr; }
    .hourly-risk-meta { flex-direction: column; align-items: flex-start; }
    .recommendation-card { grid-template-columns: 1fr; }
    .log-vault-shell { padding: 1rem; border-radius: 20px; }
    .log-vault-auth-card { grid-template-columns: 1fr; }
}
