/* ═══════════════════════════════════════════════════════════════
   Provauto — Dark Theme ("Dim Garage" aesthetic)
   Brand: slate is the canvas, red is the ink, gold is premium.
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --prov-slate: #304050;
    --prov-red: #780000;
    --prov-red-hover: #9a0000;
    --prov-red-light: #a52a2a;
    --prov-fog: #C8CCD0;
    --prov-gold: #B8975A;
    --prov-gold-hover: #d4af72;

    --prov-n0: #FFFFFF;
    --prov-n50: #F6F7F9;
    --prov-n100: #EEF1F4;
    --prov-n200: #D9DEE4;
    --prov-n700: #3A434D;
    --prov-n800: #262C34;
    --prov-n900: #161A20;

    --prov-entry-mod: #34D399;
    --prov-entry-maintenance: #60A5FA;
    --prov-entry-repair: #FB923C;
    --prov-entry-fuel: #FBBF24;
    --prov-entry-expense: #F472B6;
    --prov-entry-note: #A78BFA;

    /* Dark-mode text */
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.40);

    /* Surfaces */
    --surface-base: var(--prov-n900);
    --surface-elevated: var(--prov-n800);
    --surface-overlay: var(--prov-n700);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-visible: rgba(255, 255, 255, 0.15);
}

/* ── Base ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--surface-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
}

/* Blazor focuses the first h1 after circuit connect — hide the outline */
h1:focus-visible, h1:focus {
    outline: none;
}

a {
    color: #9DB0C4;
    transition: color 0.2s;
}

