/* Styles extraits de echange_moderne.html */
:root {
        --primary-color: #6366f1;
        --secondary-color: #10b981;
        --danger-color: #ef4444;
        --dark-bg: #1e1b4b;
        --darker-bg: #1e1e2e;
        --card-bg: #2a2d47;
        --input-bg: #3c4063;
        --text-primary: #ffffff;
        --text-secondary: #a8a8b3;
        --border-color: #4c4f69;
        --success-color: #00d4aa;
        --warning-color: #f59e0b;
    }

    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        color: #ffffff;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

    /* Préserver le style de la navbar - NE PAS MASQUER LE HEADER */
    .innovx-nav, 
    .innovx-nav *,
    nav, 
    nav *,
    .navbar,
    .navbar * {
        color: #ffffff !important;
    }

    /* Assurer la visibilité des liens de navigation */
    .innovx-nav a,
    nav a,
    .navbar a {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    /* Effets de hover identiques aux autres pages */
    /* Ne pas forcer les styles sur nav-item-responsive pour laisser Tailwind fonctionner */
    .innovx-nav a:hover:not(.nav-item-responsive),
    nav a:hover:not(.nav-item-responsive),
    .navbar a:hover:not(.nav-item-responsive) {
        background-color: #f7db61 !important;
        color: #0e0e0d !important;
        transition: all 0.3s ease !important;
    }
    
    /* Animation ::before pour nav-item-responsive comme dans base.html */
    .nav-item-responsive {
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-item-responsive::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
        transition: left 0.5s ease;
        z-index: 0;
        pointer-events: none;
    }
    
    .nav-item-responsive:hover::before {
        left: 100%;
    }
    
    .nav-item-responsive > * {
        position: relative;
        z-index: 1;
    }
    
    /* S'assurer que les classes Tailwind hover:bg-innovx-yellow et hover:text-black fonctionnent */
    .nav-item-responsive:hover {
        background-color: #f7db61 !important;
        color: #0e0e0d !important;
    }
    
    /* Assurer que le header reste visible avec son fond */
    header {
        background-color: #0e0e0d !important;
        position: relative;
        z-index: 9999;
    }

    .exchange-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 100px 0 20px 0; /* Padding top pour le header fixe + bannière */
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 100px);
    }
    
    /* Carte principale selon Figma */
    .modern-card {
        background: #000000;
        border-radius: 21px;
        width: 100%;
        max-width: 442px;
        min-height: 600px;
        margin: 20px;
    }
    
    /* Header avec emoji et titre */
    .modern-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .emoji-icon {
        font-size: 1.5rem;
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        border-radius: 10px;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
    
    .header-text h1 {
        color: #fbbf24;
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
    }
    
    .header-text p {
        color: #a0aec0;
        font-size: 0.8rem;
        margin: 2px 0 0 0;
    }

    /* Design selon spécifications Figma */
    .modern-header-redesigned {
        text-align: left;
        margin-bottom: 20px;
    }

    .main-title {
        color: #FEDA48;
        font-family: 'Inter', sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 29px;
        margin: 0 0 8px 0;
        overflow: visible;
        white-space: normal;
    }

    .modern-header-redesigned .main-title {
        font-size: 1.55rem !important;
        line-height: 1.1;
        margin-bottom: 4px;
    }

    .subtitle {
        color: #FFFFFF;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 18px; 
        margin: 0;
        overflow: visible;
        white-space: normal;
    }

    .tabs-container-redesigned {
        display: flex;
        background: #3F3F3F;
        border-radius: 100px;
        padding: 6px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 397px;
        min-height: 53px;
    }

    .tab-redesigned {
        flex: 1;
        text-align: center;
        padding: 6px 8px;
        border-radius: 100px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 15px;
        line-height: 18px;
        transition: all 0.2s ease;
        color: #C7C7C7;
        background: transparent;
        border: none;
        cursor: pointer;
        min-height: 41px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: visible;
    }

    .tab-redesigned:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.1);
    }

    .tab-active-redesigned {
        background: #FEDA48;
        color: #000000;
        font-weight: 700;
        width: 148px;
    }

    .tab-active-redesigned:hover {
        background: #FEDA48;
        color: #000000;
    }

    /* Styles pour les sections simplifiées */
    .give-section {
        background: #222222;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .receive-section {
        background: #222222;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .currency-fallback {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #FEDA48;
        color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 12px;
    }

    .currency-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .currency-details {
        display: flex;
        flex-direction: column;
    }

    .currency-name {
        font-size: 14px;
        font-weight: 500;
        color: #FFFFFF;
    }

    .currency-symbol {
        font-size: 12px;
        color: #C7C7C7;
    }

    /* Checkbox save options */
    .save-option-label {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        color: #C7C7C7;
        font-size: 0.9rem;
        line-height: 1.45;
        width: 100%;
        max-width: 100%;
        text-align: left;
        writing-mode: horizontal-tb;
        flex-wrap: wrap;
        transform: none !important;
    }

    .save-option-label input[type="checkbox"] {
        flex-shrink: 0;
        margin-top: 0.2rem;
    }

    .save-option-label span {
        flex: 1;
        min-width: 0;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb;
        display: block;
        transform: none !important;
    }

    /* ========== NOUVEAU DESIGN SECTION RÉCEPTION ========== */
    
    .reception-section-modern {
        background: #1a1a1a;
        border-radius: 12px;
        padding: 14px;
        border: 1px solid #333;
    }

    .reception-header {
        text-align: center;
        margin-bottom: 12px;
    }

    .reception-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 11px;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    }

    .reception-badge.crypto {
        background: linear-gradient(135deg, #FEDA48, #f59e0b);
        color: #000;
        box-shadow: 0 2px 8px rgba(254, 218, 72, 0.25);
    }

    .reception-icon {
        font-size: 12px;
    }

    /* Mode Switch Container */
    .mode-switch-container {
        display: flex;
        background: #2a2a2a;
        border-radius: 10px;
        padding: 3px;
        margin-bottom: 12px;
        gap: 3px;
    }

    .mode-switch-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 10px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: #888;
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mode-switch-btn:hover {
        background: rgba(254, 218, 72, 0.1);
        color: #FEDA48;
    }

    .mode-switch-btn.active {
        background: #FEDA48;
        color: #000;
        box-shadow: 0 2px 6px rgba(254, 218, 72, 0.25);
    }

    .mode-icon {
        font-size: 12px;
    }

    .mode-text {
        font-size: 12px;
    }

    /* Input Container Modern */
    .input-container-modern {
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .input-label-modern {
        display: block;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 6px;
    }

    /* Select Wrapper Modern */
    .select-wrapper-modern {
        position: relative;
        margin-bottom: 8px;
    }

    .select-modern {
        width: 100%;
        padding: 10px 32px 10px 12px;
        background: #2a2a2a;
        border: 1px solid #3a3a3a;
        border-radius: 10px;
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        appearance: none;
        transition: all 0.2s ease;
    }

    .select-modern:focus {
        outline: none;
        border-color: #FEDA48;
        box-shadow: 0 0 0 2px rgba(254, 218, 72, 0.15);
    }

    .select-arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #FEDA48;
        font-size: 10px;
        pointer-events: none;
    }

    .manage-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #FEDA48;
        font-size: 11px;
        text-decoration: none;
        transition: all 0.2s ease;
        margin-top: 4px;
    }

    .manage-link:hover {
        color: #fff;
        text-decoration: underline;
    }

    /* Input Modern */
    .input-modern {
        width: 100%;
        padding: 10px 12px;
        background: #2a2a2a;
        border: 1px solid #3a3a3a;
        border-radius: 10px;
        color: #FEDA48;
        font-size: 15px;
        font-weight: 500;
        text-align: center;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    .input-modern:focus {
        outline: none;
        border-color: #FEDA48;
        box-shadow: 0 0 0 2px rgba(254, 218, 72, 0.15);
    }

    .input-modern::placeholder {
        color: #666;
        font-weight: 400;
    }

    .input-modern.input-crypto {
        font-family: 'Courier New', monospace;
        font-size: 12px;
        word-break: break-all;
    }

    .input-modern.input-name {
        font-size: 12px;
        color: #fff;
        margin-top: 8px;
    }

    /* Input Hint */
    .input-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: 6px;
        color: #888;
        font-size: 11px;
    }

    .hint-icon {
        font-size: 11px;
    }

    /* Toggle Switch */
    .save-toggle-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        padding: 8px 12px;
        background: rgba(254, 218, 72, 0.08);
        border-radius: 10px;
        border: 1px solid rgba(254, 218, 72, 0.15);
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 22px;
        flex-shrink: 0;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #3a3a3a;
        transition: 0.3s;
        border-radius: 22px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .toggle-switch input:checked + .toggle-slider {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(18px);
    }

    .toggle-label {
        color: #fff;
        font-size: 12px;
        font-weight: 500;
    }


    .exchange-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .exchange-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        color: var(--text-primary);
    }

    .exchange-subtitle {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin: 0;
    }

    /* Sections selon Figma */
    .exchange-section {
        background: #000000; /* align with Je reçois field background */
        border: 1px solid #C7C7C7;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .exchange-section.give {
        border: none;
    }

    .exchange-section.receive {
        border: none;
    }

    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .section-title {
        color: #FFFFFF;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 20px;
        margin: 0 0 12px 0;
        text-align: left;
    }

    .section-divider {
        width: 298px;
        height: 0px;
        border: 0.25px solid #C7C7C7;
        margin: 6px 0;
    }

    .section-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.8rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .section-badge.give {
        background: linear-gradient(135deg, var(--danger-color), #dc2626);
        color: white;
    }

    .section-badge.receive {
        background: linear-gradient(135deg, var(--success-color), #059669);
        color: white;
    }

    .currency-selector {
        position: relative;
    }

    .currency-button {
        background: #000000;
        border: 1px solid #C7C7C7;
        border-radius: 100px;
        padding: 12px 16px;
        color: #FEDA48;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 15px;
        line-height: 18px;
        width: 100%;
        justify-content: space-between;
        min-height: 44px;
    }

    .currency-button:hover {
        border-color: #FEDA48;
        background: #000000;
    }

    .currency-button.selected {
        border-color: #FEDA48;
        background: #000000;
        color: #FEDA48;
    }

    .currency-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        margin-top: 0.5rem;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .currency-dropdown.active {
        display: block;
    }

    .currency-option {
        padding: 0.75rem 1rem;
        cursor: pointer;
        /* transition supprimée */
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .currency-option:hover {
        background: var(--input-bg);
    }

    .currency-option.selected {
        background: var(--primary-color);
        color: white;
    }

    .amount-input-container {
        margin-top: 0.75rem;
    }

    .amount-label {
        color: #FFFFFF;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
        margin-bottom: 8px;
        display: block;
        text-align: left;
    }

    .amount-input {
        background: #000000;
        border: 1px solid #C7C7C7;
        border-radius: 100px;
        padding: 12px 16px;
        color: #FEDA48;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        width: 100%;
        box-sizing: border-box;
        min-height: 44px;
        text-align: left;
    }

    .amount-input:focus {
        outline: none;
        border-color: #FEDA48;
    }

    .amount-input::placeholder {
        color: #FEDA48;
        font-weight: 500;
    }

    .limits-display {
        display: flex;
        justify-content: space-between;
        margin-top: 8px;
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        color: #FEDA48;
        font-weight: 500;
    }

    /* Stats Min/Max */
    .modern-stats {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }
    
    .modern-stat {
        flex: 1;
        background: #000000;
        border: 1px solid #C7C7C7;
        border-radius: 8px;
        padding: 8px;
        text-align: center;
    }
    
    .modern-stat-label {
        color: #C7C7C7;
        font-size: 0.7rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        margin-bottom: 4px;
    }
    
    .modern-stat-value {
        color: #FEDA48;
        font-size: 0.8rem;  
        font-weight: 600;
    }


    .amount-label {
        color: #FFFFFF;
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 500;
        line-height: 15px;
        margin-bottom: 8px;
        display: block;
    }


    /* Flèche d'échange */
    .exchange-arrow {
        display: flex;
        justify-content: center;
        margin: 16px 0;
        position: relative;
    }

    .arrow-button {
        background: #FEDA48;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #000000;
        font-size: 8px;
        font-weight: bold;
    }

    .arrow-button:hover {
        background: #FEDA48;
        opacity: 0.8;
    }

    /* Résumé de conversion */
    .conversion-summary {
        background: linear-gradient(135deg, var(--input-bg), var(--card-bg));
        border-radius: 12px;
        padding: 1rem;
        margin: 1rem 0;
        border: 1px solid var(--border-color);
    }

    .conversion-rate {
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .rate-text {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .rate-value {
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
    }

    .conversion-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .detail-item {
        text-align: center;
    }

    .detail-label {
        color: var(--text-secondary);
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .detail-value {
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.9rem;
    }

    /* Bouton d'action */
    .action-button {
        background: linear-gradient(135deg, var(--primary-color), #4f46e5);
        border: none;
        border-radius: 12px;
        padding: 0.8rem 1.5rem;
        color: white;
        font-size: 1rem;
        font-weight: 600;
        width: 100%;
        cursor: pointer;
        /* transition supprimée */
        margin-top: 1rem;
    }

    .action-button:hover {
        /* transform supprimé */
    }

    .action-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }





    .exchange-section {
        /* Animation supprimée */
    }

    .currency-crypto {
        color: var(--warning-color);
    }

    .currency-fiat {
        color: var(--success-color);
    }

    /* Nouveau style inspiré de l'image */
    .main-exchange-form {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .section-header-modern {
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 12px;
        text-align: left;
    }

    .amount-field-modern {
        margin-bottom: 12px;
    }

    .amount-field-modern label {
        display: block;
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 500;
        color: #C7C7C7;
        margin-bottom: 8px;
    }

    .amount-with-currency {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #000000;
        border: 1px solid #C7C7C7;
        overflow: hidden;
        min-width: 0;
        border-radius: 100px;
        padding: 12px 20px;
        min-height: 50px;
    }

    .amount-value-display {
        flex: 1;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #FEDA48;
        text-align: right;
        min-width: 0;
        overflow: hidden;
    }

    .currency-selector-modern {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 20px;
        border-radius: 100px;
        background: #FEDA48;
        cursor: pointer;
        user-select: none;
        border: none;
        white-space: nowrap;
        min-width: 120px;
        overflow: hidden;
        flex-shrink: 1;
    }

    .currency-selector-modern.receive {
        background: #FEDA48; /* align with Je donne */
        color: #000000;
    }

    .currency-icon-modern {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 10px;
        color: #000000;
        background: #FFFFFF;
    }

    .currency-selector-modern.receive .currency-icon-modern {
        background: #FFFFFF; /* same as default */
        color: #000000;
    }

    .currency-selector-modern .currency-icon-modern img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    .currency-name-display {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #000000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

    .currency-selector-modern.receive .currency-name-display {
        color: #000000; /* same as default */
    }

    .dropdown-chevron {
        width: 8px;
        height: 8px;
        color: #000000;
    }

    .currency-selector-modern.receive .dropdown-chevron {
        color: #FFFFFF;
    }

    .phone-selector-modern {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #000000;
        border: 1px solid #C7C7C7;
        border-radius: 100px;
        padding: 12px 16px;
        min-height: 44px;
        cursor: pointer;
    }

    .phone-selector-modern .placeholder-text {
        flex: 1;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #C7C7C7;
    }

    .phone-selector-modern .dropdown-chevron {
        color: #C7C7C7;
    }

    /* Positionnement du dropdown */
    .amount-field-modern {
        position: relative;
    }

    .currency-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        margin-top: 8px !important;
    }

    /* Bouton principal moderne */
    .modern-primary-btn {
        background: #FEDA48;
        color: #000000;
        border: none;
        border-radius: 100px;
        padding: 14px 28px;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        cursor: pointer;
        min-height: 50px;
        transition: all 0.2s;
        white-space: nowrap;
        overflow: visible;
    }

    .modern-primary-btn:hover:not(:disabled) {
        background: #F8C300;
        transform: translateY(-2px);
    }

    .modern-primary-btn:disabled {
        background: #4a5568;
        color: #C7C7C7;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .modern-primary-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    /* Effets au survol */
    .currency-selector-modern:hover {
        opacity: 0.9;
    }

    .amount-with-currency:focus-within {
        border-color: #FEDA48;
    }

    .currency-dropdown .currency-option:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Styles pour les logos des devises */
    .currency-logo {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 0.5rem;
        border: 2px solid var(--border-color);
        background: var(--darker-bg);
    }

    .currency-logo-large {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 0.75rem;
        border: 2px solid var(--border-color);
        background: var(--darker-bg);
    }

    .currency-icon-fallback {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        font-size: 12px;
        font-weight: bold;
        margin-right: 0.5rem;
    }

    .currency-icon-fallback-large {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 0.75rem;
    }

    /* Styles pour le conteneur de conversion HTMX */
    #conversion-container {
        margin: 1rem 0;
    }

    #conversion-container .conversion-display {
        background: linear-gradient(135deg, var(--input-bg), var(--card-bg));
        border-radius: 12px;
        padding: 1rem;
        border: 1px solid var(--border-color);
        /* animation supprimée */
    }

    #conversion-container .conversion-result {
        color: var(--text-primary);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    #conversion-container .conversion-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

    #conversion-container .conversion-details span {
        text-align: center;
        padding: 0.4rem;
        background: var(--darker-bg);
        border-radius: 6px;
        border: 1px solid var(--border-color);
    }

    /* Styles pour le nouveau design du fragment de conversion */
    .conversion-display {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
        border-radius: 14px;
        padding: 1.25rem;
        border: 1px solid rgba(99, 102, 241, 0.3);
        position: relative;
        overflow: hidden;
    }

    .conversion-display::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
        background-size: 200% 100%;
        /* animation supprimée */
    }

    @keyframes shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }

    /* États du fragment */
    .error-state {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
        border-color: rgba(239, 68, 68, 0.3);
        text-align: center;
        padding: 1.5rem;
    }

    .empty-state {
        background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #374151 100%);
        border-color: rgba(156, 163, 175, 0.3);
        text-align: center;
        padding: 1.5rem;
    }

    .error-icon, .empty-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .error-message, .empty-message {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 500;
    }

    /* Résultat principal */
    .main-result {
        text-align: center;
        margin-bottom: 1.25rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .result-label {
        color: #a8a8b3;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        font-weight: 600;
    }

    .result-amount {
        /* animation supprimée */
    }

    .currency-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .currency-logo-result {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .currency-fallback-result {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .amount-value {
        font-size: 1.6rem;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .currency-code {
        font-size: 1rem;
        font-weight: 600;
        color: #06b6d4;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Grille de conversion */
    .conversion-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .detail-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        /* transition supprimée */
        /* animation supprimée */
    }

    .detail-card:hover {
        /* transform supprimé */
        border-color: rgba(99, 102, 241, 0.4);
    }

    .card-header {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .card-icon {
        font-size: 1rem;
    }

    .card-title {
        color: #a8a8b3;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .card-content {
        color: #ffffff;
    }

    /* Affichage du taux */
    .rate-display {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .rate-number {
        font-weight: 700;
        color: #10b981;
    }

    .currency-pair {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .currency-logo-small {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .currency-fallback-small {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        font-weight: bold;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .currency-symbol {
        font-weight: 600;
        color: #06b6d4;
    }

    .equals {
        color: #a8a8b3;
        font-weight: 500;
    }

    .rate-value {
        font-weight: 700;
        color: #10b981;
    }


    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    /* Messages de notification */
    .messages-container {
        margin-bottom: 1.5rem;
    }

    .message-notification {
        padding: 1rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        font-weight: 500;
        /* animation supprimée */
    }

    .alert-error {
        border-left: 4px solid #ef4444;
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    .alert-warning {
        border-left: 4px solid #f59e0b;
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
    }

    .alert-success {
        border-left: 4px solid #10b981;
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
    }

    .alert-info {
        border-left: 4px solid #3b82f6;
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    /* Sections modernes */
    .modern-section {
        background: rgba(26, 32, 44, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        /* transition supprimée */
    }
    
    .modern-section:hover {
        border-color: rgba(251, 191, 36, 0.3);
    }
    
    /* Badges modernes */
    .modern-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 16px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-bottom: 12px;
    }
    
    .modern-badge.give {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
    }
    
    .modern-badge.receive {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }
    
    /* Sélecteur de devise moderne personnalisé */
    .modern-currency-selector {
        position: relative;
        margin-bottom: 12px;
    }
    
    .modern-currency-button {
        background: rgba(26, 32, 44, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: white;
        padding: 10px 12px;
        font-size: 0.9rem;
        width: 100%;
        cursor: pointer;
        /* transition supprimée */
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 42px;
    }
    
    .modern-currency-button:hover {
        border-color: rgba(251, 191, 36, 0.3);
    }
    
    .modern-currency-button:focus,
    .modern-currency-button.active {
        border-color: #fbbf24;
        outline: none;
    }
    
    .currency-display {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .currency-logo-modern {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .currency-fallback-modern {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #1a202c;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        font-weight: bold;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .currency-dropdown-modern {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 32, 44, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        margin-top: 4px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        backdrop-filter: blur(10px);
    }
    
    .currency-dropdown-modern.active {
        display: block;
    }
    
    .currency-option-modern {
        padding: 10px 12px;
        cursor: pointer;
        /* transition supprimée */
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
    }
    
    .currency-option-modern:hover {
        background: rgba(251, 191, 36, 0.1);
    }
    
    .currency-option-modern:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    .currency-option-modern:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    
    .dropdown-arrow {
        color: #a0aec0;
        font-size: 0.8rem;
        /* transition supprimée */
    }
    
    .modern-currency-button.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Input moderne */
    .modern-input {
        background: rgba(26, 32, 44, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: white;
        padding: 12px;
        font-size: 1rem;
        width: 100%;
        /* transition supprimée */
    }
    
    .modern-input:focus {
        border-color: #fbbf24;
        outline: none;
    }
    
    .modern-input::placeholder {
        color: #a0aec0;
    }
    
    /* Labels */
    .modern-label {
        color: #a0aec0;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 6px;
        display: block;
    }
    
    /* Stats Min/Max */
    .modern-stats {
        display: flex;
        gap: 3px;
        margin-top: 3px;
    }
    
    .modern-stat {
        flex: 1;
        background: rgba(26, 32, 44, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        padding: 4px 6px;
        text-align: center;
    }
    
    .modern-stat-label {
        color: #a0aec0;
        font-size: 0.55rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        margin-bottom: 2px;
    }
    
    .modern-stat-value {
        color: white;
        font-size: 0.7rem;  
        font-weight: 600;
    }
    
    /* Bouton d'échange */
    .modern-swap-btn {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #1a202c;
        font-weight: 700;
        cursor: pointer;
        /* transition supprimée */
        margin: 8px auto;
    }
    
    .modern-swap-btn:hover {
        /* transform supprimé */
    }
    
    /* Bouton principal */
    .modern-primary-btn {
        background: #FEDA48;
        border: none;
        border-radius: 100px;
        color: #000000;
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        padding: 14px 20px;
        width: 100%;
        height: 48px;
        cursor: pointer;
        margin-top: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modern-primary-btn:hover {
        background: #FEDA48;
        opacity: 0.9;
    }
    
    .modern-primary-btn:disabled {
        background: #4a5568;
        color: #a0aec0;
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    /* Styles personnalisés pour les tabs modernes */
    .modern-tabs-container {
        background: rgba(26, 32, 44, 0.8);
        border-radius: 12px;
        padding: 3px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        overflow: hidden;
    }

    .modern-tabs-container .tab {
        background: transparent;
        border: none;
        color: #a0aec0;
        font-weight: 600;
        font-size: 0.7rem;
        padding: 6px 4px;
        /* transition supprimée */
        border-radius: 8px;
        margin: 0 1px;
        cursor: pointer;
        position: relative;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Gestion de l'affichage du texte selon la taille d'écran */
    .tab-text-short {
        display: none;
    }

    .tab-text-full {
        display: inline;
    }

    .modern-tabs-container .tab:hover {
        background: rgba(251, 191, 36, 0.1);
        color: #fbbf24;
        /* transform supprimé */
    }

    .modern-tabs-container .tab.tab-active {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #1a202c;
        font-weight: 700;
        /* transform supprimé */
    }

    /* Panneaux des onglets */
    .tab-panels {
        position: relative;
        min-height: 500px;
    }

    .tab-panel {
        display: none;
        /* animation supprimée */
    }

    .tab-panel.active {
        display: block;
    }

    .modern-tab-content {
        background: rgba(26, 32, 44, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 24px;
        backdrop-filter: blur(10px);
    }

    /* États de chargement pour HTMX */
    .loading-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        color: #a0aec0;
    }

    .loading-state .loading {
        border-color: #fbbf24;
    }

    /* Animation pour l'apparition des contenus */
    @keyframes fadeInTab {
        from {
            opacity: 0;
            transform: translateY(15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Styles simplifiés sans animations */

    /* Responsive */
    @media (max-width: 768px) {
        /* PLEIN ÉCRAN SUR MOBILE - Supprimer les paddons du parent */
        .pt-16,
        .lg\:pt-0,
        div.pt-16.lg\:pt-0 {
            padding: 0 !important;
            margin: 0 !important;
        }
        
        /* Container principal */
        .exchange-container {
            margin: 10px !important;
            padding: 2px !important;
            min-height: 100vh !important;
            align-items: stretch !important;
            width: 100% !important;
        }
        
        /* Carte principale */
        .modern-card {
            margin: 0 !important;
            border-radius: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            min-height: calc(100vh - 60px) !important;
        }
        
        /* Padding interne réduit */
        .modern-card > div {
            padding: 5px !important;
        }
        
        .modern-tabs-container {
            padding: 4px;
            flex-wrap: nowrap;
            justify-content: space-between;
        }
        
        /* Centrer les onglets - pleine largeur */
        .tabs-container-redesigned {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 0 15px 0 !important;
            justify-content: center !important;
        }
        
        .modern-tabs-container .tab {
            font-size: 0.65rem;
            padding: 8px 3px;
            margin: 0;
            flex: 1;
            text-align: center;
            min-width: 0;
        }

        /* Afficher seulement les emojis sur mobile */
        .tab-text-full {
            display: none;
        }

        .tab-text-short {
            display: inline;
            font-size: 1.1rem;
        }
        
        .tab-panels {
            min-height: 400px;
        }
        
        .modern-tab-content {
            padding: 5px !important;
        }
        
        .conversion-grid {
            grid-template-columns: 1fr;
        }
        
        .breakdown-grid {
            grid-template-columns: 1fr;
        }
        
        .currency-info {
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .rate-display {
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .fee-amount {
            flex-direction: column;
            gap: 0.25rem;
        }
    }

    /* Très petits écrans */
    @media (max-width: 480px) {
        .modern-tabs-container {
            padding: 3px;
        }
        
        .modern-tabs-container .tab {
            font-size: 0.6rem;
            padding: 6px 2px;
            margin: 0;
            min-width: 0;
            line-height: 1.2;
        }

        .tab-text-short {
            font-size: 1.2rem;
        }
        
        /* MAINTENIR PLEIN ÉCRAN - pas de margin/padding */
        .exchange-container {
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .modern-card {
            border-radius: 0 !important;
            margin: 0 !important;
        }
        
        .modern-tab-content {
            padding: 8px !important;
        }
        
        /* Centrer les onglets */
        .tabs-container-redesigned {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 auto !important;
            justify-content: center !important;
        }
    }

    /* Styles pour corriger les dépassements de texte */
    #crypto-field .modern-stats,
    #phone-field .modern-stats {
        overflow: hidden;
    }
    
    #crypto-field .modern-stat,
    #phone-field .modern-stat {
        min-width: 0;
        overflow: hidden;
    }
    
    #crypto-field .modern-primary-btn,
    #phone-field .modern-primary-btn {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    #crypto-address-label,
    #phone-field .amount-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }
    
    #crypto-new-container label[for="save-crypto-trusted"],
    #crypto-new-container > div > label,
    #phone-new-container label[for="save-phone-trusted"],
    #phone-new-container > div > label {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
        max-width: 100%;
    }
    
    #crypto-address {
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    /* Assurer que les sélecteurs de devises ne dépassent pas */
    .currency-selector-modern {
        overflow: hidden;
    }
    
    .currency-selector-modern .currency-name-display {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Styles pour les filtres de devises */
    .currency-filter-tabs {
        display: flex;
        gap: 4px;
        padding: 8px;
        border-bottom: 1px solid #2a2d47;
        background: #1a1a1a;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .currency-filter-tab {
        flex: 1;
        padding: 8px 12px;
        background: #2a2d47;
        border: 1px solid #3a3d57;
        border-radius: 8px;
        color: #C7C7C7;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
    }
    
    .currency-filter-tab:hover {
        background: #3a3d57;
        border-color: #FEDA48;
        color: #FFFFFF;
    }
    
    .currency-filter-tab.active {
        background: #FEDA48;
        border-color: #FEDA48;
        color: #000000;
        font-weight: 600;
    }
    
    /* Masquer les devises filtrées */
    .currency-option.hidden {
        display: none !important;
    }
    
    @media (max-width: 480px) {
        #crypto-field .modern-primary-btn,
        #phone-field .modern-primary-btn {
            font-size: 0.7rem;
            padding: 6px 8px;
        }
        
        #crypto-address-label,
        #phone-field .amount-label {
            font-size: 0.85rem;
        }
        
        .currency-name-display {
            font-size: 12px;
        }
        
        /* ===== CORRECTIFS MOBILE PETITS ÉCRANS ===== */
        
        /* Container principal - PLEIN ÉCRAN */
        .exchange-container {
            padding: 0 !important;
            margin: 0 !important;
            min-height: 100vh !important;
            align-items: stretch !important;
        }
        
        .modern-card {
            margin: 0 !important;
            border-radius: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            min-height: calc(100vh - 60px) !important;
        }
        
        .modern-card > div {
            padding: 12px !important;
        }
        
        /* Sélecteur de devise - 50% de largeur sur mobile */
        .currency-selector-modern {
            flex: 0 0 50% !important;
            min-width: 0 !important;
            max-width: none !important;
            padding: 6px 12px !important;
            justify-content: center !important;
        }
        
        .currency-selector-modern .currency-icon-modern {
            width: 20px !important;
            height: 20px !important;
            font-size: 9px !important;
        }
        
        .currency-selector-modern .currency-name-display {
            font-size: 12px !important;
            max-width: none !important;
            white-space: nowrap !important;
        }
        
        /* Container montant + devise */
        .amount-with-currency {
            padding: 8px 12px !important;
            gap: 8px !important;
            flex-wrap: nowrap !important;
        }
        
        .amount-value-display {
            font-size: 14px !important;
        }
        
        /* Onglets de filtres plus compacts */
        .currency-filter-tabs {
            gap: 2px !important;
            padding: 6px !important;
        }
        
        .currency-filter-tab {
            padding: 6px 8px !important;
            font-size: 0.75rem !important;
            min-width: auto !important;
        }
        
        /* Options de devise dans le dropdown */
        .currency-option {
            padding: 10px 12px !important;
            gap: 8px !important;
        }
        
        .currency-option img,
        .currency-option .currency-icon-modern {
            width: 20px !important;
            height: 20px !important;
        }
        
        /* Header et titre */
        .modern-header-redesigned .main-title {
            font-size: 1.2rem !important;
        }
        
        .modern-header-redesigned .subtitle {
            font-size: 0.8rem !important;
        }
        
        /* Tabs container principal */
        .tabs-container-redesigned {
            padding: 4px !important;
            min-height: 45px !important;
            max-width: 100% !important;
        }
        
        .tab-redesigned {
            font-size: 11px !important;
            padding: 4px 6px !important;
            min-height: 35px !important;
        }
        
        .tab-active-redesigned {
            width: auto !important;
        }
        
        /* Section headers */
        .section-header-modern {
            font-size: 15px !important;
        }
        
        /* Bouton flottant - position ajustée sur mobile */
        .floating-history-btn {
            bottom: 20px !important;
            left: 20px !important;
            width: 50px !important;
            height: 50px !important;
            padding: 0 !important;
            border-radius: 15px !important;
        }
        
        .floating-history-btn .btn-text {
            display: none !important;
        }
        
        .floating-history-btn svg {
            width: 24px !important;
            height: 24px !important;
        }
    }
    
    /* Écrans très petits (iPhone SE, etc.) */
    @media (max-width: 360px) {
        .currency-selector-modern {
            flex: 0 0 50% !important;
            padding: 5px 8px !important;
        }
        
        .currency-selector-modern .currency-name-display {
            font-size: 10px !important;
        }
        
        .amount-with-currency {
            padding: 6px 10px !important;
        }
        
        .amount-value-display {
            font-size: 13px !important;
        }
        
        .tab-redesigned {
            font-size: 10px !important;
            padding: 3px 4px !important;
        }
        
        .currency-filter-tab {
            font-size: 0.7rem !important;
            padding: 5px 6px !important;
        }
    }

    /* ========== BOUTON FLOTTANT HISTORIQUE PREMIUM ========== */
    .floating-history-btn {
        position: fixed;
        bottom: 30px;
        left: 30px;
        height: 54px;
        padding: 0 24px 0 20px;
        border-radius: 16px;
        background: rgba(20, 20, 20, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(254, 218, 72, 0.3);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                    inset 0 1px 1px rgba(255, 255, 255, 0.1);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 9999;
        text-decoration: none;
        color: #FEDA48;
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    
    .floating-history-btn .btn-text {
        white-space: nowrap;
        background: linear-gradient(90deg, #FEDA48, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .floating-history-btn:hover {
        transform: translateY(-5px) scale(1.05);
        border-color: rgba(254, 218, 72, 0.8);
        background: rgba(30, 30, 30, 0.8);
        box-shadow: 0 12px 40px rgba(254, 218, 72, 0.2),
                    0 0 0 1px rgba(254, 218, 72, 0.2);
    }

    .floating-history-btn:active {
        transform: scale(0.96);
    }

    .floating-history-btn svg {
        width: 22px;
        height: 22px;
        color: #FEDA48;
        transition: transform 0.4s ease;
    }

    .floating-history-btn:hover svg {
        transform: rotate(-15deg);
    }

    /* Animation de l'arrière-plan */
    .floating-history-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, rgba(254, 218, 72, 0.5), transparent, rgba(254, 218, 72, 0.2));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    /* Tooltip élégant */
    .floating-history-btn::after {
        content: 'Historique des transactions';
        position: absolute;
        left: calc(100% + 15px);
        background: rgba(0, 0, 0, 0.9);
        color: #fff;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(-10px);
        visibility: hidden;
        transition: all 0.3s ease;
        border: 1px solid rgba(254, 218, 72, 0.2);
        pointer-events: none;
    }

    .floating-history-btn:hover::after {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }

    /* Animation subtile de pulsation de bordure */
    .floating-history-btn.pulse {
        animation: border-pulse 3s infinite;
    }

    @keyframes border-pulse {
        0%, 100% { border-color: rgba(254, 218, 72, 0.3); }
        50% { border-color: rgba(254, 218, 72, 0.7); }
    }

    /* Animation pulse pour attirer l'attention */
    @keyframes pulse-glow {
        0%, 100% {
            box-shadow: 0 4px 20px rgba(254, 218, 72, 0.4);
        }
        50% {
            box-shadow: 0 4px 30px rgba(254, 218, 72, 0.7);
        }
    }

    .floating-history-btn.pulse {
        animation: pulse-glow 2s infinite;
    }

    /* Responsive pour mobile */
    @media (max-width: 768px) {
        .floating-history-btn {
            bottom: 20px;
            left: 10px;
            height: 40px;
            width: auto;
            padding: 0 14px 0 12px;
            border-radius: 20px;
            font-size: 0.75rem;
        }

        .floating-history-btn svg {
            width: 18px;
            height: 18px;
        }
        
        .floating-history-btn .btn-text {
            display: inline;
        }

        .floating-history-btn::before,
        .floating-history-btn::after {
            display: none;
        }
    }

    /* ========== POPUP BIENTÔT DISPONIBLE PREMIUM ========== */
    .popup-bientot-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
    }

    .popup-bientot-overlay.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .popup-bientot-content {
        background: #121212;
        border: 1px solid rgba(254, 218, 72, 0.2);
        border-radius: 24px;
        padding: 40px 30px;
        text-align: center;
        max-width: 450px;
        width: 100%;
        position: relative;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        animation: popupAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes popupAppear {
        from { transform: scale(0.8) translateY(20px); opacity: 0; }
        to { transform: scale(1) translateY(0); opacity: 1; }
    }

    .popup-bientot-close {
        position: absolute;
        top: -15px;
        right: -15px;
        background: #FEDA48;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        color: #000;
        box-shadow: 0 10px 20px rgba(254, 218, 72, 0.3);
        transition: transform 0.2s ease;
        z-index: 10;
        line-height: 1;
    }

    .popup-bientot-close:hover {
        transform: scale(1.1);
    }

    .popup-bientot-icon-wrapper {
        width: 100px;
        height: 100px;
        background: #FEDA48;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 25px;
        box-shadow: 0 15px 30px rgba(254, 218, 72, 0.2);
    }

    .popup-bientot-icon-wrapper i,
    .popup-bientot-icon-wrapper svg {
        font-size: 40px;
        color: #fff;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .popup-bientot-title {
        color: #FFFFFF;
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 15px;
        font-family: 'Inter', sans-serif;
    }

    .popup-bientot-text {
        color: #C7C7C7;
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .popup-bientot-footer {
        color: #C7C7C7;
        font-size: 16px;
        font-weight: 500;
    }

    .popup-bientot-footer .brand {
        color: #FEDA48;
