.text-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resizable-text {
    margin: 0;
    padding: 0;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    transition: font-size 0.3s ease;
}


/* --- OPTIMIZARE MOBIL --- */

@media (max-width: 600px) {
    .selection-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .selection-card,
    .budget-option,
    .occasion-card,
    .relationship-card,
    .personality-card,
    .coffee-tea-card,
    .drink-type-card {
        padding: 10px !important;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }
    .card-icon img,
    .card-icon i {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px;
        max-height: 36px;
        margin-bottom: 6px;
    }
    .resizable-text,
    .budget-amount,
    .section-title,
    .step-header h1,
    .step-header h2,
    .step-header p,
    .step-description,
    .next-step,
    .offering-title,
    .offering-subtitle {
        font-size: 14px !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }
    .step-header h1 {
        font-size: 18px !important;
    }
    .step-header h2,
    .section-title {
        font-size: 16px !important;
    }
    .step-header p,
    .step-description {
        font-size: 13px !important;
    }
    .next-step,
    #refresh-recommendations,
    #to-step-7 {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
    .midrag-extra-wrap {
        padding: 10px !important;
    }
    .offering-title,
    .offering-subtitle {
        font-size: 13px !important;
    }
    .offering-icon img {
        width: 28px !important;
        height: 28px !important;
    }
    .offerings-grid {
        gap: 8px !important;
    }
    body::after {
        content: '';
        display: none;
        height: 0;
    }
    .next-step.active-bottom {
        position: fixed !important;
        bottom: 55px !important;
        max-width: 100vw !important;
        border-radius: 0 0 10px 10px !important;
        z-index: 1000;
        margin: 0 !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.07);
        font-weight: bold;
        text-align: center;
        padding: 16px 0 !important;
        border-top: 1px solid #eee;
        overflow: visible !important;
        display: block !important;
        white-space: normal !important;
    }
}


/* Loader spinner pentru recomandări */

.recommendations-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.recommendations-spinner {
    border: 4px solid #eee;
    border-top: 4px solid #7a2d2d;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}