/* Multi-step Survey Styles - Scoped to survey containers only */

/* Add scope selectors to all rules */
#app .survey-progress,
#modal-survey-app .survey-progress {
    margin-bottom: 40px;
}

#app .steps,
#modal-survey-app .steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#app .step-item,
#modal-survey-app .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

#app .step-item:not(:last-child)::after,
#modal-survey-app .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    left: 50%;
    z-index: 0;
}

#app .step-marker,
#modal-survey-app .step-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

#app .step-details,
#modal-survey-app .step-details {
    margin-top: 10px;
    text-align: center;
}

#app .step-title,
#modal-survey-app .step-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    transition: all 0.3s ease;
}

#app .step-item.is-active .step-marker,
#modal-survey-app .step-item.is-active .step-marker {
    background-color: #4ac6ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(74, 198, 255, 0.5);
}

#app .step-item.is-active .step-title,
#modal-survey-app .step-item.is-active .step-title {
    color: #4ac6ff;
}

#app .step-item.is-completed .step-marker,
#modal-survey-app .step-item.is-completed .step-marker {
    background-color: #48c78e;
    color: #fff;
}

#app .step-item.is-completed .step-title,
#modal-survey-app .step-item.is-completed .step-title {
    color: #48c78e;
}

#app .progress-bar,
#modal-survey-app .progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

#app .progress-fill,
#modal-survey-app .progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4a90e2, #4ac6ff);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Step Content */
#app .step-content,
#modal-survey-app .step-content {
    min-height: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#app .step-question,
#modal-survey-app .step-question {
    text-align: center;
    margin-bottom: 30px;
}

#app .step-question h3,
#modal-survey-app .step-question h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #4ac6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#app .step-question .subtitle,
#modal-survey-app .step-question .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Option Cards */
#app .option-card,
#modal-survey-app .option-card {
    background-color: rgba(9, 22, 89, 0.4);
    border-radius: 15px;
    padding: 20px 18px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /*min-height: 180px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#app .option-card::before,
#modal-survey-app .option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74, 198, 255, 0.05), rgba(255, 0, 204, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

#app .option-card:hover,
#modal-survey-app .option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 198, 255, 0.3);
}

#app .option-card:hover::before,
#modal-survey-app .option-card:hover::before {
    opacity: 1;
}

#app .option-card.selected,
#modal-survey-app .option-card.selected {
    border-color: #4ac6ff;
    background-color: rgba(74, 198, 255, 0.15);
    box-shadow: 0 0 15px rgba(74, 198, 255, 0.3);
}

#app .option-card.selected::after,
#modal-survey-app .option-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #4ac6ff;
    font-size: 1.2rem;
}

#app .option-content,
#modal-survey-app .option-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app .option-icon,
#modal-survey-app .option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #4ac6ff;
    transition: transform 0.3s ease;
}

#app .option-card:hover .option-icon,
#modal-survey-app .option-card:hover .option-icon {
    transform: scale(1.1);
}

#app .option-label,
#modal-survey-app .option-label {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

#app .option-description,
#modal-survey-app .option-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Age Options */
#app .age-options,
#modal-survey-app .age-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* Fix for mobile */
@media (max-width: 768px) {
    #app .age-options,
    #modal-survey-app .age-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Skin Type Options */
#app .skin-type-options,
#modal-survey-app .skin-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* Concerns Options */
#app .concerns-options,
#modal-survey-app .concerns-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

#app .concern-card,
#modal-survey-app .concern-card {
    background-color: rgba(9, 22, 89, 0.4);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app .concern-card:hover,
#modal-survey-app .concern-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 198, 255, 0.3);
}

#app .concern-card.selected,
#modal-survey-app .concern-card.selected {
    border-color: #4ac6ff;
    background-color: rgba(74, 198, 255, 0.15);
}

#app .concern-content,
#modal-survey-app .concern-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#app .concern-icon,
#modal-survey-app .concern-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #4ac6ff;
}

#app .concern-label,
#modal-survey-app .concern-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Budget Options */
#app .budget-options,
#modal-survey-app .budget-options {
    /* display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 15px; */   
     margin-bottom: 30px;
}

#app .budget-options .option-card,
#modal-survey-app .budget-options .option-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*height: 180px;*/
}

#app .budget-options .option-icon,
#modal-survey-app .budget-options .option-icon {
    font-size: 2.5rem;
    /*margin-bottom: 15px;*/
}

