
/* static/css/auth/client_auth.css */

/* ============================================================
   NAIROBI HOOKUP
   DATER AUTHENTICATION
   frontend/static/css/auth/dater_auth.css
   ============================================================ */

:root {
    --primary: #ff3b7f;
    --primary-dark: #e52d6d;
    --primary-soft: rgba(255, 59, 127, 0.12);

    --background: #09090f;

    --surface: #11121a;
    --surface-raised: #171923;
    --surface-hover: #1c1e2a;

    --text: #ffffff;
    --text-secondary: #b8bac7;
    --text-muted: #777a8b;

    --border: rgba(255, 255, 255, 0.09);
    --border-focus: rgba(255, 59, 127, 0.65);

    --success: #31d17c;
    --success-soft: rgba(49, 209, 124, 0.10);

    --danger: #ff5c72;
    --danger-background: rgba(255, 92, 114, 0.10);

    --radius: 20px;
    --input-radius: 13px;

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 8px 30px rgba(0, 0, 0, 0.25);
}


/* ============================================================
   RESET
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    color-scheme: dark;
}

body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 20px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 59, 127, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(120, 70, 255, 0.10),
            transparent 30%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

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


/* ============================================================
   AUTH CONTAINER
   ============================================================ */

.auth-container {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================================
   AUTH CARD
   ============================================================ */

.auth-card {
    width: min(100%, 430px);

    padding: 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* ============================================================
   BRAND
   ============================================================ */

.auth-card h1 {
    margin-bottom: 30px;

    text-align: center;

    color: var(--text);

    font-size: clamp(1.8rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: -0.045em;
}

.auth-card h1::after {
    content: "";

    display: block;

    width: 42px;
    height: 4px;

    margin: 12px auto 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #ff6b9d
        );
}


/* ============================================================
   ERROR
   ============================================================ */

#auth-error {
    display: none;

    margin-bottom: 18px;
    padding: 13px 15px;

    border: 1px solid rgba(255, 92, 114, 0.20);
    border-radius: 12px;

    background: var(--danger-background);

    color: var(--danger);

    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
}


/* ============================================================
   AUTH TABS
   ============================================================ */

.auth-tabs {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;

    margin-bottom: 22px;
    padding: 5px;

    background: var(--surface-raised);

    border: 1px solid var(--border);
    border-radius: 14px;
}


/* ============================================================
   AUTH TAB
   ============================================================ */

.auth-tab {
    width: 100%;

    min-height: 44px;

    margin: 0 !important;
    padding: 0 12px !important;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 0 !important;
    border-radius: 10px !important;

    background: transparent !important;

    color: var(--text-muted) !important;

    font-size: 0.86rem !important;
    font-weight: 700 !important;

    cursor: pointer;

    box-shadow: none !important;
    transform: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.auth-tab:hover {
    background: var(--surface-hover) !important;
    color: var(--text-secondary) !important;

    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.auth-tab.active {
    background: var(--surface-hover) !important;
    color: var(--text) !important;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

.auth-tab svg {
    width: 16px;
    height: 16px;

    stroke-width: 2.3;
}


/* ============================================================
   AUTH PANELS
   ============================================================ */

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}


/* ============================================================
   FORMS
   ============================================================ */

.auth-panel form,
#verification-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}


/* ============================================================
   INPUTS
   ============================================================ */

.auth-card input {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: var(--input-radius);

    outline: none;

    background: var(--surface-raised);
    color: var(--text);

    font: inherit;
    font-size: 0.95rem;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-card input::placeholder {
    color: var(--text-muted);
}

.auth-card input:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.14);
}

.auth-card input:focus {
    background: var(--surface-hover);

    border-color: var(--border-focus);

    box-shadow:
        0 0 0 3px var(--primary-soft),
        0 8px 20px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.auth-card button {
    width: 100%;
    min-height: 52px;

    margin-top: 4px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 0;
    border-radius: var(--input-radius);

    background:
        linear-gradient(
            135deg,
            #ff4b88,
            var(--primary)
        );

    color: #ffffff;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(255, 59, 127, 0.20);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.auth-card button:hover:not(:disabled) {
    filter: brightness(1.06);

    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(255, 59, 127, 0.28);
}

.auth-card button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-card button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-card button svg {
    width: 17px;
    height: 17px;

    stroke-width: 2.4;
}


/* ============================================================
   EMAIL VERIFICATION PANEL
   ============================================================ */

.verification-panel {
    display: none;

    text-align: center;
}

.verification-panel.active {
    display: block;
}


/* ============================================================
   VERIFICATION ICON
   ============================================================ */

.verification-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 59, 127, 0.22);
    border-radius: 50%;

    background: var(--primary-soft);

    color: var(--primary);
}

.verification-icon svg {
    width: 31px;
    height: 31px;

    stroke-width: 1.9;
}


/* ============================================================
   VERIFICATION HEADING
   ============================================================ */

.verification-panel h2 {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.verification-description {
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 0.9rem;
    line-height: 1.55;
}

.verification-description strong {
    color: var(--text);
    font-weight: 650;

    word-break: break-word;
}


/* ============================================================
   VERIFICATION LABEL
   ============================================================ */

.verification-label {
    display: block;

    margin-bottom: -5px;

    text-align: left;

    color: var(--text-secondary);

    font-size: 0.82rem;
    font-weight: 650;
}


/* ============================================================
   VERIFICATION CODE
   ============================================================ */

.verification-code-input {
    min-height: 58px !important;

    text-align: center;

    font-size: 1.45rem !important;
    font-weight: 750 !important;

    letter-spacing: 0.45em;

    padding-left: calc(16px + 0.45em) !important;
}

.verification-code-input::placeholder {
    letter-spacing: 0.35em;
    opacity: 0.45;
}


/* ============================================================
   VERIFICATION ACTIONS
   ============================================================ */

.verification-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
}

.verification-link {
    width: auto !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 5px 8px !important;

    display: inline-flex !important;

    background: transparent !important;

    color: var(--primary) !important;

    font-size: 0.84rem !important;
    font-weight: 650 !important;

    box-shadow: none !important;
    transform: none !important;

    transition:
        color 0.18s ease,
        opacity 0.18s ease !important;
}

.verification-link:hover:not(:disabled) {
    color: #ff78a7 !important;
    opacity: 1;

    background: transparent !important;

    box-shadow: none !important;
    transform: none !important;
}

.verification-link.secondary {
    color: var(--text-muted) !important;
}

.verification-link.secondary:hover:not(:disabled) {
    color: var(--text-secondary) !important;
}

.verification-link svg {
    width: 15px;
    height: 15px;
}


/* ============================================================
   EXPIRY
   ============================================================ */

.verification-expiry {
    margin-top: 18px;

    color: var(--text-muted);

    font-size: 0.76rem;
    line-height: 1.45;
}


/* ============================================================
   SUCCESS STATE
   ============================================================ */

.verification-panel.is-success .verification-icon {
    background: var(--success-soft);
    border-color: rgba(49, 209, 124, 0.20);
    color: var(--success);
}


/* ============================================================
   AUTOFILL
   ============================================================ */

.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);

    box-shadow:
        0 0 0 1000px var(--surface-raised) inset;

    caret-color: var(--text);
}


