/* ==========================================================================
   VidsXO site design system. The editor (css/editor.css) owns its own surface;
   everything else — landing, sign-in, projects, admin, account — is styled here
   on top of Bootstrap 5.3's dark theme.
   ========================================================================== */

:root {
    --vx-bg: #0f1115;
    --vx-surface: #16181c;
    --vx-surface-raised: #1f2126;
    --vx-border: #30333a;
    --vx-text: #d8dadf;
    --vx-heading: #f2f3f5;
    --vx-muted: #9aa0aa;
    --vx-brand: #4ea1ff;
    --vx-brand-hover: #7bb9ff;
    --vx-on-brand: #08111f;
    --vx-danger: #ff7b7b;
    --vx-success: #4cc38a;
    --vx-radius: 0.75rem;
    --vx-radius-sm: 0.5rem;
    --vx-header-height: 3.5rem;
    --vx-focus-ring: 0 0 0 0.2rem rgba(78, 161, 255, 0.4);
}

[data-bs-theme=dark] {
    color-scheme: dark;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    --bs-body-bg: var(--vx-bg);
    --bs-body-bg-rgb: 15, 17, 21;
    --bs-body-color: var(--vx-text);
    --bs-body-color-rgb: 216, 218, 223;
    --bs-secondary-color: var(--vx-muted);
    --bs-secondary-bg: #262930;
    --bs-tertiary-bg: #1a1c21;
    --bs-border-color: var(--vx-border);
    --bs-heading-color: var(--vx-heading);
    --bs-link-color: var(--vx-brand);
    --bs-link-color-rgb: 78, 161, 255;
    --bs-link-hover-color: var(--vx-brand-hover);
    --bs-link-hover-color-rgb: 123, 185, 255;
    --bs-primary: var(--vx-brand);
    --bs-primary-rgb: 78, 161, 255;
    --bs-border-radius: var(--vx-radius-sm);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    letter-spacing: -0.015em;
}

h1 {
    font-size: 1.75rem;
    font-weight: 650;
}

h1:focus {
    outline: none;
}

a {
    text-underline-offset: 0.15em;
}

code {
    color: #e6a5ff;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Buttons, forms, tables ---------- */

.btn {
    --bs-btn-font-weight: 550;
    --bs-btn-border-radius: var(--vx-radius-sm);
}

.btn-lg {
    --bs-btn-font-size: 1rem;
    --bs-btn-padding-y: 0.7rem;
}

.btn-primary {
    --bs-btn-color: var(--vx-on-brand);
    --bs-btn-bg: var(--vx-brand);
    --bs-btn-border-color: var(--vx-brand);
    --bs-btn-hover-color: var(--vx-on-brand);
    --bs-btn-hover-bg: var(--vx-brand-hover);
    --bs-btn-hover-border-color: var(--vx-brand-hover);
    --bs-btn-active-color: var(--vx-on-brand);
    --bs-btn-active-bg: #3d8fec;
    --bs-btn-active-border-color: #3d8fec;
    --bs-btn-disabled-color: var(--vx-on-brand);
    --bs-btn-disabled-bg: var(--vx-brand);
    --bs-btn-disabled-border-color: var(--vx-brand);
}

.btn-outline-primary {
    --bs-btn-color: var(--vx-brand);
    --bs-btn-border-color: rgba(78, 161, 255, 0.55);
    --bs-btn-hover-color: var(--vx-on-brand);
    --bs-btn-hover-bg: var(--vx-brand);
    --bs-btn-hover-border-color: var(--vx-brand);
    --bs-btn-active-color: var(--vx-on-brand);
    --bs-btn-active-bg: var(--vx-brand);
    --bs-btn-active-border-color: var(--vx-brand);
    --bs-btn-disabled-color: var(--vx-brand);
    --bs-btn-disabled-border-color: rgba(78, 161, 255, 0.55);
}

.btn-ghost {
    --bs-btn-color: var(--vx-heading);
    --bs-btn-border-color: var(--vx-border);
    --bs-btn-hover-color: var(--vx-heading);
    --bs-btn-hover-bg: var(--vx-surface-raised);
    --bs-btn-hover-border-color: #454954;
    --bs-btn-active-color: var(--vx-heading);
    --bs-btn-active-bg: var(--vx-surface-raised);
    --bs-btn-active-border-color: #454954;
}

.btn-link {
    --bs-btn-font-weight: 400;
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn-link.nav-link:focus-visible {
    border-color: var(--vx-brand);
    box-shadow: var(--vx-focus-ring);
}

a:focus-visible {
    outline: 2px solid var(--vx-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

.form-control,
.form-select {
    background-color: var(--vx-bg);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #6b717d;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--vx-success);
}

.invalid {
    outline: 1px solid var(--vx-danger);
}

.validation-message,
.text-danger {
    color: var(--vx-danger) !important;
}

.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-errors {
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--vx-border);
}

.table > thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--vx-muted);
    white-space: nowrap;
}

.table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.nav-pills {
    --bs-nav-pills-link-active-color: var(--vx-heading);
    --bs-nav-pills-link-active-bg: var(--vx-surface-raised);
    --bs-nav-link-color: var(--vx-muted);
    --bs-nav-link-hover-color: var(--vx-heading);
}

/* ---------- App shell ---------- */

.vx-skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 1100;
    padding: 0.5rem 0.9rem;
    border-radius: var(--vx-radius-sm);
    background: var(--vx-brand);
    color: var(--vx-on-brand);
    font-weight: 600;
    text-decoration: none;
}