/* Routine Options */
#app .routine-options,
#modal-survey-app .routine-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

#app .routine-card,
#modal-survey-app .routine-card {
    background-color: rgba(9, 22, 89, 0.4);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app .routine-card:hover,
#modal-survey-app .routine-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 198, 255, 0.3);
}

#app .routine-card.selected,
#modal-survey-app .routine-card.selected {
    border-color: #4ac6ff;
    background-color: rgba(74, 198, 255, 0.15);
}

#app .routine-content,
#modal-survey-app .routine-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#app .routine-icon,
#modal-survey-app .routine-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #4ac6ff;
}

#app .routine-label,
#modal-survey-app .routine-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Level */
#app .experience-options,
#modal-survey-app .experience-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

#app .experience-card,
#modal-survey-app .experience-card {
    text-align: left;
    padding: 25px;
}

#app .option-level,
#modal-survey-app .option-level {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: linear-gradient(to right, #4a90e2, #4ac6ff);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Environment Options */
#app .environment-options,
#modal-survey-app .environment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

#app .environment-card .option-icon,
#modal-survey-app .environment-card .option-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Ingredients to Avoid */
#app .ingredients-input,
#modal-survey-app .ingredients-input {
    max-width: 600px;
    margin: 0 auto;
}

#app .tags-input,
#modal-survey-app .tags-input {
    background-color: rgba(9, 22, 89, 0.4);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    min-height: 120px;
}

#app .tags-input .tag,
#modal-survey-app .tags-input .tag {
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #4ac6ff;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.3em 0.8em;
    display: inline-flex;
    align-items: center;
}

#app .tags-input .tag .delete,
#modal-survey-app .tags-input .tag .delete {
    margin-left: 5px;
    background-color: transparent;
}

#app .tags-input .input,
#modal-survey-app .tags-input .input {
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 5px 0;
    margin-top: 10px;
    width: 100%;
    outline: none;
}

#app .tags-input .input::placeholder,
#modal-survey-app .tags-input .input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#app .common-ingredients,
#modal-survey-app .common-ingredients {
    margin-top: 20px;
}

#app .common-ingredients p,
#modal-survey-app .common-ingredients p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#app .common-tags,
#modal-survey-app .common-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#app .common-tags .tag,
#modal-survey-app .common-tags .tag {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: all 0.3s ease;
}

#app .common-tags .tag:hover,
#modal-survey-app .common-tags .tag:hover {
    background-color: rgba(74, 198, 255, 0.3);
    color: #fff;
}

/* Navigation Buttons */
#app .step-navigation,
#modal-survey-app .step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 0 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#app .navigation-spacer,
#modal-survey-app .navigation-spacer {
    flex-grow: 1;
}

#app .btn-back,
#modal-survey-app .btn-back {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#app .btn-back:hover,
#modal-survey-app .btn-back:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

#app .btn-next,
#modal-survey-app .btn-next {
    background: linear-gradient(to right, #4a90e2, #4ac6ff);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 198, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

#app .btn-next i,
#modal-survey-app .btn-next i {
    font-size: 1.1rem;
}

#app .btn-next:hover,
#modal-survey-app .btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 198, 255, 0.4);
}

#app .btn-finish,
#modal-survey-app .btn-finish {
    background: linear-gradient(to right, #48c78e, #34d399);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 199, 142, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

#app .btn-finish:hover,
#modal-survey-app .btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 199, 142, 0.4);
}

#app button:disabled,
#modal-survey-app button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hint Card */
#app .hint-card,
#modal-survey-app .hint-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(9, 22, 89, 0.7);
    border-radius: 10px;
    padding: 15px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 198, 255, 0.3);
    animation: slideIn 0.5s forwards;
    z-index: 100;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#app .hint-content,
#modal-survey-app .hint-content {
    display: flex;
    align-items: flex-start;
}

#app .hint-icon,
#modal-survey-app .hint-icon {
    color: #4ac6ff;
    font-size: 1.3rem;
    margin-right: 10px;
    margin-top: 3px;
}

#app .hint-content p,
#modal-survey-app .hint-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #app .steps,
    #modal-survey-app .steps {
        display: none;
    }
    
    #app .step-question h3,
    #modal-survey-app .step-question h3 {
        font-size: 1.5rem;
    }
    
    #app .hint-card,
    #modal-survey-app .hint-card {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Animation for step transitions */
#app .step-transition-enter-active,
#app .step-transition-leave-active,
#modal-survey-app .step-transition-enter-active,
#modal-survey-app .step-transition-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}