/* ============================================================
   SWEETALERT
   ============================================================ */

.swal2-popup {
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;

    background: var(--surface) !important;

    color: var(--text) !important;
}

.swal2-title {
    color: var(--text) !important;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
}

.swal2-confirm {
    border-radius: 10px !important;

    background: var(--primary) !important;

    box-shadow: none !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

    body {
        padding: 18px 14px;
        align-items: center;
    }

    .auth-container {
        min-height: auto;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .auth-card h1 {
        margin-bottom: 26px;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {

    body {
        padding: 12px 10px;
    }

    .auth-card {
        padding: 26px 18px;
    }

    .auth-card input,
    .auth-card button {
        min-height: 50px;
    }

    .verification-code-input {
        font-size: 1.25rem !important;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}



/* ============================================================
   EMAIL VERIFICATION
   ============================================================ */

.verification-panel {
    display: none;
    text-align: center;
}

.verification-panel.active {
    display: block;
}

.auth-tabs.is-hidden {
    display: none;
}

.verification-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--primary-soft);
    color: var(--primary);
}

.verification-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.verification-panel h2 {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 1.35rem;
    font-weight: 800;
}

.verification-description {
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 0.9rem;
    line-height: 1.55;
}

.verification-description strong {
    color: var(--text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.verification-label {
    display: block;
    margin-bottom: 8px;

    color: var(--text-secondary);

    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.verification-code-input {
    width: 100%;

    min-height: 58px !important;

    text-align: center;

    font-size: 1.5rem !important;
    font-weight: 800;

    letter-spacing: 0.45em;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 18px;
}

.verification-link {
    width: 100% !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 0 !important;
    border-radius: 10px !important;

    background: transparent !important;

    color: var(--primary) !important;

    font-size: 0.85rem !important;
    font-weight: 700 !important;

    box-shadow: none !important;

    transform: none !important;
}

.verification-link:hover:not(:disabled) {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.verification-link.secondary {
    color: var(--text-muted) !important;
}

.verification-link.secondary:hover:not(:disabled) {
    color: var(--text-secondary) !important;
}

.verification-link svg {
    width: 15px;
    height: 15px;
}

.verification-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.verification-expiry {
    margin-top: 18px;

    color: var(--text-muted);

    font-size: 0.76rem;
    line-height: 1.4;
}


.verification-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}





/* ============================================================
   FORGOT PASSWORD
   ============================================================ */

.forgot-password {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.auth-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 6px;

    color: var(--auth-primary, #e91e63);

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 180ms ease,
        opacity 180ms ease;
}

.auth-link:hover {
    color: var(--auth-primary-dark, #c2185b);
}

.auth-link:focus-visible {
    outline: 2px solid var(--auth-primary, #e91e63);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ============================================================
   PASSWORD RESET PANELS
   ============================================================ */

.password-reset-panel,
.password-reset-code-panel {
    display: none;
}

.password-reset-panel.active,
.password-reset-code-panel.active {
    display: block;
}

.password-reset-panel input,
.password-reset-code-panel input {
    width: 100%;
    box-sizing: border-box;
}

.password-reset-code-panel
    .verification-code-input {
    text-align: center;
    letter-spacing: 6px;
    font-weight: 700;
    font-size: 24px;
}

.password-reset-panel form,
.password-reset-code-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}





























/* ============================================================
   PROFILE COMPLETION — ONE QUESTION AT A TIME
   ============================================================ */
/* ============================================================
   PROFILE COMPLETION — ONE QUESTION AT A TIME
   ============================================================ */

.profile-completion-panel {
    display: none;
    width: 100%;
    text-align: center;
}

.profile-completion-panel.active {
    display: block;
}

.profile-completion-panel[aria-hidden="true"] {
    display: none;
}

/* ============================================================
   PROGRESS
   ============================================================ */

.profile-completion-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.profile-completion-progress span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* ============================================================
   ICON
   ============================================================ */

.profile-completion-panel .verification-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
}

.profile-completion-panel .verification-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

/* ============================================================
   QUESTION
   ============================================================ */

.profile-completion-panel h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.profile-completion-panel .verification-description {
    max-width: 360px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================================================
   QUESTION CONTENT
   ============================================================ */

#profile-question-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   QUESTION INPUT
   ============================================================ */

.profile-question-input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    outline: none;
    background: var(--surface-raised);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.profile-question-input:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.14);
}

.profile-question-input:focus {
    background: var(--surface-hover);
    border-color: var(--border-focus);
    box-shadow:
        0 0 0 3px var(--primary-soft),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   DATE INPUT
   ============================================================ */

.profile-question-input[type="date"] {
    color-scheme: dark;
    cursor: pointer;
}

/* ============================================================
   SELECT
   ============================================================ */

select.profile-question-input {
    cursor: pointer;
}

select.profile-question-input option {
    background: var(--surface-raised);
    color: var(--text);
}

/* ============================================================
   NEXT / FINISH ACTION
   ============================================================ */

.profile-completion-actions {
    width: 100%;
    margin-top: 14px;
}

.profile-completion-next {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--input-radius);
    outline: none;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.profile-completion-next:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.profile-completion-next:active:not(:disabled) {
    transform: translateY(1px);
}

.profile-completion-next:focus-visible {
    box-shadow:
        0 0 0 3px var(--primary-soft),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.profile-completion-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.profile-completion-next svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke-width: 2.2;
}

/* ============================================================
   STEP TRANSITION
   ============================================================ */

.profile-completion-panel.step-transition-out {
    pointer-events: none;
}

.profile-completion-panel.step-transition-out
.profile-completion-progress,
.profile-completion-panel.step-transition-out
.verification-icon,
.profile-completion-panel.step-transition-out
h2,
.profile-completion-panel.step-transition-out
.verification-description,
.profile-completion-panel.step-transition-out
#profile-question-content,
.profile-completion-panel.step-transition-out
.profile-completion-actions {
    animation: profile-question-exit 0.28s ease forwards;
}

.profile-completion-panel.step-transition-in
.profile-completion-progress,
.profile-completion-panel.step-transition-in
.verification-icon,
.profile-completion-panel.step-transition-in
h2,
.profile-completion-panel.step-transition-in
.verification-description,
.profile-completion-panel.step-transition-in
#profile-question-content,
.profile-completion-panel.step-transition-in
.profile-completion-actions {
    animation: profile-question-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-completion-panel.step-transition-in
.profile-completion-progress {
    animation-delay: 0.02s;
}

.profile-completion-panel.step-transition-in
.verification-icon {
    animation-delay: 0.05s;
}

.profile-completion-panel.step-transition-in
h2 {
    animation-delay: 0.08s;
}

.profile-completion-panel.step-transition-in
.verification-description {
    animation-delay: 0.11s;
}

.profile-completion-panel.step-transition-in
#profile-question-content {
    animation-delay: 0.14s;
}

.profile-completion-panel.step-transition-in
.profile-completion-actions {
    animation-delay: 0.17s;
}

@keyframes profile-question-exit {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-28px);
    }
}

@keyframes profile-question-enter {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   ERROR
   ============================================================ */

.profile-completion-error {
    display: none;
    width: 100%;
    margin-top: 12px;
    color: var(--danger);
    font-size: 0.82rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.profile-completion-error.active {
    display: block;
}

/* ============================================================
   SAVING STATE
   ============================================================ */

.profile-completion-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-completion-loading.active {
    display: flex;
}

.profile-completion-loading svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    animation: profile-completion-spin 0.8s linear infinite;
}

@keyframes profile-completion-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {
    .profile-completion-panel h2 {
        font-size: 1.35rem;
    }

    .profile-completion-panel .verification-description {
        margin-bottom: 20px;
    }

    .profile-question-input {
        min-height: 52px;
    }

    .profile-completion-next {
        min-height: 50px;
    }
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {
    .profile-completion-panel .verification-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 17px;
        border-radius: 16px;
    }

    .profile-completion-panel .verification-icon svg {
        width: 27px;
        height: 27px;
    }

    .profile-completion-panel h2 {
        font-size: 1.25rem;
    }

    .profile-question-input {
        min-height: 50px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .profile-completion-next {
        min-height: 48px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .profile-question-input,
    .profile-completion-next {
        transition: none;
    }

    .profile-completion-panel.step-transition-out
    .profile-completion-progress,
    .profile-completion-panel.step-transition-out
    .verification-icon,
    .profile-completion-panel.step-transition-out
    h2,
    .profile-completion-panel.step-transition-out
    .verification-description,
    .profile-completion-panel.step-transition-out
    #profile-question-content,
    .profile-completion-panel.step-transition-out
    .profile-completion-actions,
    .profile-completion-panel.step-transition-in
    .profile-completion-progress,
    .profile-completion-panel.step-transition-in
    .verification-icon,
    .profile-completion-panel.step-transition-in
    h2,
    .profile-completion-panel.step-transition-in
    .verification-description,
    .profile-completion-panel.step-transition-in
    #profile-question-content,
    .profile-completion-panel.step-transition-in
    .profile-completion-actions {
        animation: none;
    }

    .profile-completion-loading svg {
        animation: none;
    }
}

/* ============================================================
   PROFILE COMPLETION
   ============================================================ */

.profile-completion-panel {
    display: none;
    width: 100%;
    text-align: center;
}

.profile-completion-panel.active {
    display: block;
}

.profile-completion-panel[aria-hidden="true"] {
    display: none;
}


/* ============================================================
   PROGRESS
   ============================================================ */

.profile-completion-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.profile-completion-progress span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}


/* ============================================================
   ICON
   ============================================================ */

.profile-completion-panel .verification-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
}

.profile-completion-panel .verification-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}


/* ============================================================
   QUESTION
   ============================================================ */

.profile-completion-panel h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.profile-completion-panel .verification-description {
    max-width: 420px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}


/* ============================================================
   QUESTION CONTENT
   ============================================================ */

#profile-question-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ============================================================
   QUESTION INPUT
   ============================================================ */

.profile-question-input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    outline: none;
    background: var(--surface-raised);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.profile-question-input:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.14);
}

.profile-question-input:focus {
    background: var(--surface-hover);
    border-color: var(--border-focus);
    box-shadow:
        0 0 0 3px var(--primary-soft),
        0 8px 20px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   DATE
   ============================================================ */

.profile-question-input[type="date"] {
    color-scheme: dark;
    cursor: pointer;
}


/* ============================================================
   SELECT
   ============================================================ */

select.profile-question-input {
    cursor: pointer;
}

select.profile-question-input option {
    background: var(--surface-raised);
    color: var(--text);
}


/* ============================================================
   MEDIA CARDS
   ============================================================ */

.profile-completion-media {
    width: 100%;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}


/* ============================================================
   MEDIA CARD
   ============================================================ */

.profile-media-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-raised);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.profile-media-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.12);
}

.profile-media-card:active {
    transform: translateY(0);
}

.profile-media-card:focus-within {
    border-color: var(--border-focus);
    box-shadow:
        0 0 0 3px var(--primary-soft);
}


/* ============================================================
   MEDIA PREVIEW
   ============================================================ */

.profile-media-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface);
}