.vx-skip-link:focus {
    top: 0.5rem;
    color: var(--vx-on-brand);
}

.vx-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.vx-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--vx-header-height);
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--vx-border);
}

.vx-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.vx-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--vx-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.vx-brand:hover {
    color: var(--vx-heading);
}

.vx-brand svg {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
}

.vx-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.vx-nav-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.vx-nav-group form {
    display: contents;
}

.vx-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: var(--vx-radius-sm);
    background: none;
    color: var(--vx-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background-color 0.15s;
}

.vx-nav-link:hover {
    color: var(--vx-heading);
    background: var(--vx-surface-raised);
}

.vx-nav-link.active {
    color: var(--vx-heading);
    background: var(--vx-surface-raised);
}

.vx-nav-link:focus-visible {
    outline: 2px solid var(--vx-brand);
    outline-offset: 1px;
}

.vx-nav-user {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.vx-nav-toggle {
    display: none;
    appearance: none;
    margin-left: auto;
    width: 2.5rem;
    height: 2.25rem;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-sm);
    cursor: pointer;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d8dadf' stroke-linecap='round' stroke-width='2' d='M6 9h18M6 15h18M6 21h18'/%3e%3c/svg%3e") no-repeat center/1.4rem;
}

.vx-nav-toggle:checked {
    background-color: var(--vx-surface-raised);
}

.vx-nav-toggle:focus-visible {
    box-shadow: var(--vx-focus-ring);
    outline: none;
}

@media (max-width: 767.98px) {
    .vx-header-inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .vx-nav-toggle {
        display: block;
    }

    .vx-nav-toggle ~ .vx-nav {
        display: none;
        position: absolute;
        top: var(--vx-header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem 1rem 1rem;
        background: var(--vx-surface);
        border-bottom: 1px solid var(--vx-border);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    }

    .vx-nav-toggle:checked ~ .vx-nav {
        display: flex;
    }

    .vx-nav-toggle ~ .vx-nav .vx-nav-group {
        flex-direction: column;
        align-items: stretch;
    }

    .vx-nav-toggle ~ .vx-nav .vx-nav-group + .vx-nav-group {
        border-top: 1px solid var(--vx-border);
        padding-top: 0.5rem;
    }

    .vx-nav-toggle ~ .vx-nav .vx-nav-link {
        padding: 0.65rem 0.75rem;
        width: 100%;
        max-width: none;
        text-align: left;
    }

    /* Signed-out visitors only have two links, so they stay in the bar. */
    .vx-nav-guest {
        justify-content: flex-end;
    }
}

/* The media workspace fills the viewport below the header: its height is
   100vh - 5rem = header (3.5rem) + the padding below (1rem + 0.5rem). */
.vx-main {
    flex: 1;
    padding: 1rem 1.5rem 0.5rem;
    min-width: 0;
}

.vx-main:has(> .vx-home) {
    padding: 0;
}

@media (max-width: 767.98px) {
    .vx-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.vx-page {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.vx-page-narrow {
    max-width: 44rem;
}

.vx-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.75rem;
}

.vx-page-header h1 {
    margin: 0;
}

.vx-page-header p {
    margin: 0.35rem 0 0;
    color: var(--vx-muted);
}

.vx-panel {
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

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

.vx-panel-header h2,
.vx-panel > h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.vx-panel > h2 {
    margin-bottom: 1rem;
}

.vx-panel h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--vx-muted);
    margin: 1.5rem 0 0.6rem;
}

.vx-panel > :last-child {
    margin-bottom: 0;
}

.vx-panel .table-responsive {
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.vx-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--vx-muted);
}

