/* Top progress bar — cosmetic only; pointer-events: none at all times */

.quote-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 10001;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.08s ease;
    background: hsl(154 100% 8% / 0.4);
    box-shadow: 0 2px 14px hsl(154 100% 22% / 0.55);
}

.quote-nav-progress.is-visible {
    opacity: 1;
    animation: quote-nav-progress-pulse 1.2s ease-in-out infinite;
}

.quote-nav-progress__bar {
    height: 100%;
    width: 42%;
    background: linear-gradient(90deg, hsl(154 100% 38%), hsl(154 100% 58%), hsl(154 100% 42%));
    box-shadow:
        0 0 18px hsl(154 100% 50% / 0.9),
        0 0 36px hsl(154 100% 40% / 0.5);
    animation: quote-nav-progress-indeterminate 0.85s ease-in-out infinite;
}

@keyframes quote-nav-progress-indeterminate {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(360%); }
}

@keyframes quote-nav-progress-pulse {
    0%, 100% { box-shadow: 0 2px 14px hsl(154 100% 22% / 0.55); }
    50%       { box-shadow: 0 2px 22px hsl(154 100% 50% / 0.8); }
}

/* Small corner spinner — cosmetic, non-blocking */

.quote-nav-spinner {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 10000;
    width: 2.25rem;
    height: 2.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.08s ease, visibility 0.08s ease;
}

.quote-nav-spinner.is-visible {
    opacity: 1;
    visibility: visible;
}

.quote-nav-spinner__ring {
    width: 100%;
    height: 100%;
    border: 2.5px solid hsl(154 100% 13% / 0.15);
    border-top-color: hsl(154 100% 38%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px hsl(154 100% 13% / 0.12);
    animation: quote-nav-spin 0.7s linear infinite;
}

/* Per-card loading state (scoped inside the card, pointer-events: none) */

.mock-gateway__card {
    position: relative;
}

.mock-gateway__card-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: inherit;
    background: rgba(0, 26, 16, 0.78);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.08s ease, visibility 0.08s ease;
}

.mock-gateway__card.is-navigating .mock-gateway__card-loading {
    opacity: 1;
    visibility: visible;
}

.mock-gateway__card.is-navigating .mock-gateway__card-body {
    opacity: 0.25;
}

.mock-gateway__card-spinner {
    width: 2rem;
    height: 2rem;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: hsl(154 100% 55%);
    border-radius: 50%;
    animation: quote-nav-spin 0.7s linear infinite;
}

.mock-gateway__card-loading-text {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.mock-gateway__card:active {
    transform: scale(0.98) translateY(0);
    border-color: hsl(154 100% 45% / 0.55);
    box-shadow:
        0 0 0 2px hsl(154 100% 45% / 0.35),
        0 8px 24px rgba(0, 0, 0, 0.25);
    transition-duration: 0.05s;
}

.mock-gateway__card-body {
    transition: opacity 0.08s ease;
}

@keyframes quote-nav-spin {
    to { transform: rotate(360deg); }
}

/* Disable non-clicked cards and quote links while navigation is in flight */

.quote-nav-busy .mock-gateway__card:not(.is-navigating) {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

.quote-nav-busy a[href^="/quote"]:not(.is-navigating) {
    pointer-events: none;
    opacity: 0.55;
}
