/* Smart Match Recommendation Engine */
.smart-engine-container {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.engine-step {
    display: none;
    animation: slideIn 0.5s ease forwards;
}

.engine-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.engine-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--cubic);
    text-align: center;
    color: var(--gray-800);
}

.option-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.option-card.selected {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.engine-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary-gradient);
    transition: width 0.5s ease;
}

/* Savings Ticker */
.savings-ticker {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid var(--primary);
}

.savings-ticker.active {
    transform: translateY(0);
}

.ticker-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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