.vx-empty strong {
    display: block;
    color: var(--vx-heading);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

/* ---------- Projects ---------- */

.vx-projects-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .vx-projects-layout {
        grid-template-columns: 1fr;
    }
}

.vx-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vx-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
    padding: 1.1rem 1.25rem;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    transition: border-color 0.15s, transform 0.15s, background-color 0.15s;
}

.vx-project-card:hover,
.vx-project-card:focus-within {
    border-color: rgba(78, 161, 255, 0.6);
    background: var(--vx-surface-raised);
    transform: translateY(-1px);
}

.vx-project-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.vx-project-card h3 a {
    color: var(--vx-heading);
    text-decoration: none;
}

/* Make the whole card the click target while keeping one link for assistive tech. */
.vx-project-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.vx-project-card p {
    margin: 0;
    color: var(--vx-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vx-project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--vx-muted);
}

.vx-pill {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--vx-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--vx-text);
}

/* ---------- Sign-in and account flow cards ---------- */

.vx-auth {
    display: flex;
    justify-content: center;
    padding: clamp(1rem, 7vh, 4.5rem) 0 3rem;
}

.vx-auth-card {
    width: 100%;
    max-width: 27rem;
    padding: 2rem;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
    .vx-auth-card {
        padding: 1.5rem 1.25rem;
    }
}

.vx-auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.vx-auth-card h2,
.vx-auth-card .vx-auth-lead {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--vx-muted);
    margin-bottom: 1.5rem;
}

.vx-auth-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.vx-auth-card hr {
    margin: 1.25rem 0;
}

/* The scaffolded Identity pages assume a wide page; inside the card every column is full width. */
.vx-auth-card .row > * {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

.vx-auth-card .alert {
    font-size: 0.9rem;
}

.vx-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--vx-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vx-auth-divider::before,
.vx-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vx-border);
}

.vx-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.vx-auth-row label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.vx-auth-row .form-check-input {
    margin: 0;
}

.vx-auth-footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--vx-muted);
}

.vx-auth-footer p {
    margin: 0.35rem 0 0;
}

.vx-external-logins {
    display: grid;
    gap: 0.5rem;
}

/* ---------- Status pages (404, error, access denied) ---------- */

.vx-status {
    max-width: 34rem;
    margin: 0 auto;
    padding: clamp(2rem, 12vh, 7rem) 0 4rem;
    text-align: center;
}

.vx-status-code {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vx-brand);
    margin-bottom: 0.75rem;
}

.vx-status h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.vx-status p {
    color: var(--vx-muted);
}

.vx-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------- Landing page ---------- */

.vx-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vx-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(60rem 28rem at 75% -10%, rgba(78, 161, 255, 0.16), transparent 60%),
        radial-gradient(40rem 22rem at 5% 0%, rgba(169, 144, 221, 0.10), transparent 60%);
    border-bottom: 1px solid var(--vx-border);
}

.vx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 991.98px) {
    .vx-hero-grid {
        grid-template-columns: 1fr;
    }
}

.vx-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vx-brand);
}