.profile-media-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    background:
        linear-gradient(
            135deg,
            var(--surface-raised),
            var(--surface)
        );
}

.profile-media-placeholder svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.8;
}

.profile-media-placeholder span {
    font-size: 0.78rem;
    font-weight: 700;
}


/* ============================================================
   FILE INPUT
   ============================================================ */

.profile-media-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


/* ============================================================
   MEDIA CARD INFO
   ============================================================ */

.profile-media-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 12px 12px;
    min-width: 0;
}

.profile-media-card-info strong {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.profile-media-card-info span {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}


/* ============================================================
   SELECTED MEDIA CARD
   ============================================================ */

.profile-media-card.has-image {
    border-color: var(--primary);
}

.profile-media-card.has-image
.profile-media-card-info strong {
    color: var(--primary);
}


/* ============================================================
   NEXT / FINISH ACTION
   ============================================================ */

.profile-completion-actions {
    width: 100%;
    margin-top: 14px;
}

.profile-completion-next {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--input-radius);
    outline: none;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.profile-completion-next:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.14);
}

.profile-completion-next:active:not(:disabled) {
    transform: translateY(1px);
}

.profile-completion-next:focus-visible {
    box-shadow:
        0 0 0 3px var(--primary-soft),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.profile-completion-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.profile-completion-next svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke-width: 2.2;
}