#app .step-transition-enter-from,
#app .step-transition-leave-to,
#modal-survey-app .step-transition-enter-from,
#modal-survey-app .step-transition-leave-to {
    opacity: 0;
    transform: translateX(30px);
}

#app .step-transition-enter-to,
#app .step-transition-leave-from,
#modal-survey-app .step-transition-enter-to,
#modal-survey-app .step-transition-leave-from {
    opacity: 1;
    transform: translateX(0);
}

/* AI Processing Animation */
#app .ai-processing-overlay,
#modal-survey-app .ai-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 20, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

#app .ai-processing-overlay::before,
#modal-survey-app .ai-processing-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(74, 198, 255, 0.1) 0%, transparent 70%);
    opacity: 0.6;
    z-index: -1;
}

#app .ai-processing-overlay::after,
#modal-survey-app .ai-processing-overlay::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(0deg, transparent 0%, rgba(32, 105, 160, 0.05) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, rgba(32, 105, 160, 0.05) 2%, transparent 3%);
    background-size: 40px 40px;
    animation: grid-move 15s linear infinite;
    z-index: -1;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

#app .ai-processing-overlay.active,
#modal-survey-app .ai-processing-overlay.active {
    opacity: 1;
    visibility: visible;
}

#app .ai-processing-container,
#modal-survey-app .ai-processing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    text-align: center;
    position: relative;
}

#app .ai-processing-title,
#modal-survey-app .ai-processing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(to right, #fff, #4ac6ff, #56ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(74, 198, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s forwards 0.3s;
}

#app .ai-processing-subtitle,
#modal-survey-app .ai-processing-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    max-width: 90%;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s forwards 0.6s;
}

#app .ai-brain,
#modal-survey-app .ai-brain {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 50px;
    transform: scale(0.8);
    opacity: 0;
    animation: brainFadeIn 1.2s forwards 0.9s;
}

@keyframes brainFadeIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#app .ai-brain-container,
#modal-survey-app .ai-brain-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#app .ai-brain-ring,
#modal-survey-app .ai-brain-ring {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 50%;
    border: 1px solid rgba(74, 198, 255, 0.2);
    box-shadow: 0 0 20px rgba(74, 198, 255, 0.1);
    animation: pulseRing 4s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

#app .ai-brain-circle,
#modal-survey-app .ai-brain-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(74, 198, 255, 0.5);
    transform-origin: center;
    box-shadow: 0 0 15px rgba(74, 198, 255, 0.2);
}

#app .ai-brain-circle-1,
#modal-survey-app .ai-brain-circle-1 {
    animation: rotate 12s linear infinite;
}

#app .ai-brain-circle-2,
#modal-survey-app .ai-brain-circle-2 {
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    border-color: rgba(120, 190, 255, 0.4);
    animation: rotate 9s linear infinite reverse;
}

#app .ai-brain-circle-3,
#modal-survey-app .ai-brain-circle-3 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-color: rgba(160, 210, 255, 0.3);
    animation: rotate 6s linear infinite;
}

#app .ai-brain-core,
#modal-survey-app .ai-brain-core {
    position: absolute;
    width: 55%;
    height: 55%;
    top: 22.5%;
    left: 22.5%;
    background: radial-gradient(circle, rgba(74, 198, 255, 0.8) 0%, rgba(74, 198, 255, 0.2) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(74, 198, 255, 0.6);
    animation: corePulse 3s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(74, 198, 255, 0.5);
    }
    100% {
        transform: scale(1.05);
        opacity: 0.9;
        box-shadow: 0 0 40px rgba(74, 198, 255, 0.8), 0 0 80px rgba(74, 198, 255, 0.3);
    }
}

#app .ai-brain-particle,
#modal-survey-app .ai-brain-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(74, 198, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 198, 255, 0.8);
    pointer-events: none;
}

#app .ai-brain-node,
#modal-survey-app .ai-brain-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(74, 198, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(74, 198, 255, 0.6);
    z-index: 3;
}

#app .ai-brain-node::after,
#modal-survey-app .ai-brain-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(74, 198, 255, 0.4);
    box-shadow: 0 0 10px rgba(74, 198, 255, 0.3);
    animation: nodePulse 2s ease-in-out infinite;
    transform-origin: center;
    z-index: -1;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(2.5);
        opacity: 0.4;
    }
}

