/* ============================================================
   student-feedback.css
   Amplitude Coaching Institute — Student Feedback Form

   Design direction: "the mark-sheet, elevated." Deep academic
   navy paired with a brass/gold accent (the colour of a topper's
   medal, not a generic SaaS blue), a serif display face for the
   authority of a certificate, and ledger-line texture on the
   intro panel. Every shadow is layered (ambient + contact) so
   surfaces read as physically lifted, not flat.
   ============================================================ */



:root {
    /* ---- Academic Navy & Brass Theme (Light) ---- */
    --PageBg: #EEF1F7;
    --PageBgAccent: #E4E9F5;
    --PanelBg: #FFFFFF;
    --IntroBgStart: #0A1330;
    --IntroBgEnd: #182A57;
    --IntroText: #F5F7FC;

    --TextPrimary: #131A2E;
    --TextSecondary: #5B6478;
    --TextMuted: #8891A3;

    --InputBorder: #DDE2EE;
    --InputBg: #F8F9FD;
    --InputFocusBorder: #C9971E;
    --InputFocusShadow: 0 0 0 4px rgba(201, 151, 30, 0.16);

    --BrandAccent: #B8860B;       /* brass / merit gold */
    --BrandAccentDeep: #8F6608;
    --BrandAccentHover: #9C7209;
    --BrandAccentBg: #FBF3DF;
    --BrandAccentSoft: #F4E6C1;

    --Navy: #182A57;
    --NavyDeep: #0A1330;
    --NavyHover: #23386D;

    --Success: #0F8A5F;
    --SuccessBg: #E7F7EF;
    --SuccessBorder: #B6E7CE;
    --Error: #C7333B;
    --ErrorBg: #FDECEC;
    --ErrorBorder: #F3B9BC;
    --Info: #3457A6;
    --InfoBg: #EBF0FC;

    --RadiusSm: 10px;
    --RadiusMd: 14px;
    --RadiusLg: 26px;

    /* Layered "physical lift" shadows: a tight contact shadow
       plus a soft ambient one, tinted toward navy rather than
       pure black so surfaces feel like they belong to this page. */
    --ShadowXs: 0 1px 2px rgba(19, 26, 46, 0.06);
    --ShadowSoft: 0 1px 2px rgba(19, 26, 46, 0.04), 0 24px 48px -16px rgba(19, 26, 46, 0.16);
    --ShadowLift: 0 2px 6px rgba(19, 26, 46, 0.08), 0 16px 32px -12px rgba(19, 26, 46, 0.22);
    --ShadowPanel: 0 1px 3px rgba(19, 26, 46, 0.05), 0 40px 80px -24px rgba(10, 19, 48, 0.35);
    --ShadowInset: inset 0 1px 2px rgba(19, 26, 46, 0.04);
    --ShadowGold: 0 10px 24px -8px rgba(184, 134, 11, 0.35);

    --FontDisplay: 'Lora', Georgia, 'Times New Roman', serif;
    --FontBody: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Main layout fallbacks required by the parent app */
    --FormBorderColour: var(--InputBorder);
    --FormSurfaceColour: var(--PanelBg);
    --FormTextColour: var(--TextPrimary);
}

[data-theme="dark"] {
    --PageBg: #0B1120;
    --PageBgAccent: #0E1526;
    --PanelBg: #121A2E;
    --IntroBgStart: #050914;
    --IntroBgEnd: #101B3A;

    --TextPrimary: #EEF1F8;
    --TextSecondary: #9AA3B8;
    --TextMuted: #6B7690;

    --InputBorder: #263252;
    --InputBg: #0B1223;
    --InputFocusBorder: #D6A631;
    --InputFocusShadow: 0 0 0 4px rgba(214, 166, 49, 0.18);

    --BrandAccent: #D6A631;
    --BrandAccentDeep: #B8860B;
    --BrandAccentHover: #E8BA46;
    --BrandAccentBg: rgba(214, 166, 49, 0.12);
    --BrandAccentSoft: rgba(214, 166, 49, 0.24);

    --Navy: #24345F;
    --NavyDeep: #050914;
    --NavyHover: #32467E;

    --SuccessBg: rgba(15, 138, 95, 0.14);
    --SuccessBorder: rgba(15, 138, 95, 0.3);
    --ErrorBg: rgba(199, 51, 59, 0.14);
    --ErrorBorder: rgba(199, 51, 59, 0.32);
    --InfoBg: rgba(52, 87, 166, 0.16);

    --ShadowSoft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.55);
    --ShadowLift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 32px -12px rgba(0, 0, 0, 0.6);
    --ShadowPanel: 0 1px 3px rgba(0, 0, 0, 0.3), 0 40px 90px -24px rgba(0, 0, 0, 0.7);
    --ShadowGold: 0 10px 24px -8px rgba(214, 166, 49, 0.25);
}