/* ============================================================
   STEP TRANSITION
   ============================================================ */

.profile-completion-panel.step-transition-out {
    pointer-events: none;
}

.profile-completion-panel.step-transition-out
.profile-completion-progress,
.profile-completion-panel.step-transition-out
.verification-icon,
.profile-completion-panel.step-transition-out
h2,
.profile-completion-panel.step-transition-out
.verification-description,
.profile-completion-panel.step-transition-out
#profile-question-content,
.profile-completion-panel.step-transition-out
.profile-completion-actions {
    animation:
        profile-question-exit
        0.28s ease forwards;
}

.profile-completion-panel.step-transition-in
.profile-completion-progress,
.profile-completion-panel.step-transition-in
.verification-icon,
.profile-completion-panel.step-transition-in
h2,
.profile-completion-panel.step-transition-in
.verification-description,
.profile-completion-panel.step-transition-in
#profile-question-content,
.profile-completion-panel.step-transition-in
.profile-completion-actions {
    animation:
        profile-question-enter
        0.42s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}

.profile-completion-panel.step-transition-in
.profile-completion-progress {
    animation-delay: 0.02s;
}

.profile-completion-panel.step-transition-in
.verification-icon {
    animation-delay: 0.05s;
}

.profile-completion-panel.step-transition-in
h2 {
    animation-delay: 0.08s;
}

