/* =============================================================================
   OCULTAR ESFERA DA THAYS IA DURANTE O FORMULÁRIO DE ONBOARDING
   ============================================================================= */
body:has(.onboarding-master-wrapper) .tfit-hub-btn,
body:has(.onboarding-master-wrapper) .thays-sphere-inner,
body:has(.onboarding-master-wrapper) .thays-sphere-core,
body:has(#tfit-onboarding-container) .tfit-hub-btn,
body:has(#tfit-onboarding-container) .thays-sphere-inner,
.onboarding-master-wrapper .tfit-hub-btn,
.onboarding-master-wrapper .thays-sphere-inner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.onboarding-master-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #05080D;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(112, 0, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #FFFFFF;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.onboarding-container {
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 30px;
    box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
   HEADER & PROGRESS BAR
   ----------------------------------------------------------------------------- */
.onboarding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.onboarding-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.onboarding-back-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.1);
}

.onboarding-progress-bar {
    display: flex;
    gap: 4px;
    flex: 1;
    height: 4px;
}

.onboarding-progress-segment {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.onboarding-progress-segment.active {
    background: linear-gradient(90deg, #00F0FF 0%, #7000FF 100%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.onboarding-skip-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94A3B8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: color 0.2s;
}

.onboarding-skip-btn:hover {
    color: #00F0FF;
}

/* -----------------------------------------------------------------------------
   STEP CONTENT & TYPOGRAPHY
   ----------------------------------------------------------------------------- */
.onboarding-step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: onboardingFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes onboardingFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.onboarding-subtitle {
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.4;
    margin: 0 0 24px 0;
}

/* -----------------------------------------------------------------------------
   CARDS & SELECTION OPTIONS
   ----------------------------------------------------------------------------- */
.onboarding-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.onboarding-option-card {
    background: rgba(15, 22, 35, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.onboarding-option-card:active {
    transform: scale(0.98);
}

.onboarding-option-card.selected {
    background: rgba(112, 0, 255, 0.15);
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.1);
}

.onboarding-option-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.onboarding-option-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.onboarding-option-card.selected .onboarding-option-icon {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00F0FF;
    color: #00F0FF;
}

.onboarding-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.onboarding-option-label {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
}

.onboarding-option-desc {
    font-size: 0.8rem;
    color: #94A3B8;
}

.onboarding-option-arrow {
    color: #64748B;
    transition: transform 0.2s, color 0.2s;
}

.onboarding-option-card.selected .onboarding-option-arrow {
    color: #00F0FF;
    transform: translateX(4px);
}

/* -----------------------------------------------------------------------------
   CUSTOM PICKERS (DRUM / RULER / COUNTERS)
   ----------------------------------------------------------------------------- */
/* Seletor Vertical de Idade (True Drum Picker) */
.onboarding-drum-picker {
    height: 260px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    position: relative;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    background: rgba(15, 22, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-y;
}

.onboarding-drum-picker::-webkit-scrollbar {
    display: none;
}

.onboarding-drum-item {
    height: 52px;
    min-height: 52px;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748B;
    opacity: 0.3;
    transform: scale(0.85);
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease, color 0.15s ease;
    cursor: pointer;
    width: 100%;
    user-select: none;
}

.onboarding-drum-item.near {
    font-size: 1.25rem;
    font-weight: 700;
    color: #94A3B8;
    opacity: 0.55;
    transform: scale(0.95);
}

.onboarding-drum-item.selected {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    opacity: 1;
    transform: scale(1.25);
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.onboarding-drum-lens {
    position: absolute;
    top: 104px;
    left: 5%;
    width: 90%;
    height: 52px;
    border-top: 1px dashed rgba(0, 240, 255, 0.4);
    border-bottom: 1px dashed rgba(0, 240, 255, 0.4);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.06) 0%, rgba(112, 0, 255, 0.06) 100%);
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Seletor Horizontal de Régua (Altura / Peso) */
.onboarding-value-display {
    text-align: center;
    margin: 20px 0 10px;
}

.onboarding-big-number {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #FFFFFF 30%, #00F0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.onboarding-big-unit {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00F0FF;
    margin-left: 6px;
}

.onboarding-slider-container {
    margin: 20px 0;
    position: relative;
}

.onboarding-range-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.onboarding-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
    cursor: pointer;
    border: 3px solid #05080D;
}

/* Insight de IMC */
.onboarding-insight-card {
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.onboarding-insight-title {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 2px;
}

.onboarding-insight-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #00F0FF;
}

/* Controle de Dias por Semana */
.onboarding-counter-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 30px 0;
}

.onboarding-counter-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-counter-btn:active {
    transform: scale(0.9);
    background: rgba(0, 240, 255, 0.2);
    border-color: #00F0FF;
}

.onboarding-counter-val {
    font-size: 4rem;
    font-weight: 900;
    color: #FFFFFF;
    min-width: 60px;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   INPUTS DE CADASTRO FINAL (CPF / CELULAR)
   ----------------------------------------------------------------------------- */
.onboarding-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.onboarding-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.onboarding-input {
    width: 100%;
    background: rgba(15, 22, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    color: #FFFFFF;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.onboarding-input:focus {
    border-color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* -----------------------------------------------------------------------------
   SUMMARY SCREEN & CTA BUTTON
   ----------------------------------------------------------------------------- */
.onboarding-summary-card {
    background: rgba(15, 22, 35, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.onboarding-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.onboarding-summary-label {
    font-size: 0.75rem;
    color: #94A3B8;
    text-transform: uppercase;
}

.onboarding-summary-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #00F0FF;
}

.onboarding-cta-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00F0FF 0%, #7000FF 100%);
    border: none;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.onboarding-cta-btn:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}
