:root {
    --vpx-font-sans: "Ubuntu", sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: var(--vpx-font-sans);
}

.vpx-flash-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    width: min(26rem, calc(100vw - 2rem));
}

.vpx-wordmark,
.vpx-wordmark-sm,
.vpx-auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ct-dark);
}

.vpx-wordmark {
    font-size: 1.1rem;
}

.vpx-wordmark-sm {
    font-size: 0.78rem;
}

.vpx-auth-brand {
    min-width: 9rem;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 2px solid var(--ct-dark);
    border-radius: 1rem;
    background: var(--ct-white);
    box-shadow: 6px 6px 0 0 var(--ct-dark);
}

.vpx-topbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.vpx-topbar-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.vpx-topbar-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vpx-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vpx-topbar-email {
    font-size: 0.875rem;
    color: var(--ct-muted);
}

.vpx-topnav-strip {
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vpx-topnav-strip .navbar {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}

.vpx-topnav-strip .page-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vpx-topnav-strip .navbar-collapse {
    flex-basis: 100%;
}

.vpx-topnav-strip .navbar-nav {
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0;
}

#vpx-access,
#invite-links {
    scroll-margin-top: 6.5rem;
}

.vpx-topnav-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: none;
    color: #f1f4f8;
    padding: 0.55rem 0.5rem;
    font-size: 1.1rem;
    line-height: 1;
}

.vpx-topnav-toggler:focus {
    box-shadow: none;
}

.vpx-topnav-toggler-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.vpx-topnav-toggler[aria-expanded="true"] .vpx-topnav-toggler-icon {
    transform: rotate(90deg);
}

.vpx-topnav-toggler-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (max-width: 991.98px) {
    #vpx-access,
    #invite-links {
        scroll-margin-top: 8rem;
    }
}

@media (min-width: 992px) {
    .vpx-topnav-strip .navbar-collapse {
        display: block !important;
        flex-basis: auto;
    }
}

.vpx-topnav-strip .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.9rem;
    font-weight: 700;
    color: var(--ct-dark);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.vpx-topnav-strip .nav-link .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.vpx-topnav-strip .nav-link.active,
.vpx-topnav-strip .nav-link:hover,
.vpx-topnav-strip .nav-link:focus {
    color: var(--ct-primary);
    background: rgba(72, 143, 246, 0.1);
}

.vpx-hero-card {
    overflow: hidden;
    border-width: 2px;
    border-style: dashed;
    background:
        radial-gradient(circle at top right, rgba(72, 143, 246, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(64, 179, 108, 0.08), rgba(255, 255, 255, 0.96));
}

.vpx-hero-title {
    font-size: clamp(1.3rem, 2vw + 1rem, 1.75rem);
    line-height: 1.15;
}

.vpx-summary-card,
.vpx-mini-stat,
.vpx-qr-frame,
.vpx-auth-panel {
    border: 2px solid var(--ct-border-color);
    border-radius: 1.25rem;
    background: var(--ct-white);
}

.vpx-summary-card,
.vpx-auth-panel {
    box-shadow: none;
}

.vpx-mini-stat {
    padding: 1rem;
}

.vpx-mini-stat-inline {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vpx-mini-stat-referrals {
    width: 100%;
}

.vpx-mini-stat-summary {
    white-space: nowrap;
}

.vpx-referrals-preview {
    white-space: normal;
    word-break: break-word;
}

.vpx-kpi-card .avatar-title {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.vpx-copy-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
}

.vpx-link-panel,
.vpx-detail-card {
    border: 2px solid var(--ct-border-color);
    border-radius: 1.25rem;
    background: var(--ct-white);
}

.vpx-link-panel {
    padding: 1rem;
}

#vpx-access .vpx-link-panel {
    border-color: #a78bfa;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(196, 181, 253, 0.08));
}

#vpx-access .vpx-link-panel .vpx-copy-input {
    border-color: #c4b5fd;
    background-color: rgba(245, 243, 255, 0.9);
    color: #4c1d95;
}

#vpx-access .vpx-link-panel .vpx-copy-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.22);
}

.vpx-access-actions {
    justify-content: center;
}

#vpx-access .vpx-access-actions {
    margin-top: 0.9rem;
}

#vpx-access .vpx-copy-config-btn {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

#vpx-access .vpx-copy-config-btn:hover,
#vpx-access .vpx-copy-config-btn:focus {
    background-color: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.vpx-auto-activation-progress {
    padding: 0.85rem 1rem;
    border: 1px dashed var(--ct-border-color);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.7);
}

.vpx-auto-activation-progress .progress {
    height: 0.55rem;
}

.vpx-auto-activation-progress-error {
    border-color: rgba(237, 96, 96, 0.5);
    background: rgba(237, 96, 96, 0.08);
}

.vpx-auto-activation-progress-error .vpx-auto-activation-bar {
    background-color: var(--ct-danger);
}

.vpx-auto-activation-progress-error .vpx-auto-activation-message {
    color: var(--ct-danger) !important;
}

.vpx-auto-activation-progress-success .vpx-auto-activation-bar {
    background-color: var(--ct-success);
}

.vpx-qr-frame {
    min-height: 100%;
    padding: 1rem;
    text-align: center;
}

.vpx-qr-canvas {
    width: 220px;
    min-height: 220px;
}

