
<style>
    :root {
        --primary-color: #bc0101;
        --secondary-color: #9e0000;
        --accent-color: #e42929;
        --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        --text-dark: #0f172a;
        --text-light: #64748b;
        --text-muted: #94a3b8;
        --bg-light: #f8fafc;
        --bg-gray: #f1f5f9;
        --border-color: #e2e8f0;
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --danger-color: #ef4444;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
        --border-radius: 12px;
        --border-radius-lg: 16px;

        /* Variables spécifiques au modal IA */
        --ai-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
        --ai-backdrop: rgba(15, 23, 42, 0.8);
        --ai-glass: rgba(248, 250, 252, 0.95);
        --ai-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        --ai-border-glass: rgba(255, 255, 255, 0.2);
        --ai-text-overlay: rgba(255, 255, 255, 0.95);
        --ai-text-muted-overlay: rgba(255, 255, 255, 0.8);
        --ai-hover-overlay: rgba(255, 255, 255, 0.15);
        --ai-active-overlay: rgba(255, 255, 255, 0.25);
    }

    /* ========== MODAL DE RECHERCHE IA ========== */
    /* Modal principal - Styles isolés */
    .ai-search-modal {
        display: none;
        position: fixed;
        z-index: 1050;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        animation: ai-modal-fade-in 0.3s ease-out;
    }

    .ai-search-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ai-modal-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
    }

    .ai-modal-content {
        position: relative;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
        border-radius: 20px;
        width: 90%;
        max-width: 600px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        color: white;
        animation: ai-modal-slide-up 0.4s ease-out;
        overflow: hidden;
    }

    .ai-modal-header {
        text-align: center;
        padding: 32px;
        position: relative;
    }

    .ai-modal-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        overflow: hidden;
        border: 3px solid rgba(255, 255, 255, 0.3);
        animation: ai-icon-pulse 2s infinite;
    }

    .ai-modal-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .ai-modal-title {
        font-size: 1.75rem;
        font-weight: 700;
        margin: 0 0 8px;
        letter-spacing: -0.025em;
    }

    .ai-modal-subtitle {
        margin: 0;
        font-size: 1rem;
        opacity: 0.9;
        font-weight: 400;
    }

    .ai-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ai-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    /* Corps du modal */
    .ai-modal-body {
        padding: 32px;
    }

    .ai-input-container {
        margin-bottom: 24px;
    }

    .ai-input-wrapper {
        position: relative;
        background: #f8fafc;
        border-radius: 12px;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .ai-input-wrapper:focus-within {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .ai-prompt-input {
        width: 100%;
        padding: 16px 60px 16px 16px;
        font-size: 1rem;
        line-height: 1.5;
        border: none;
        border-radius: 12px;
        background: transparent;
        resize: none;
        outline: none;
        color: #1f2937;
        font-family: inherit;
    }

    .ai-prompt-input::placeholder {
        color: #9ca3af;
    }

    /* Bouton microphone */
    .voice-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #6366f1;
        color: white;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .voice-btn:hover {
        background: #4f46e5;
        transform: translateY(-50%) scale(1.05);
    }

    .voice-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .voice-pulse {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #6366f1;
        opacity: 0;
        animation: ai-voice-pulse 2s infinite;
    }

    /* Actions et suggestions */
    .ai-actions {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .ai-suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
        min-height: 40px;
    }

    .suggestion-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin-right: 8px;
        white-space: nowrap;
        align-self: center;
    }

    .suggestion-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 8px 12px;
        font-size: 0.875rem;
        color: white;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        backdrop-filter: blur(10px);
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .suggestion-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-1px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .suggestion-btn i {
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .suggestion-text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ai-submit-btn {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ai-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .ai-submit-btn:active {
        transform: translateY(0);
    }

    .btn-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: opacity 0.3s ease;
    }

    .btn-loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .ai-submit-btn.loading .btn-content {
        opacity: 0;
    }

    .ai-submit-btn.loading .btn-loader {
        opacity: 1;
    }

    .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: ai-spin 1s linear infinite;
    }

    /* Animations */
    @keyframes ai-modal-fade-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes ai-modal-slide-up {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes ai-icon-pulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.05);
            opacity: 0.8;
        }
    }

    @keyframes ai-voice-pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.1);
            opacity: 0.7;
        }

        100% {
            transform: scale(1.2);
            opacity: 0;
        }
    }

    @keyframes ai-spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .ai-modal-content {
            margin: 20px;
            width: calc(100% - 40px);
        }

        .ai-modal-header {
            padding: 24px;
        }

        .ai-modal-body {
            padding: 24px;
        }

        .ai-suggestions {
            justify-content: center;
        }

        .suggestion-label {
            width: 100%;
            text-align: center;
            margin-bottom: 8px;
        }

        .suggestion-btn {
            max-width: calc(50% - 4px);
        }
    }

    @media (max-width: 480px) {
        .ai-modal-header {
            padding: 20px;
        }

        .ai-modal-body {
            padding: 20px;
        }

        .ai-modal-title {
            font-size: 1.5rem;
        }

        .ai-modal-icon {
            width: 64px;
            height: 64px;
        }

        .suggestion-btn {
            max-width: 100%;
            font-size: 0.8rem;
            padding: 6px 10px;
        }
    }

    /* ========== MODAL RÉSULTATS IA ========== */
    .ai-results-modal {
        display: none;
        position: fixed;
        z-index: 1060;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .ai-results-modal.show {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 40px 20px;
    }

    .ai-results-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
    }

    .ai-results-content {
        position: relative;
        background: white;
        border-radius: 20px;
        width: 100%;
        max-width: 1200px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        animation: ai-modal-slide-up 0.4s ease-out;
    }

    .ai-results-header {
        padding: 24px 32px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-radius: 20px 20px 0 0;
        color: white;
    }

    .ai-results-header h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .ai-results-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ai-results-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .ai-results-body {
        padding: 32px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    /* ========== STYLES RÉPONSE IA ========== */
    .ai-response-container {
        max-width: 100%;
    }

    .ai-intro {
        text-align: center;
        margin-bottom: 32px;
        padding: 24px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
        border-radius: 16px;
        border: 2px solid rgba(99, 102, 241, 0.2);
    }

    .ai-intro h2 {
        color: var(--primary-color);
        font-size: 1.75rem;
        font-weight: 700;
        margin: 0 0 12px 0;
    }

    .ai-intro p {
        color: var(--text-dark);
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.6;
    }

    .ai-products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
        margin-bottom: 32px;
    }

    .ai-product-card {
        background: white;
        border-radius: 16px;
        border: 2px solid #e2e8f0;
        overflow: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .ai-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

    .ai-product-image {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
        background: #f8fafc;
    }

    .ai-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .ai-product-card:hover .ai-product-image img {
        transform: scale(1.05);
    }

    .ai-product-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: var(--primary-color);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .ai-product-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .ai-product-content h3 {
        margin: 0 0 8px 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.3;
    }

    .ai-product-category {
        color: var(--text-muted);
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .ai-product-why {
        color: var(--text-light);
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 0 16px 0;
        flex: 1;
    }

    .ai-product-specs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .spec-item {
        background: #f1f5f9;
        color: var(--text-dark);
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .ai-product-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
    }

    .ai-product-price {
        display: flex;
        flex-direction: column;
    }

    .price-label {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-bottom: 2px;
    }

    .price-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .ai-product-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px 20px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .ai-product-btn:hover {
        background: var(--secondary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .ai-conclusion {
        text-align: center;
        padding: 24px;
        background: #f8fafc;
        border-radius: 16px;
        border: 2px dashed #cbd5e1;
    }

    .ai-conclusion p {
        color: var(--text-dark);
        font-size: 1rem;
        margin: 0 0 16px 0;
        line-height: 1.6;
    }

    .ai-refine-btn {
        background: white;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .ai-refine-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .ai-results-body {
            padding: 20px;
        }

        .ai-products-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .ai-intro {
            padding: 20px;
        }

        .ai-intro h2 {
            font-size: 1.5rem;
        }

        .ai-product-footer {
            flex-direction: column;
            align-items: stretch;
        }

        .ai-product-btn {
            width: 100%;
        }
    }

    /* Fix pour les images de produits IA */
    .ai-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    /* Animation d'entrée pour les cartes */
    @keyframes ai-card-fade-in {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .ai-product-card {
        animation: ai-card-fade-in 0.5s ease-out forwards;
    }

    .ai-product-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .ai-product-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .ai-product-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .ai-product-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .ai-product-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .ai-product-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    /* Scrollbar personnalisée pour le modal */
    .ai-results-body::-webkit-scrollbar {
        width: 8px;
    }

    .ai-results-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .ai-results-body::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .ai-results-body::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

    /* ========================================
   MODAL IA UNIFIÉ - STYLES MODERNES
   ======================================== */

    .ai-search-modal-new {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .ai-search-modal-new.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .ai-modal-backdrop-new {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
    }

    .ai-modal-container-new {
        position: relative;
        background: white;
        border-radius: 24px;
        width: 100%;
        max-width: 800px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
    }

    .ai-modal-header-new {
        padding: 24px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
    }

    .ai-modal-header-new.results-header {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .ai-header-content {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
    }

    .ai-avatar {
        position: relative;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
    }

    .ai-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ai-avatar-pulse {
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border: 3px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    .ai-header-text h2 {
        margin: 0 0 4px 0;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .ai-header-text p {
        margin: 0;
        font-size: 0.9rem;
        opacity: 0.9;
    }

    .ai-close-new,
    .ai-back-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .ai-close-new:hover,
    .ai-back-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .ai-modal-body-new {
        padding: 32px;
        overflow-y: auto;
        flex: 1;
    }

    .ai-input-zone {
        background: #f8fafc;
        border: 2px solid #e2e8f0;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 24px;
        transition: all 0.3s;
    }

    .ai-input-zone:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    }

    .ai-input-zone textarea {
        width: 100%;
        border: none;
        background: transparent;
        font-size: 1rem;
        line-height: 1.6;
        resize: none;
        outline: none;
        color: #1f2937;
        font-family: inherit;
        min-height: 80px;
    }

    .ai-input-zone textarea::placeholder {
        color: #9ca3af;
    }

    .ai-input-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }

    .ai-voice-btn {
        background: var(--primary-color);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ai-voice-btn:hover {
        transform: scale(1.1);
    }

    .ai-voice-btn.listening {
        background: #ef4444;
        animation: pulse 1s infinite;
    }

    .ai-char-count {
        font-size: 0.85rem;
        color: #64748b;
    }

    .ai-suggestions-new {
        margin-bottom: 24px;
    }

    .ai-suggestions-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 12px;
    }

    .ai-suggestions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }

    .ai-suggestion-chip {
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 0.85rem;
        color: #1f2937;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .ai-suggestion-chip:hover {
        border-color: var(--primary-color);
        background: rgba(99, 102, 241, 0.05);
        transform: translateY(-2px);
    }

    .ai-suggestion-chip i {
        color: var(--primary-color);
        flex-shrink: 0;
    }

    .ai-submit-new {
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border: none;
        border-radius: 12px;
        padding: 16px;
        color: white;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
    }

    .ai-submit-new:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    }

    .ai-submit-new .btn-text,
    .ai-submit-new .btn-loader {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: opacity 0.3s;
    }

    .ai-submit-new .btn-loader {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        pointer-events: none;
    }

    .ai-submit-new.loading .btn-text {
        opacity: 0;
    }

    .ai-submit-new.loading .btn-loader {
        opacity: 1;
    }

    .ai-results-content {
        padding: 32px;
        overflow-y: auto;
        flex: 1;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .ai-modal-container-new {
            max-width: 100%;
            max-height: 100vh;
            border-radius: 0;
        }

        .ai-modal-body-new,
        .ai-results-content {
            padding: 20px;
        }

        .ai-suggestions-grid {
            grid-template-columns: 1fr;
        }

        .ai-avatar {
            width: 48px;
            height: 48px;
        }

        .ai-header-text h2 {
            font-size: 1.25rem;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.05);
            opacity: 0.7;
        }
    }
</style>