/* ============================================================
   Theme Toggle
   ============================================================ */

#themeToggle {
    position: fixed;
    right: 20px;
    top: 12vh;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--FormBorderColour);
    background: var(--FormSurfaceColour);
    color: var(--FormTextColour);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ShadowLift);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.22s, box-shadow 0.22s;
    outline: none;
    font-size: 16px;
}
#themeToggle:hover {
    transform: scale(1.1) rotate(12deg);
    border-color: var(--BrandAccent);
    box-shadow: var(--ShadowGold);
    color: var(--BrandAccent);
}
#themeToggle:active { transform: scale(0.95); }
#themeToggle .icon-moon { display: block; }
#themeToggle .icon-sun  { display: none; }
[data-theme="dark"] #themeToggle .icon-moon { display: none; }
[data-theme="dark"] #themeToggle .icon-sun  { display: block; }

.VisuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Base Resets & Layout
   ============================================================ */

body {
    background:
        radial-gradient(1200px 500px at 15% -10%, var(--PageBgAccent), transparent),
        var(--PageBg);
    font-family: var(--FontBody);
}

.FeedbackPage {
    width: 100%;
    padding: 40px 16px 96px;
    display: flex;
    justify-content: center;
}

.FeedbackContainer {
    max-width: 1140px;
    width: 100%;
    background: var(--PanelBg);
    border-radius: var(--RadiusLg);
    box-shadow: var(--ShadowPanel);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(19, 26, 46, 0.04);
}

@media (min-width: 900px) {
    .FeedbackContainer {
        flex-direction: row;
        min-height: 750px;
    }
}

/* ---------- Intro Panel (Left) ---------- */
.FeedbackIntro {
    background:
        repeating-linear-gradient(
            180deg,
            rgba(184, 134, 11, 0.055) 0px,
            rgba(184, 134, 11, 0.055) 1px,
            transparent 1px,
            transparent 40px
        ),
        radial-gradient(720px 420px at 100% 0%, rgba(184, 134, 11, 0.16), transparent 60%),
        linear-gradient(160deg, var(--IntroBgStart), var(--IntroBgEnd));
    color: var(--IntroText);
    padding: 44px 28px;
    position: relative;
    overflow: hidden;
}

.FeedbackIntro::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 900px) {
    .FeedbackIntro {
        width: 38%;
        min-width: 380px;
        padding: 60px 52px;
    }
    .IntroContent {
        position: sticky;
        top: 56px;
    }
}

.FeedbackEyebrow {
    font-family: var(--FontBody);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8CD86;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.FeedbackEyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.8;
}

