:root {
    --bg:           #f3f6fb;
    --surface:      #ffffff;
    --surface-2:    #f8fafc;
    --border:       #dbe4f0;
    --text:         #122033;
    --muted:        #5f7086;
    --primary:      #2563eb;
    --primary-dark: #1d4ed8;
    --shadow:       0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-lg:    20px;
    --radius-md:    16px;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
                linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

/* ------------------------------------------------------------------ */
/* Focus styles                                                         */
/* ------------------------------------------------------------------ */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* ------------------------------------------------------------------ */
/* Navbar                                                               */
/* ------------------------------------------------------------------ */

.site-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(219, 228, 240, 0.9);
}

.navbar-revo {
    background: linear-gradient(180deg, #0f172a, #172554);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.revo-logo {
    height: 36px;
    display: block;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #0f172a);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------ */
/* Page shell                                                           */
/* ------------------------------------------------------------------ */

.page-shell {
    padding-bottom: 3rem;
}

/* ------------------------------------------------------------------ */
/* Hero panel                                                           */
/* ------------------------------------------------------------------ */

.hero-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .hero-panel {
        padding: 3rem;
    }
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.hero-copy {
    color: var(--muted);
    max-width: 58rem;
}

.hero-panel h1 {
    letter-spacing: -0.02em;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
    border-radius: 12px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    border: none;
}

.btn-outline-secondary {
    border-radius: 12px;
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Cards (general)                                                      */
/* ------------------------------------------------------------------ */

.card {
    border: 1px solid rgba(219, 228, 240, 0.8) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

/* ------------------------------------------------------------------ */
/* Accordion                                                            */
/* ------------------------------------------------------------------ */

.accordion-item {
    border: none !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.accordion-button {
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--text);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-collapse {
    border-top: 1px solid rgba(219, 228, 240, 0.8);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.96);
}

.accordion-item .accordion-collapse.show {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Provider card selection                                              */
/* ------------------------------------------------------------------ */

.provider-card {
    cursor: pointer;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    user-select: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

.provider-card:hover {
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-2px);
}

.provider-card.selected {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    background-color: rgba(37, 99, 235, 0.04);
}

.provider-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.provider-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 0.75rem;
}

/* ------------------------------------------------------------------ */
/* Status / confirmation pages                                          */
/* ------------------------------------------------------------------ */

.status-icon {
    font-size: 4rem;
}

.status-icon-info {
    color: var(--primary);
}

.status-icon-success {
    color: #198754;
}

.confirmation-card {
    max-width: 480px;
}

/* ------------------------------------------------------------------ */
/* Public option meta info                                              */
/* ------------------------------------------------------------------ */

.text-xs {
    font-size: 0.75rem;
}

.option-meta-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 0.75rem;
    font-size: 0.75rem;
    align-items: baseline;
}

/* ------------------------------------------------------------------ */
/* Alerts                                                               */
/* ------------------------------------------------------------------ */

.alert {
    border-radius: var(--radius-md);
}