.profile-completion-panel.step-transition-in
.verification-description {
    animation-delay: 0.11s;
}

.profile-completion-panel.step-transition-in
#profile-question-content {
    animation-delay: 0.14s;
}

.profile-completion-panel.step-transition-in
.profile-completion-actions {
    animation-delay: 0.17s;
}

@keyframes profile-question-exit {

    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-28px);
    }
}

@keyframes profile-question-enter {

    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================================
   ERROR
   ============================================================ */

.profile-completion-error {
    display: none;
    width: 100%;
    margin-top: 12px;
    color: var(--danger);
    font-size: 0.82rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.profile-completion-error.active {
    display: block;
}


/* ============================================================
   SAVING STATE
   ============================================================ */

.profile-completion-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-completion-loading.active {
    display: flex;
}

.profile-completion-loading svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    animation:
        profile-completion-spin
        0.8s linear infinite;
}

@keyframes profile-completion-spin {

    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

    .profile-completion-panel h2 {
        font-size: 1.35rem;
    }

    .profile-completion-panel
    .verification-description {
        margin-bottom: 20px;
    }

    .profile-question-input {
        min-height: 52px;
    }

    .profile-completion-media {
        gap: 8px;
    }

    .profile-media-card {
        border-radius: 13px;
    }

    .profile-media-card-info {
        padding: 9px;
    }

    .profile-media-card-info strong {
        font-size: 0.74rem;
    }

    .profile-media-card-info span {
        font-size: 0.65rem;
    }

    .profile-media-placeholder svg {
        width: 25px;
        height: 25px;
    }

    .profile-media-placeholder span {
        font-size: 0.68rem;
    }

    .profile-completion-next {
        min-height: 50px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {

    .profile-completion-panel
    .verification-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 17px;
        border-radius: 16px;
    }

    .profile-completion-panel
    .verification-icon svg {
        width: 27px;
        height: 27px;
    }

    .profile-completion-panel h2 {
        font-size: 1.25rem;
    }

    .profile-question-input {
        min-height: 50px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .profile-completion-media {
        gap: 6px;
    }

    .profile-media-card {
        border-radius: 11px;
    }

    .profile-media-card-info {
        padding: 8px;
    }

    .profile-media-card-info strong {
        font-size: 0.68rem;
    }

    .profile-media-card-info span {
        display: none;
    }

    .profile-media-placeholder {
        gap: 5px;
    }

    .profile-media-placeholder svg {
        width: 22px;
        height: 22px;
    }

    .profile-media-placeholder span {
        font-size: 0.62rem;
    }

    .profile-completion-next {
        min-height: 48px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .profile-question-input,
    .profile-completion-next,
    .profile-media-card {
        transition: none;
    }

    .profile-completion-panel.step-transition-out
    .profile-completion-progress,
    .profile-completion-panel.step-transition-out
    .verification-icon,
    .profile-completion-panel.step-transition-out
    h2,
    .profile-completion-panel.step-transition-out
    .verification-description,
    .profile-completion-panel.step-transition-out
    #profile-question-content,
    .profile-completion-panel.step-transition-out
    .profile-completion-actions,
    .profile-completion-panel.step-transition-in
    .profile-completion-progress,
    .profile-completion-panel.step-transition-in
    .verification-icon,
    .profile-completion-panel.step-transition-in
    h2,
    .profile-completion-panel.step-transition-in
    .verification-description,
    .profile-completion-panel.step-transition-in
    #profile-question-content,
    .profile-completion-panel.step-transition-in
    .profile-completion-actions {
        animation: none;
    }

    .profile-completion-loading svg {
        animation: none;
    }
}