.FeedbackIntro h1 {
    font-family: var(--FontDisplay);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 18px;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.FeedbackIntro p {
    font-size: 15px;
    line-height: 1.7;
    color: #AEB8D1;
    margin-bottom: 36px;
    max-width: 34ch;
}

.FeedbackTrust {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.FeedbackTrustItem {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.TrustIcon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(184, 134, 11, 0.14);
    border: 1px solid rgba(184, 134, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8CD86;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.TrustText {
    font-size: 13.5px;
    color: #9AA6C4;
    line-height: 1.5;
    padding-top: 2px;
}

.TrustText strong {
    display: block;
    color: #F5F7FC;
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14.5px;
}

/* ---------- Form Panel (Right) ---------- */
.FeedbackFormWrapper {
    flex: 1;
    padding: 36px 24px;
}

@media (min-width: 900px) {
    .FeedbackFormWrapper {
        padding: 60px 68px;
    }
}

.FeedbackForm {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 580px;
}

.FormSection {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding: 24px 24px 26px;
    background: var(--InputBg);
    border: 1px solid var(--InputBorder);
    border-radius: var(--RadiusMd);
    box-shadow: var(--ShadowXs);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.FormSection::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--BrandAccent), transparent);
    opacity: 0.85;
}

.FormSection:focus-within {
    border-color: var(--BrandAccentSoft);
    box-shadow: var(--ShadowLift);
}

.FormSectionTitle {
    font-family: var(--FontDisplay);
    font-size: 19px;
    font-weight: 600;
    color: var(--TextPrimary);
    padding-bottom: 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--InputBorder);
    display: flex;
    align-items: center;
    gap: 10px;
}

.FormSectionHint {
    font-size: 13px;
    color: var(--TextSecondary);
    margin-top: -10px;
}

/* ---------- Form Fields ---------- */
.FieldGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .FieldGrid { grid-template-columns: 1fr 1fr; }
    .EmailVerifyGrid { grid-template-columns: 1fr auto; align-items: flex-end; }
}

.FormField {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.FormField label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--TextPrimary);
}

.Req { color: var(--BrandAccentDeep); }

.FormField input[type="text"],
.FormField input[type="email"],
.FormField select,
.FormField textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--TextPrimary);
    background: var(--PanelBg);
    border: 1.5px solid var(--InputBorder);
    border-radius: var(--RadiusSm);
    padding: 12px 16px;
    box-shadow: var(--ShadowInset);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.FormField input::placeholder,
.FormField textarea::placeholder {
    color: var(--TextMuted);
}

.FormField input[list] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6478' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Custom Select styling to normalize cross-browser appearance */
.CustomSelect { position: relative; }
.CustomSelect::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--TextSecondary);
    pointer-events: none;
    font-size: 12px;
}
.CustomSelect select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
}

.FormField textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.FormField input:hover:not(:focus):not(:read-only),
.FormField select:hover:not(:focus),
.FormField textarea:hover:not(:focus) {
    border-color: #C7CEE2;
}

.FormField input:focus,
.FormField select:focus,
.FormField textarea:focus {
    outline: none;
    background: var(--PanelBg);
    border-color: var(--InputFocusBorder);
    box-shadow: var(--InputFocusShadow);
}

.FormField input:read-only {
    opacity: 0.75;
    background: var(--InputBg);
    cursor: not-allowed;
}

.FieldFooter {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--TextSecondary);
    margin-top: 4px;
}

.FieldError {
    font-size: 12.5px;
    color: var(--Error);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-weight: 500;
}
.FieldError:empty { display: none; margin: 0; }
.FieldError::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    border-radius: var(--RadiusSm);
    font-weight: 600;
    letter-spacing: 0.005em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.BtnPrimary {
    background: linear-gradient(180deg, var(--Navy), var(--NavyDeep));
    color: #FFFFFF;
    padding: 12px 22px;
    font-size: 14px;
    box-shadow: var(--ShadowLift);
}
.BtnPrimary:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--NavyHover), var(--Navy));
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(19, 26, 46, 0.12), 0 20px 36px -14px rgba(19, 26, 46, 0.32);
}
.BtnPrimary:active:not(:disabled) { transform: translateY(0); }

.BtnSecondary {
    background: var(--BrandAccent);
    color: #FFFFFF;
    padding: 12px 20px;
    font-size: 14px;
    box-shadow: var(--ShadowGold);
}
.BtnSecondary:hover:not(:disabled) {
    background: var(--BrandAccentHover);
    transform: translateY(-1px);
}
.BtnSecondary:active:not(:disabled) { transform: translateY(0); }

.BtnLarge {
    width: 100%;
    padding: 16px;
    font-size: 15.5px;
    border-radius: var(--RadiusMd);
}

