

.preview-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.option-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.option-card:hover {
    transform: translateY(-6px);
    border-color: #ffd700;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--hue-gold) 25%, transparent);
}

/* ── 3. WAVE BARS ── */
.wave { gap: 5px; }
.wave .bar {
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--hue-gold, #f5b301), var(--brand-2, #ff2fb0));
    animation: wave 0.9s ease-in-out infinite;
}
.wave .bar:nth-child(1) { animation-delay: 0s; }
.wave .bar:nth-child(2) { animation-delay: 0.1s; }
.wave .bar:nth-child(3) { animation-delay: 0.2s; }
.wave .bar:nth-child(4) { animation-delay: 0.3s; }
.wave .bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave {
    0%, 100% { height: 10px; opacity: 0.5; }
    50%       { height: 50px; opacity: 1; }
}

@keyframes cw    { to { transform: rotate(360deg); } }
@keyframes ccw   { to { transform: rotate(-360deg); } }
@keyframes pulse-c {
    0%, 100% { transform: scale(1);   opacity: 0.7; }
    50%       { transform: scale(1.35); opacity: 0.3; }
}


.ov-wave { display: flex; align-items: flex-end; gap: 7px; height: 80px; }
.ov-wave .bar { width: 10px; border-radius: 5px; background: linear-gradient(180deg, var(--hue-gold, #f5b301), var(--brand-2, #ff2fb0)); animation: wave 0.9s ease-in-out infinite; }
.ov-wave .bar:nth-child(1) { animation-delay: 0s; }
.ov-wave .bar:nth-child(2) { animation-delay: 0.1s; }
.ov-wave .bar:nth-child(3) { animation-delay: 0.2s; }
.ov-wave .bar:nth-child(4) { animation-delay: 0.3s; }
.ov-wave .bar:nth-child(5) { animation-delay: 0.4s; }


/* THE ONE LOADING LOOK. Two of these were live at once: the page-load overlay
   (fragments/page-loader.html) fades in centred bars with the word "Loading…"
   underneath, while this one - the overlay every form submit raises - stacked
   its bars and its label side by side and then never showed the label at all
   (the fade-in rule below was written for a `.overlay.active` wrapper that does
   not exist on this element, so .ov-text sat at opacity 0 forever). Which of
   the two a visitor saw came down to how the page changed. Both are the same
   thing now: bars over the word, centred. */
.global-submit-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    background: rgba(20, 10, 40, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, opacity 0.2s ease;
}
.global-submit-loader.active {
    background: rgba(20, 10, 40, 0.75);
    backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: all;
}
.global-submit-loader .ov-wave {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 80px;
}
.global-submit-loader .ov-wave .bar {
    width: 10px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--hue-gold, #f5b301), var(--brand-2, #ff2fb0));
    animation: global-submit-wave 0.9s ease-in-out infinite;
}
.global-submit-loader .ov-wave .bar:nth-child(1) { animation-delay: 0s; }
.global-submit-loader .ov-wave .bar:nth-child(2) { animation-delay: 0.1s; }
.global-submit-loader .ov-wave .bar:nth-child(3) { animation-delay: 0.2s; }
.global-submit-loader .ov-wave .bar:nth-child(4) { animation-delay: 0.3s; }
.global-submit-loader .ov-wave .bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes global-submit-wave {
    0%, 100% { height: 10px; opacity: 0.5; }
    50% { height: 50px; opacity: 1; }
}

.ov-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s 0.25s, transform 0.3s 0.25s;
}

/* The label rides in with whatever overlay is holding it. `.overlay` was the
   only selector here, and nothing on the site carries that class - so on the
   global submit loader, which is `.global-submit-loader.active`, the text was
   never revealed. Both spellings are matched now. */
.overlay.active .ov-text,
.global-submit-loader.active .ov-text { opacity: 1; transform: translateY(0); }

.dots span { animation: blink 1.4s infinite; opacity: 0; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100%{opacity:0} 40%{opacity:1} }

/* ── Inline (in-panel) loading ────────────────────────────────────────────
   The same wave-over-label as the two full-screen overlays, for the places
   that swap ONE panel rather than the whole page - the profile tabs, which
   used to drop a bare "Loading..." paragraph in the middle of a card grid
   while every other wait on the site showed the animation. Centred in
   whatever box it is dropped into, and no fade-in delay: it only ever
   appears when a wait has already started. */
.inline-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 3rem 1rem;
}

.inline-loader .ov-wave { height: 60px; }
.inline-loader .ov-wave .bar { width: 8px; }
.inline-loader .ov-text { opacity: 1; transform: none; }