.vx-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.vx-hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--vx-muted);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.vx-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vx-cta .btn {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.vx-hero-note {
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: var(--vx-muted);
}

/* Decorative editor mock-up */
.vx-mock {
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    background: var(--vx-surface);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    overflow: hidden;
}

.vx-mock-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--vx-border);
    background: var(--vx-surface-raised);
}

.vx-mock-bar span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #3a3e47;
}

.vx-mock-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem;
}

.vx-mock-monitor {
    aspect-ratio: 16 / 9;
    border-radius: 0.35rem;
    background: linear-gradient(135deg, #1b2a44, #0b0d12 70%);
    display: grid;
    place-items: center;
}

.vx-mock-monitor:first-child {
    background: linear-gradient(135deg, #2d2440, #0b0d12 70%);
}

.vx-mock-monitor svg {
    width: 2rem;
    height: 2rem;
    opacity: 0.7;
}

.vx-mock-timeline {
    position: relative;
    display: grid;
    gap: 0.3rem;
    padding: 0.6rem;
    border-top: 1px solid var(--vx-border);
    background: #1d1f24;
}

.vx-mock-track {
    display: flex;
    gap: 0.2rem;
    height: 1.35rem;
    padding: 0.15rem;
    border-radius: 0.25rem;
    background: #25282e;
}

.vx-mock-clip {
    flex: var(--w, 1);
    border-radius: 0.2rem;
    background: var(--c, #2e9fd0);
    opacity: 0.9;
}

.vx-mock-gap {
    flex: var(--w, 1);
}

.vx-mock-playhead {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 42%;
    width: 2px;
    background: var(--vx-brand);
    box-shadow: 0 0 0.5rem rgba(78, 161, 255, 0.8);
}

.vx-section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.vx-section-alt {
    background: var(--vx-surface);
    border-top: 1px solid var(--vx-border);
    border-bottom: 1px solid var(--vx-border);
}

.vx-section-head {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.vx-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.vx-section-head p {
    color: var(--vx-muted);
    font-size: 1.05rem;
    margin: 0;
}

.vx-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vx-feature {
    padding: 1.5rem;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
}

.vx-feature-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 0.6rem;
    background: rgba(78, 161, 255, 0.12);
    color: var(--vx-brand);
}

.vx-feature-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.vx-feature h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.vx-feature p {
    margin: 0;
    color: var(--vx-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.vx-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: vx-step;
}

.vx-steps li {
    counter-increment: vx-step;
}

.vx-steps li::before {
    content: counter(vx-step);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(78, 161, 255, 0.5);
    border-radius: 50%;
    color: var(--vx-brand);
    font-weight: 600;
    font-size: 0.9rem;
}

.vx-steps h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.vx-steps p {
    margin: 0;
    color: var(--vx-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.vx-cta-band {
    text-align: center;
}

.vx-cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.vx-cta-band p {
    color: var(--vx-muted);
    max-width: 36rem;
    margin: 0 auto 1.75rem;
}

.vx-cta-band .vx-cta {
    justify-content: center;
}

.vx-footer {
    border-top: 1px solid var(--vx-border);
    padding: 1.75rem 0;
    font-size: 0.875rem;
    color: var(--vx-muted);
}

.vx-footer .vx-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.vx-footer nav {
    display: flex;
    gap: 1.25rem;
}

.vx-footer a {
    color: var(--vx-muted);
    text-decoration: none;
}

.vx-footer a:hover {
    color: var(--vx-heading);
}

/* ---------- Framework UI ---------- */

.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: "An error has occurred."
    }

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 2000;
    width: min(36rem, calc(100vw - 2rem));
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    background: #3a1d1d;
    border: 1px solid #7a3434;
    border-radius: var(--vx-radius-sm);
    color: #ffd9d9;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

    #blazor-error-ui .reload {
        color: #fff;
        margin-left: 0.5rem;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.9rem;
        top: 0.7rem;
    }

/* Account settings pages title their panel with an h3. */
.vx-manage h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--vx-heading);
    margin: 0 0 1.25rem;
}

.form-floating > label {
    font-weight: 400;
    font-size: 1rem;
}