.BtnOutline {
    background: var(--PanelBg);
    border: 1.5px solid var(--InputBorder);
    color: var(--TextPrimary);
    padding: 12px 20px;
}
.BtnOutline:hover {
    background: var(--InputBg);
    border-color: #C7CEE2;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

.LinkBtn {
    background: none;
    color: var(--BrandAccentDeep);
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.LinkBtn:disabled { text-decoration: none; }

/* Spinner */
.BtnSpinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    position: absolute;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Slim indeterminate progress bar shown under Send/Verify buttons while busy */
.OtpProgress {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--InputBorder);
    overflow: hidden;
    margin-top: 10px;
}
.OtpProgress[hidden] { display: none !important; }
.OtpProgress::after {
    content: "";
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--BrandAccent), transparent);
    animation: progressSlide 1.1s ease-in-out infinite;
}
@keyframes progressSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ---------- OTP Block ---------- */
.OtpBlock {
    background: var(--PanelBg);
    border: 1.5px solid var(--InputBorder);
    padding: 22px;
    border-radius: var(--RadiusMd);
    margin-top: 4px;
    box-shadow: var(--ShadowXs);
}

.OtpBlock[hidden] {
    display: none !important;
}

.OtpMeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Inline status line beneath the Send/Verify controls. Carries three
   states — sending (info, animated dots), success and error — so the
   busy state is legible in text, not just the button spinner. */
.OtpStatusText {
    font-size: 13px;
    font-weight: 500;
    color: var(--Success);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--RadiusSm);
    background: var(--SuccessBg);
    border: 1px solid var(--SuccessBorder);
}
.OtpStatusText.IsVisible { display: inline-flex; }

.OtpStatusText::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f058"; /* circle-check */
    flex-shrink: 0;
}

.OtpStatusText.IsSending {
    color: var(--Info);
    background: var(--InfoBg);
    border-color: rgba(52, 87, 166, 0.25);
}
.OtpStatusText.IsSending::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid rgba(52, 87, 166, 0.3);
    border-top-color: var(--Info);
    animation: btnSpin 0.7s linear infinite;
}

.OtpStatusText.IsError {
    color: var(--Error);
    background: var(--ErrorBg);
    border-color: var(--ErrorBorder);
    animation: statusShake 0.4s ease;
}
.OtpStatusText.IsError::before {
    content: "\f06a"; /* triangle-exclamation */
}

@keyframes statusShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.VerifiedBadge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--Success);
    background: var(--SuccessBg);
    border: 1px solid var(--SuccessBorder);
    padding: 11px 16px;
    border-radius: var(--RadiusSm);
    box-shadow: var(--ShadowXs);
}
.VerifiedBadge[hidden] {
    display: none !important;
}

.FormActions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.SubmitHint {
    text-align: center;
    font-size: 13px;
    color: var(--TextSecondary);
}

/* ---------- Photo Upload ---------- */
.photo-field-group { display: flex; flex-direction: column; gap: 8px; }
.photo-field-label { font-size: 12.5px; font-weight: 600; color: var(--TextPrimary); display: flex; justify-content: space-between; }
#photoHint { color: var(--TextSecondary); font-weight: 400; }

.ImageContainer input[type="file"] { display: none; }

.photo-upload-label {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: var(--PanelBg);
    border: 1.5px dashed #C7CEE2;
    border-radius: var(--RadiusMd);
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-upload-label:hover {
    border-color: var(--BrandAccent);
    border-style: solid;
    background: var(--BrandAccentBg);
    box-shadow: var(--ShadowLift);
    transform: translateY(-1px);
}

.photo-preview-ring {
    position: relative;
    width: 62px; height: 62px;
    flex-shrink: 0;
}

.photo-preview-ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--InputBorder);
    background-color: var(--InputBg);
    box-shadow: var(--ShadowXs);
}

.photo-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 19, 48, 0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; opacity: 0; transition: opacity 0.2s;
}

.photo-upload-label:hover .photo-overlay { opacity: 1; }

.photo-upload-text {
    display: flex; flex-direction: column; gap: 4px;
}
.photo-upload-text strong { font-size: 14px; color: var(--BrandAccentDeep); }
.photo-upload-text span { font-size: 12px; color: var(--TextSecondary); }