a:hover {
    color: var(--prov-fog);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--prov-red);
    color: #fff;
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
    background: rgba(22, 26, 32, 0.92) !important;
    padding: 0.75rem 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1030;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--text-primary) !important;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-cta {
    background: var(--prov-red);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-cta:hover {
    background: var(--prov-red-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(120, 0, 0, 0.35);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-outline-cta {
    color: var(--text-primary);
    border: 2px solid var(--border-visible);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s;
}

.btn-outline-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline-light {
    border-color: var(--border-visible);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

/* ── Section Spacing ────────────────────────────────────────── */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(160deg, #0d1117 0%, var(--prov-slate) 60%, var(--prov-n800) 100%);
    padding: 8rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-accent {
    color: var(--prov-gold);
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge-link img {
    height: 44px;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.store-badge-link:hover img {
    transform: translateY(-2px);
    opacity: 1;
}

/* ── Hero Screenshot ────────────────────────────────────────── */
.hero-screenshot {
    max-height: 580px;
    width: auto;
    border-radius: 24px;
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
}

/* ── Screenshot Trio (Why Section) ─────────────────────────── */
.screenshot-trio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.screenshot-trio .trio-center {
    max-height: 520px;
    width: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}

.screenshot-trio .trio-side {
    max-height: 440px;
    width: auto;
    border-radius: 18px;
    position: absolute;
    z-index: 1;
    opacity: 0.75;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    transition: opacity 0.3s;
}

.screenshot-trio .trio-left {
    left: 0;
    transform: translateX(-10%) scale(0.88);
}

.screenshot-trio .trio-right {
    right: 0;
    transform: translateX(10%) scale(0.88);
}

.screenshot-trio:hover .trio-side {
    opacity: 0.9;
}

/* ── Features ───────────────────────────────────────────────── */
.features-section {
    background: var(--surface-base);
}

.feature-card {
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    border-left: 4px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card--mod         { border-left-color: var(--prov-entry-mod); }
.feature-card--maintenance { border-left-color: var(--prov-entry-maintenance); }
.feature-card--repair      { border-left-color: var(--prov-entry-repair); }
.feature-card--fuel        { border-left-color: var(--prov-entry-fuel); }
.feature-card--expense     { border-left-color: var(--prov-entry-expense); }
.feature-card--note        { border-left-color: var(--prov-entry-note); }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.feature-card--mod .feature-icon         { color: var(--prov-entry-mod); }
.feature-card--maintenance .feature-icon { color: var(--prov-entry-maintenance); }
.feature-card--repair .feature-icon      { color: var(--prov-entry-repair); }
.feature-card--fuel .feature-icon        { color: var(--prov-entry-fuel); }
.feature-card--expense .feature-icon     { color: var(--prov-entry-expense); }
.feature-card--note .feature-icon        { color: var(--prov-entry-note); }

.feature-card h5 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Vehicle Type Chips */
.vehicle-chip {
    background: var(--surface-elevated);
    border: 1px solid var(--border-visible);
    border-radius: 24px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transition: border-color 0.2s, background 0.2s;
}

.vehicle-chip:hover {
    border-color: var(--prov-gold);
    background: rgba(184, 151, 90, 0.08);
}

.vehicle-chip i {
    color: var(--prov-gold);
}

/* Category Tags */
.category-tag {
    display: inline-block;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s, border-color 0.2s;
}

.category-tag:hover {
    color: var(--text-primary);
    border-color: var(--border-visible);
}

/* ── Capabilities ───────────────────────────────────────────── */
.capabilities-section {
    background: var(--surface-elevated);
}

.capability-item {
    padding: 1.5rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.capability-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.capability-icon {
    font-size: 2rem;
    color: var(--prov-gold);
    margin-bottom: 1rem;
    display: block;
}

.capability-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.capability-item p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--text-secondary);
}

.capability-icon--premium {
    color: var(--prov-gold) !important;
}

.capability-icon--pro {
    color: var(--prov-entry-note) !important;
}

/* Tier badges inline with capability headings */
.tier-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.tier-badge--premium {
    background: rgba(184, 151, 90, 0.15);
    color: var(--prov-gold);
}

.tier-badge--pro {
    background: rgba(167, 139, 250, 0.15);
    color: var(--prov-entry-note);
}

/* ── Why Provauto ───────────────────────────────────────────── */
.why-section {
    background: var(--surface-base);
}

.why-intro {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.why-section p {
    color: var(--text-secondary);
}

.why-section strong {
    color: var(--text-primary);
}

.why-section em {
    color: var(--prov-gold);
    font-style: italic;
}

.why-tagline {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--prov-gold) !important;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

/* ── Premium ────────────────────────────────────────────────── */
.premium-section {
    background: var(--surface-elevated);
}

.plan-card {
    background: var(--surface-base);
    border: 1px solid var(--border-visible);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.plan-card--premium {
    border-color: var(--prov-gold);
    box-shadow: 0 0 0 1px var(--prov-gold), 0 8px 32px rgba(184, 151, 90, 0.12);
}

.plan-card--premium:hover {
    box-shadow: 0 0 0 1px var(--prov-gold), 0 12px 40px rgba(184, 151, 90, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--prov-gold);
    color: var(--prov-n900);
    padding: 0.25rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.plan-card--premium .plan-name {
    color: var(--prov-gold);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0.25rem 0 0;
}

.plan-currency {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    vertical-align: super;
}

.plan-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.plan-upgrade-note {
    color: var(--prov-entry-note);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.plan-features li.disabled {
    opacity: 0.4;
}

.plan-features li.highlight {
    font-weight: 600;
    color: var(--prov-gold);
}

.plan-features .text-success {
    color: #34D399 !important;
}

.plan-features .text-muted {
    color: var(--text-muted) !important;
}

.plan-card--premium .plan-features li i.bi-check-circle-fill {
    color: var(--prov-gold) !important;
}

.plan-card--premium .plan-features li i.bi-star-fill {
    color: var(--prov-gold) !important;
}

.plan-cta {
    margin-top: 1.5rem;
}

/* Pro tier */
.plan-card--pro {
    border-color: var(--prov-entry-note);
    box-shadow: 0 0 0 1px var(--prov-entry-note), 0 8px 32px rgba(167, 139, 250, 0.12);
}

.plan-card--pro:hover {
    box-shadow: 0 0 0 1px var(--prov-entry-note), 0 12px 40px rgba(167, 139, 250, 0.2);
}

.plan-card--pro .plan-name {
    color: var(--prov-entry-note);
}

.plan-card--pro .plan-features li i.bi-check-circle-fill {
    color: var(--prov-entry-note) !important;
}

.plan-card--pro .plan-features li i.bi-star-fill {
    color: var(--prov-entry-note) !important;
}

.plan-card--pro .plan-features li.highlight {
    color: var(--prov-entry-note);
}

.plan-features li.plan-includes {
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.25rem;
}

.plan-badge--pro {
    background: var(--prov-entry-note);
}

.btn-cta-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--prov-entry-note);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-cta-pro:hover {
    background: #8b6ff0;
    color: #fff;
    transform: translateY(-1px);
}

.btn-cta-pro:active {
    transform: translateY(0);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
    background: var(--surface-base);
}

.accordion {
    --bs-accordion-bg: var(--surface-elevated);
    --bs-accordion-border-color: var(--border-subtle);
    --bs-accordion-color: var(--text-primary);
    --bs-accordion-btn-color: var(--text-primary);
    --bs-accordion-btn-bg: var(--surface-elevated);
    --bs-accordion-active-bg: var(--surface-overlay);
    --bs-accordion-active-color: var(--text-primary);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(157, 176, 196, 0.2);
}

.accordion-item {
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.5rem;
    border-radius: 12px !important;
    overflow: hidden;
    background: var(--surface-elevated);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    background: var(--surface-elevated);
    color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
    background: var(--surface-overlay);
    color: var(--text-primary);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(0.7);
}

.accordion-body {
    background: var(--surface-elevated);
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion-body a {
    color: #9DB0C4;
}

.accordion-body a:hover {
    color: var(--prov-fog);
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-section {
    background: linear-gradient(160deg, var(--prov-n800) 0%, var(--prov-slate) 100%);
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

/* Dark form labels */
.contact-section .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Dark form inputs */
.contact-section .form-control,
.contact-section .form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-visible);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(157, 176, 196, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(157, 176, 196, 0.15);
    color: var(--text-primary);
}

.contact-section .form-control::placeholder {
    color: var(--text-muted);
}

.contact-section .form-select option {
    background: var(--prov-n800);
    color: var(--text-primary);
}

.contact-section .validation-message {
    color: #e57373;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.contact-section .text-light {
    color: var(--text-secondary) !important;
}

.contact-section .text-white {
    color: var(--text-primary) !important;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--prov-n900);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.footer-tagline {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-badges .store-badge-link img {
    height: 36px;
    opacity: 0.7;
}

.footer-badges .store-badge-link:hover img {
    opacity: 0.9;
}

.footer-heading {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-divider {
    border-color: var(--border-subtle);
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ── Legal / Privacy Page ───────────────────────────────────── */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.legal-page h1 {
    margin-bottom: 0.25rem;
    font-size: 2.25rem;
    font-weight: 800;
}

.legal-page .legal-updated {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 1.25rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: #9DB0C4;
}

.legal-page strong {
    color: var(--text-primary);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 7rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .hero-screenshot {
        max-height: 440px;
    }

    .screenshot-trio .trio-center {
        max-height: 400px;
    }

    .screenshot-trio .trio-side {
        max-height: 340px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-lead {
        font-size: 1.1rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    section {
        padding: 3rem 0;
    }

    .plan-price {
        font-size: 2rem;
    }

    .pro-teaser-content {
        flex-direction: column;
        text-align: center;
    }

    .pro-teaser-header .plan-name {
        justify-content: center;
    }

    .pro-teaser-features {
        justify-content: center;
    }

    .hero-screenshot {
        max-height: 380px;
    }

    .screenshot-trio .trio-side {
        display: none;
    }

    .screenshot-trio .trio-center {
        max-height: 360px;
    }
}

/* ── Blazor Internals ───────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: dark only;
    background: var(--prov-n800);
    color: var(--text-primary);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui a {
    color: var(--prov-gold);
}

.blazor-error-boundary {
    background: var(--prov-red);
    padding: 1rem 1rem 1rem 1.5rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--prov-n700);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--prov-red);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: var(--text-secondary);
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ── Form Validation (Blazor defaults overridden) ───────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--prov-entry-mod);
}

.invalid {
    outline: 1px solid #e57373;
}

.validation-message {
    color: #e57373;
    font-size: 0.85rem;
}