.vpx-qr-canvas img,
.vpx-qr-canvas canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.vpx-qr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.vpx-auth-card-copy {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

.vpx-auth-panel {
    background:
        radial-gradient(circle at top left, rgba(72, 143, 246, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.96));
}

.vpx-auth-panel-title {
    font-size: clamp(1.85rem, 2.2vw, 2.5rem);
    line-height: 1.15;
}

.vpx-auth-note {
    padding: 1rem;
    border: 2px dashed var(--ct-border-color);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
}

.vpx-auth-illustration {
    margin: 0 auto;
    max-width: 19rem;
}

.vpx-field-group .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vpx-control-list {
    display: grid;
    gap: 0.85rem;
}

.vpx-control-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--ct-border-color);
}

.vpx-control-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vpx-control-item span,
.vpx-control-item strong {
    display: block;
}

.vpx-control-item strong {
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.vpx-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
}

.vpx-footer-links a {
    margin: 0;
    white-space: nowrap;
}

.vpx-stage-list {
    display: grid;
    gap: 1rem;
}

.vpx-stage {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.vpx-stage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
}

.table code {
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .vpx-flash-stack {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .vpx-topnav-toggler {
        width: 100%;
        justify-content: flex-start;
        padding: 0.62rem 0.72rem;
        border-radius: 0.8rem;
        background: #111820;
        color: #f1f4f8;
    }

    .vpx-topnav-toggler:hover,
    .vpx-topnav-toggler:focus {
        color: #fff;
        background: #111820;
    }

    .vpx-topbar-shell {
        flex-wrap: nowrap;
    }

    .vpx-topbar-main {
        width: auto;
        flex: 0 0 auto;
    }

    .vpx-topbar-actions {
        width: auto;
        flex: 0 0 auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .vpx-topbar-meta {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .vpx-topbar-meta .badge {
        white-space: nowrap;
        font-size: 0.68rem;
        padding: 0.24rem 0.42rem;
    }

    .vpx-wordmark {
        font-size: 1rem;
    }

    .vpx-topbar-email {
        display: inline-flex;
        align-items: center;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .vpx-topnav-strip .navbar-collapse {
        width: 100%;
        background: #111820;
        border-radius: 0.8rem;
        padding: 0.3rem;
        margin-top: 0.2rem;
    }

    .vpx-topnav-strip .navbar-nav {
        width: 100%;
        align-items: stretch;
        gap: 0.1rem;
        padding: 0.35rem 0;
    }

    .vpx-topnav-strip .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 0.8rem;
        color: #f1f4f8;
    }

    .vpx-topnav-strip .nav-link:hover,
    .vpx-topnav-strip .nav-link:focus {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

@media (max-width: 767.98px) {
    .vpx-hero-title {
        font-size: 1.35rem;
    }

    .vpx-invite-create-form {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .vpx-mini-stat-inline {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .vpx-mini-stat-inline .vpx-mini-stat-primary {
        white-space: nowrap;
    }

    .vpx-mini-stat-inline .vpx-mini-stat-referrals {
        margin-top: 0.1rem;
    }

    .vpx-control-item {
        flex-direction: column;
    }

    .vpx-control-item strong {
        max-width: 100%;
        text-align: left;
    }

    .vpx-qr-canvas {
        width: 180px;
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .vpx-mini-stat-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .vpx-mini-stat-inline .vpx-mini-stat-referrals {
        width: 100%;
        margin-top: 0.1rem;
    }

    .vpx-mini-stat-inline .vpx-mini-stat-referrals p {
        display: block;
        width: 100%;
    }

    .vpx-instruction-controls {
        justify-content: center;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {
    .vpx-footer-links {
        justify-content: flex-end;
    }
}

html[data-layout="topnav"] .topnav .nav-item .nav-link, html[data-layout="topnav"] .topnav .nav-item > a {color: #eee}

.vpx-signup-form .vpx-form-help,
.vpx-signup-form .vpx-form-help ul,
.vpx-password-change-form .vpx-form-help,
.vpx-password-change-form .vpx-form-help ul {
    font-size: 0.76rem;
    line-height: 1.35;
}

.vpx-signup-form .vpx-form-help ul,
.vpx-password-change-form .vpx-form-help ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.vpx-instruction-accordion .accordion-item {
    border: 0;
    background: transparent;
}

.vpx-instruction-accordion .accordion-body {
    padding: 0.5rem 0 0;
}

.vpx-instruction-pulse {
    position: relative;
    z-index: 0;
    min-width: 8.5rem;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
    overflow: visible;
}

.vpx-instruction-pulse:hover,
.vpx-instruction-pulse:focus,
.vpx-instruction-pulse:active {
    background: linear-gradient(135deg, #c2410c, #ea580c);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34);
}

.vpx-instruction-pulse::before {
    content: "";
    position: absolute;
    inset: -0.15rem;
    border-radius: inherit;
    background: rgba(249, 115, 22, 0.3);
    z-index: -1;
    animation: vpxInstructionPulse 1.8s ease-out infinite;
}

.vpx-instruction-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 2px dashed var(--ct-border-color);
    padding: 0.35rem;
    background: #fff;
}

@keyframes vpxInstructionPulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
    }

    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 8px rgba(20, 184, 166, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vpx-instruction-pulse::before {
        animation: none;
    }
}