.CropperOne {
    display: none; flex-direction: column;
    border: 1.5px solid var(--InputBorder);
    border-radius: var(--RadiusMd);
    overflow: hidden; margin-top: 16px;
    box-shadow: var(--ShadowLift);
}

.cropper-panel-header {
    background: var(--InputBg); padding: 12px 16px;
    font-size: 12px; font-weight: 600; color: var(--TextSecondary);
    border-bottom: 1px solid var(--InputBorder);
    display: flex; align-items: center; gap: 8px;
}

.ImageAfterUpload { background: var(--NavyDeep); }
.ImageAfterUpload img { max-height: 300px; display: block; margin: 0 auto; width: 100%; object-fit: contain; }
.CropperOne .cropper-view-box,
.CropperOne .cropper-face { border-radius: 50%; }

.CropButtons {
    display: flex; justify-content: flex-end; gap: 12px;
    padding: 16px; background: var(--PanelBg);
    border-top: 1px solid var(--InputBorder);
}

.ClearFileContainer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--SuccessBg);
    border: 1px solid var(--SuccessBorder);
    border-radius: var(--RadiusSm); margin-top: 12px;
}
.crop-success-badge { font-size: 13px; font-weight: 600; color: var(--Success); display: flex; gap: 8px; align-items: center; }
.clear-btn { background: transparent; color: var(--TextSecondary); padding: 8px; border: 1px solid var(--InputBorder); }
.clear-btn:hover { color: var(--Error); background: var(--ErrorBg); border-color: var(--ErrorBorder); }

#photoError { display: none; color: var(--Error); font-size: 13px; margin-top: 8px; font-weight: 500; }

/* ---------- Status Overlay ---------- */
.StatusOverlay {
    position: fixed; inset: 0; background: rgba(10, 19, 48, 0.65);
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
    /* Must stay above #themeToggle (z-index: 9999) — otherwise the toggle
       remains clickable/visible through what's supposed to be a blocking
       overlay, which is what made the error/waiting card feel "stuck"
       alongside other floating UI instead of clearly on top of it. */
    z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    padding: 20px;
}
.StatusOverlay.IsVisible { opacity: 1; pointer-events: auto; }

.StatusCard {
    background: var(--PanelBg); border-radius: var(--RadiusLg);
    padding: 40px; max-width: 400px; width: 100%; text-align: center;
    box-shadow: var(--ShadowPanel); transform: translateY(20px) scale(0.98); transition: transform 0.3s ease;
}
.StatusOverlay.IsVisible .StatusCard { transform: translateY(0) scale(1); }

.StatusIconWrap {
    width: 66px; height: 66px; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.StatusCardSuccess .StatusIconWrap { background: var(--SuccessBg); color: var(--Success); font-size: 28px; box-shadow: 0 0 0 8px rgba(15, 138, 95, 0.08); }
.StatusCardError .StatusIconWrap { background: var(--ErrorBg); color: var(--Error); font-size: 28px; box-shadow: 0 0 0 8px rgba(199, 51, 59, 0.08); }
.StatusCardWaiting .StatusIconWrap { background: var(--BrandAccentBg); box-shadow: 0 0 0 8px rgba(184, 134, 11, 0.08); }

.StatusCardWaiting .Spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--BrandAccentSoft);
    border-top-color: var(--BrandAccent);
    animation: btnSpin 0.8s linear infinite;
}

.StatusCard h3 { font-family: var(--FontDisplay); font-size: 21px; font-weight: 600; color: var(--TextPrimary); margin-bottom: 8px; }
.StatusCard p { font-size: 14px; color: var(--TextSecondary); line-height: 1.55; }
.StatusCard .BtnOutline { margin-top: 24px; width: 100%; }

.ErrorList {
    background: var(--ErrorBg); color: var(--Error); border: 1px solid var(--ErrorBorder); border-radius: var(--RadiusSm);
    padding: 16px; font-size: 13px; text-align: left; margin-top: 16px;
    display: flex; flex-direction: column; gap: 8px; list-style: none;
}

.ErrorList li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ErrorList li::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}