#app .ai-brain-connection,
#modal-survey-app .ai-brain-connection {
    position: absolute;
    background: linear-gradient(to right, rgba(74, 198, 255, 0.7), rgba(74, 198, 255, 0.2));
    height: 2px;
    transform-origin: 0% 0%;
    z-index: 2;
}

#app .ai-brain-connection::before,
#modal-survey-app .ai-brain-connection::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(74, 198, 255, 0.5), transparent);
    animation: connectionPulse 2s infinite linear;
    transform: translateX(-100%);
}

@keyframes connectionPulse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

#app .ai-processing-status,
#modal-survey-app .ai-processing-status {
    font-size: 1.1rem;
    color: #4ac6ff;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    min-height: 24px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideIn 0.5s forwards 1.4s;
    text-shadow: 0 0 10px rgba(74, 198, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}

#app .ai-processing-progress-container,
#modal-survey-app .ai-processing-progress-container {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideIn 0.5s forwards 1.8s;
}

#app .ai-processing-progress,
#modal-survey-app .ai-processing-progress {
    width: 350px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(0, 0, 0, 0.3);
}

#app .ai-processing-bar,
#modal-survey-app .ai-processing-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #4a90e2, #4ac6ff, #56ccff);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 8px rgba(74, 198, 255, 0.5);
}

#app .ai-processing-bar::after,
#modal-survey-app .ai-processing-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

#app .ai-processing-percentage,
#modal-survey-app .ai-processing-percentage {
    position: absolute;
    right: 0;
    bottom: -22px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

#app .ai-data-points,
#modal-survey-app .ai-data-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

@keyframes floatLeftRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(15px);
    }
}

/* Neural Sphere */
#app .neural-sphere,
#modal-survey-app .neural-sphere {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 2000px;
    z-index: 2;
    transform-style: preserve-3d;
}

#app .sphere-container,
#modal-survey-app .sphere-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    animation: rotateSphere 30s linear infinite;
}

@keyframes rotateSphere {
    0% { transform: rotateY(0deg) rotateX(10deg) rotateZ(0deg); }
    20% { transform: rotateY(72deg) rotateX(15deg) rotateZ(2deg); }
    40% { transform: rotateY(144deg) rotateX(5deg) rotateZ(0deg); }
    60% { transform: rotateY(216deg) rotateX(12deg) rotateZ(-2deg); }
    80% { transform: rotateY(288deg) rotateX(8deg) rotateZ(1deg); }
    100% { transform: rotateY(360deg) rotateX(10deg) rotateZ(0deg); }
}

#app .neural-node,
#modal-survey-app .neural-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(74, 198, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 198, 255, 0.8);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: visible;
}

#app .sphere-circle,
#modal-survey-app .sphere-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(74, 198, 255, 0.4);
    box-shadow: 0 0 8px rgba(74, 198, 255, 0.3);
    transform-style: preserve-3d;
    pointer-events: none;
    backface-visibility: visible;
}

@keyframes nodeGlow {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(74, 198, 255, 1); }
    100% { transform: scale(0.8); opacity: 0.6; }
}

@keyframes nodeGlowStrong {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px rgba(74, 198, 255, 1); }
    100% { transform: scale(0.8); opacity: 0.7; }
}

/* Mobile layout fixes */
@media (max-width: 768px) {
    /* All option grids should use 2 columns on mobile devices */
    #app .age-options,
    #modal-survey-app .age-options,
    #app .skin-type-options,
    #modal-survey-app .skin-type-options,
    #app .concerns-options,
    #modal-survey-app .concerns-options,
    #app .budget-options,
    #modal-survey-app .budget-options,
    #app .routine-options,
    #modal-survey-app .routine-options,
    #app .environment-options,
    #modal-survey-app .environment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Experience options should remain single column */
    #app .experience-options,
    #modal-survey-app .experience-options {
        grid-template-columns: 1fr;
    }
    
    /* Make card heights consistent */
    #app .option-card,
    #modal-survey-app .option-card,
    #app .age-options .option-card,
    #modal-survey-app .age-options .option-card,
    #app .budget-options .option-card,
    #modal-survey-app .budget-options .option-card {
        height: auto;
        min-height: 120px;
        margin-bottom: 0;
    }
    
    /* Adjust icon sizes for mobile */
    #app .option-icon,
    #modal-survey-app .option-icon,
    #app .budget-options .option-icon,
    #modal-survey-app .budget-options .option-icon,
    #app .environment-card .option-icon,
    #modal-survey-app .environment-card .option-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
} 