/**
 * Authentication Styles - Premium Design
 * Witit - AI Image Generator
 *
 * Design Philosophy: Billion-dollar fintech startup.
 * Every pixel earns its place. Dark mode. Delightful.
 */

/* ============================================
   AUTH MODAL - Full Screen Takeover
   ============================================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #06060a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow: hidden;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Floating Orbs Background */
.auth-modal::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: float-orb-1 20s ease-in-out infinite;
    pointer-events: none;
}

.auth-modal::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 170, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    animation: float-orb-2 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes float-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.05); }
    66% { transform: translate(30px, -50px) scale(1.1); }
}

/* Third Orb */
.auth-orb-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    transform: translate(-50%, -50%);
    animation: float-orb-3 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Subtle Grid Overlay */
.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ============================================
   AUTH CONTAINER - Glass Card
   ============================================ */
.auth-container {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    margin: 16px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 212, 255, 0.05);
    transform: translateY(20px);
    opacity: 0;
    animation: auth-card-enter 0.6s ease forwards;
    animation-delay: 0.1s;
}

@keyframes auth-card-enter {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   AUTH HEADER - Logo & Tagline
   ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-header h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   AUTH TABS - Segmented Control
   ============================================ */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(255, 0, 170, 0.15) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

/* ============================================
   AUTH FORMS
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form.hidden {
    display: none;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 0 3px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   AUTH BUTTONS - Premium CTAs
   ============================================ */
.auth-btn {
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Primary Button - Signature Gradient */
.auth-btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffaa00 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 40px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(255, 0, 170, 0.2);
}

.auth-btn-primary:hover::before {
    left: 100%;
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-primary:disabled::before {
    display: none;
}

/* Loading State */
.auth-btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   DIVIDER
   ============================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   GOOGLE BUTTON - Clean & Professional
   ============================================ */
.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 100%;
}

.auth-btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.auth-btn-google:active {
    transform: translateY(0);
}

.auth-btn-google svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ERROR MESSAGE
   ============================================ */
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    animation: shake 0.4s ease;
}

.auth-error.hidden {
    display: none;
}

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

/* Success Message */
.auth-success,
.auth-error.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    animation: none;
}

/* Resend Verification Button */
.auth-resend-btn {
    display: block;
    margin: 12px auto 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-resend-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

/* ============================================
   USER MENU - Sidebar Integration
   ============================================ */
.user-menu {
    position: relative;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.user-menu.hidden {
    display: none;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00aa 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.user-menu-toggle svg {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.user-menu-toggle:hover svg {
    color: rgba(255, 255, 255, 0.7);
}

.user-menu.open .user-menu-toggle svg:last-child {
    transform: rotate(180deg);
}

/* Dropdown */
.user-menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 12px;
    right: 12px;
    margin-bottom: 8px;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow:
        0 -10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.user-menu-item:hover svg {
    opacity: 1;
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

/* Sign Out - Subtle red hint */
.user-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ff6b6b;
}

/* ============================================
   SIGN IN BUTTON (when not logged in)
   ============================================ */
.sign-in-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffaa00 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 12px;
}

.sign-in-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.sign-in-btn:hover::before {
    left: 100%;
}

.sign-in-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   WELCOME ANIMATION (after successful auth)
   ============================================ */
.auth-welcome {
    position: fixed;
    inset: 0;
    background: #06060a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.auth-welcome.active {
    opacity: 1;
    visibility: visible;
}

.auth-welcome-content {
    text-align: center;
    animation: welcome-pop 0.5s ease forwards;
}

@keyframes welcome-pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-welcome h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-welcome p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .auth-container {
        padding: 32px 24px;
        margin: 12px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .auth-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .auth-btn {
        padding: 14px 24px;
    }

    .user-menu-toggle {
        padding: 8px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .auth-modal::before,
    .auth-modal::after,
    .auth-orb-3 {
        animation: none;
    }

    .auth-container {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .auth-btn-primary::before {
        display: none;
    }
}

/* ============================================
   ONBOARDING MODAL
   ============================================ */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #06060a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow: hidden;
}

.onboarding-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Reuse same orb effects from auth modal */
.onboarding-modal::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: float-orb-1 20s ease-in-out infinite;
    pointer-events: none;
}

.onboarding-modal::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 170, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    animation: float-orb-2 25s ease-in-out infinite;
    pointer-events: none;
}

.onboarding-container {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    margin: 16px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 212, 255, 0.05);
    transform: translateY(20px);
    opacity: 0;
    animation: auth-card-enter 0.6s ease forwards;
    animation-delay: 0.1s;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 32px;
}

.onboarding-header h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00aa 50%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.onboarding-header p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Photo Section */
.onboarding-photo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.onboarding-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.onboarding-profile-photo:hover {
    border-color: rgba(0, 212, 255, 0.5);
    background-color: rgba(0, 212, 255, 0.05);
}

.onboarding-profile-photo.has-image {
    border-style: solid;
    border-color: rgba(0, 212, 255, 0.4);
}

.onboarding-profile-photo.has-image svg,
.onboarding-profile-photo.has-image .photo-hint {
    display: none;
}

.onboarding-profile-photo svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
}

.onboarding-profile-photo .photo-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Name Input */
.onboarding-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-input-group label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.onboarding-input-group .input-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Reference Images Section */
.onboarding-reference-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-reference-section label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optional-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.section-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 8px 0;
}

.onboarding-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.onboarding-reference-slot {
    aspect-ratio: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
}

.onboarding-reference-slot:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background-color: rgba(0, 212, 255, 0.05);
}

.onboarding-reference-slot.has-image {
    border-style: solid;
    border-color: rgba(0, 212, 255, 0.3);
}

.onboarding-reference-slot.has-image svg {
    display: none;
}

.onboarding-reference-slot svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.2);
}

/* Remove button for reference images */
.onboarding-reference-slot .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.onboarding-reference-slot.has-image .remove-btn {
    display: flex;
}

.onboarding-reference-slot .remove-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* Responsive */
@media (max-width: 480px) {
    .onboarding-container {
        padding: 32px 24px;
        margin: 12px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .onboarding-header h1 {
        font-size: 24px;
    }

    .onboarding-profile-photo {
        width: 80px;
        height: 80px;
    }

    .onboarding-reference-grid {
        gap: 8px;
    }
}
