/* Base Component Styles and Auth Component refinements */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Background Orbs */
.auth-bg-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    animation: orbFloat 15s infinite alternate ease-in-out;
}

.orb-1 {
    background: var(--accent-color);
    top: -100px;
    right: -50px;
}

.orb-2 {
    background: var(--accent-gold);
    bottom: -100px;
    left: -50px;
}

.orb-3 {
    background: #5000ca;
    top: 40%;
    left: 10%;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.auth-card {
    width: 100%;
    max-width: 800px;
    /* Expanded for new layouts */
    background: rgba(22, 27, 34, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
}

.auth-form-container {
    margin-top: 20px;
}

/* Input Styles */
.input-field {
    position: relative;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.input-field:focus-within {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.input-field>i {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-right: 15px;
}

.input-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    padding: 15px 0;
    width: 100%;
    height: 100%;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* Buttons */
.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold), #ff8c00);
    border: none;
    border-radius: 16px;
    padding: 18px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.auth-submit:hover::before {
    left: 150%;
}

.auth-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.4);
}

.auth-submit:active {
    transform: translateY(0) scale(0.98);
}

.auth-switch {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-switch a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    color: #fff;
}

/* Progress Bar Updates */
.step-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    /* Base for the shine */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sweep shine across the entire bar container */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 75%,
            transparent 100%);
    background-size: 200% 100%;
    animation: progressShine 3s infinite linear;
    z-index: 2;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px var(--accent-glow);
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* Multi-step Navigation */
.reg-step {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-step.active {
    display: block;
    animation: slideUpFade 0.6s ease-out forwards;
}

.reg-step.hidden {
    display: none;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.step-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: center;
}

.step-actions {
    display: flex;
    gap: 15px;
}

.btn-prev {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 14px;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Biometric Ruler Pickers */
.biometric-pickers-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 20px 0;
}

.picker-group {
    width: 100%;
}

.picker-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 10px;
}

.picker-label span:first-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.picker-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.ruler-wrapper {
    position: relative;
    height: 70px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
}

.ruler-needle {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-glow);
    pointer-events: none;
}

.ruler-scroll {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    align-items: flex-end;
    padding: 0 calc(50% - 1px);
    /* Perfect center for 2px marks */
}

.ruler-scroll::-webkit-scrollbar {
    display: none;
}

.ruler-content {
    display: inline-flex;
    align-items: flex-end;
    padding-bottom: 20px;
    height: 100%;
    gap: 14px;
    /* 14px gap + 2px mark = 16px total step */
}

.ruler-mark {
    flex-shrink: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
    scroll-snap-align: center;
    border-radius: 1px;
    position: relative;
    /* For absolute numbers */
}

.ruler-mark.large {
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
}

.ruler-mark.small {
    height: 15px;
}

.ruler-number {
    position: absolute;
    bottom: -22px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Pill Interactions */
.pill {
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.pill span {
    font-weight: 600;
}

.pill small {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill.selected {
    animation: pillPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, var(--accent-color), #00d1ff) !important;
    border-color: transparent !important;
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.4);
}

@keyframes pillPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Gender Evolutionary Selection */
.gender-grid {
    display: flex;
    gap: 12px;
    width: 100%;
}

.gender-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.gender-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.gender-card.selected {
    background: rgba(0, 255, 204, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.gender-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gender-img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.gender-img.active {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    filter: brightness(1.5) contrast(1.2);
}

.gender-card.selected .gender-img.base {
    opacity: 0;
    transform: scale(1.1) translateY(-10px);
}

.gender-card.selected .gender-img.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 15px var(--accent-color));
}

.gender-aura {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.gender-card.selected .gender-aura {
    opacity: 1;
    animation: auraPulse 2s infinite ease-in-out;
}

@keyframes auraPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
}

.gender-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 1;
}

.gender-card.selected span {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Modals & Overlays */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    width: 90%;
    max-width: 500px;
    background: #1a1f26;
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.fullscreen-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.ai-logo-pulse {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    animation: floatingPulse 3s infinite ease-in-out;
}

#aiChartContainer {
    animation: slideUpFade 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

#aiChartContainer:not(.hidden) {
    display: flex !important;
    opacity: 1;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes floatingPulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.8));
    }
}

.btn-register {
    animation: sparkle 3s infinite ease-in-out;
}

@keyframes sparkle {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 25px var(--accent-color);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

/* Mobile Responsiveness for Gender Selection */
@media (max-width: 500px) {
    .gender-grid {
        flex-direction: column;
        gap: 15px;
    }

    .gender-card {
        flex-direction: row;
        padding: 12px 20px;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
        min-height: 80px;
    }

    .gender-visual {
        width: 60px;
        height: 60px;
        aspect-ratio: 1/1;
        flex-shrink: 0;
    }

    .gender-card span {
        font-size: 1.1rem;
    }

    .gender-img {
        width: 150%;
        height: 150%;
    }
}

/* Experience Input Rows */
.sport-exp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sport-exp-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 204, 0.2);
}

.sport-exp-row span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sport-exp-row input {
    width: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--accent-color);
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sport-exp-row input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 255, 204, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.sport-exp-row input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}