/**
 * Styles pour l'interface de connexion Wallet - Version optimisée
 * Contient uniquement les styles utilisés dans le jeu
 */

/* Solde wallet SOL dans le header */
.wallet-sol-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #00ff88;
    margin-left: 12px;
}

.wallet-sol-balance .solana-logo {
    font-size: 14px;
}

/* Contrôles wallet dans le header */
.wallet-controls {
    display: flex;
    align-items: right;
    gap: 16px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 207, 64, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 207, 64, 0.1) inset;
}

.wallet-status-container {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 207, 64, 0.2);
    margin-right: 10%;
    border-radius: 30px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 207, 64, 0.1) inset;
    min-width: 200px;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

/* Styles pour les nouveaux boutons */
.development-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.development-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.guest-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d) !important;
    border: 1px solid rgba(78, 205, 196, 0.3) !important;
    color: white !important;
    margin-top: 10px;
}

.guest-btn:hover {
    background: linear-gradient(135deg, #5ee7de, #4bb5a3) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.wallet-status-container.connected {
    background: rgba(10, 10, 15, 0.8);
    border-color: rgba(255, 207, 64, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 207, 64, 0.1) inset;
}

.wallet-status-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 207, 64, 0.2) inset;
}

.wallet-status-container.connected:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 207, 64, 0.2) inset;
}

.wallet-address-text {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255,107,107,0.5);
    flex: 1;
    text-align: left;
}

.wallet-address-text.connected {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0,255,136,0.5);
}

.wallet-connect-btn {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.4);
    color: #00ff88;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0,255,136,0.3);
    box-shadow: 0 2px 8px rgba(0,255,136,0.1);
}

.wallet-connect-btn.connected {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.4);
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255,107,107,0.3);
    box-shadow: 0 2px 8px rgba(255,107,107,0.1);
}

.wallet-connect-btn:hover {
    background: rgba(0,255,136,0.2);
    border-color: rgba(0,255,136,0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,255,136,0.2);
}

.wallet-connect-btn.connected:hover {
    background: rgba(255,107,107,0.2);
    border-color: rgba(255,107,107,0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.2);
}

.escrow-deposit-btn {
    background: linear-gradient(135deg, rgba(255,207,64,0.15), rgba(255,207,64,0.25));
    border: 2px solid rgba(255,207,64,0.6);
    color: var(--neon-gold);
    border-radius: 30px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(255,207,64,0.5);
    box-shadow: 
        0 4px 15px rgba(255,207,64,0.2),
        0 0 0 1px rgba(255,207,64,0.1) inset;
    min-width: 140px;
    justify-content: center;
}

.escrow-deposit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.escrow-deposit-btn:hover::before {
    left: 100%;
}

.escrow-deposit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(255,207,64,0.5),
        0 0 25px rgba(255,207,64,0.4);
    background: linear-gradient(135deg, rgba(255,207,64,0.25), rgba(255,207,64,0.35));
    border-color: var(--neon-gold);
}

.escrow-deposit-btn.disconnected {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(255,107,107,0.25));
    border-color: rgba(255,107,107,0.6);
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255,107,107,0.5);
    box-shadow: 
        0 4px 15px rgba(255,107,107,0.2),
        0 0 0 1px rgba(255,107,107,0.1) inset;
}

.escrow-deposit-btn.disconnected:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(255,107,107,0.4),
        0 0 20px rgba(255,107,107,0.3);
    background: linear-gradient(135deg, rgba(255,107,107,0.25), rgba(255,107,107,0.35));
    border-color: #ff6b6b;
}

.escrow-withdraw-btn {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.25));
    border: 2px solid rgba(0,212,255,0.6);
    color: var(--neon-blue);
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(0,212,255,0.5);
    box-shadow:
        0 4px 15px rgba(0,212,255,0.2),
        0 0 0 1px rgba(0,212,255,0.1) inset;
    min-width: 100px;
    justify-content: center;
}

.wallet-info-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(255,255,255,0.08),
        0 0 0 1px rgba(255,255,255,0.05) inset;
    min-width: 180px;
    justify-content: center;
}

.wallet-info-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(255,255,255,0.15),
        0 0 20px rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.15));
    border-color: rgba(255,255,255,0.5);
}

.wallet-address-display {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

.escrow-withdraw-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.escrow-withdraw-btn:hover::before {
    left: 100%;
}

.escrow-withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0,212,255,0.4),
        0 0 20px rgba(0,212,255,0.3);
    background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(0,212,255,0.35));
    border-color: var(--neon-blue);
}

/* Groupe Balance + Affiliate */
.balance-affiliate-group {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
}

.escrow-balance-display {
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,255,136,0.25));
    border: 2px solid rgba(0,255,136,0.6);
    border-radius: 30px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0,255,136,0.2),
        0 0 0 1px rgba(0,255,136,0.1) inset;
    animation: pulse-glow 3s ease-in-out infinite;
    min-width: 140px;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0,255,136,0.2),
            0 0 0 1px rgba(0,255,136,0.1) inset;
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0,255,136,0.3),
            0 0 0 1px rgba(0,255,136,0.2) inset,
            0 0 15px rgba(0,255,136,0.2);
    }
}

.escrow-amount {
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
    font-weight: 700;
}

.escrow-label {
    color: #00ff88;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0,255,136,0.3);
}

.solana-logo {
    color: #00ff88;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0,255,136,0.6);
}

/* Withdraw Modal */
.withdraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.withdraw-modal.show {
    opacity: 1;
    visibility: visible;
}

.withdraw-modal-content {
    background: linear-gradient(135deg, rgba(10,10,15,0.98), rgba(26,26,46,0.98));
    border: 2px solid var(--neon-blue);
    border-radius: 25px;
    padding: 35px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.9),
        0 0 50px rgba(0,212,255,0.4),
        0 0 0 1px rgba(0,212,255,0.2) inset;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(25px);
}

.withdraw-modal.show .withdraw-modal-content {
    transform: translateY(0);
}

.withdraw-modal-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,212,255,0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.withdraw-modal-header .modal-header-content {
    flex: 1;
    text-align: center;
}

.withdraw-modal-header h2 {
    color: var(--neon-blue);
    font-size: 26px;
    margin: 0 0 5px 0;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 20px rgba(0,212,255,0.6);
}

.withdraw-modal-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.withdraw-presets {
    flex-wrap: nowrap !important;
}

.withdraw-presets .amount-preset {
    padding: 8px 12px;
    min-width: auto;
    flex: 1;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirm-withdraw-btn {
    background: linear-gradient(145deg, var(--neon-blue), #0099cc);
    border: 2px solid transparent;
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 5px 15px rgba(0,212,255,0.3),
        0 0 20px rgba(0,212,255,0.1);
    min-width: 120px;
}

.confirm-withdraw-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.confirm-withdraw-btn:hover::before {
    left: 100%;
}

.confirm-withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0,212,255,0.4),
        0 0 25px rgba(0,212,255,0.2);
    background: linear-gradient(145deg, #00d4ff, var(--neon-blue));
}

.confirm-withdraw-btn:active {
    transform: translateY(0);
}

/* Modal de dépôt escrow */
.escrow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.escrow-modal.show {
    opacity: 1;
    visibility: visible;
}

.escrow-modal-content {
    background: linear-gradient(135deg, rgba(10,10,15,0.98), rgba(26,26,46,0.98));
    border: 2px solid var(--neon-gold);
    border-radius: 25px;
    padding: 45px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.9),
        0 0 50px rgba(255,207,64,0.4),
        0 0 0 1px rgba(255,207,64,0.2) inset;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(25px);
}

.escrow-modal.show .escrow-modal-content {
    transform: translateY(0);
}

.escrow-modal-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header-content {
    flex: 1;
}

.escrow-modal-header h2 {
    color: var(--neon-gold);
    font-size: 26px;
    margin: 0 0 12px 0;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 20px rgba(255,207,64,0.6);
}

.escrow-modal-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: rotate(90deg);
}

.escrow-deposit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amount-input-group {
    text-align: left;
}

.amount-input-group label {
    display: block;
    color: var(--neon-gold);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.amount-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,207,64,0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Hide number input arrows */
.amount-input-group input[type=number]::-webkit-outer-spin-button,
.amount-input-group input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.amount-input-group input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Style for input-with-max in first modal */
.amount-input-group .input-with-max {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0px;
}

.amount-input-group .input-with-max input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,207,64,0.3);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.amount-input-group input:focus {
    outline: none;
    border-color: var(--neon-gold);
    box-shadow: 0 0 20px rgba(255,207,64,0.3);
}

.amount-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 5px;
}

.amount-preset {
    background: rgba(255,207,64,0.1);
    border: 1px solid rgba(255,207,64,0.3);
    color: var(--neon-gold);
    padding: 10px 18px;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    min-width: 70px;
}

.amount-preset:hover {
    background: rgba(255,207,64,0.2);
    border-color: var(--neon-gold);
    transform: translateY(-2px);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.confirm-deposit-btn {
    background: linear-gradient(145deg, var(--neon-gold), #f39c12);
    border: 2px solid transparent;
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 5px 15px rgba(255,207,64,0.3),
        0 0 20px rgba(255,207,64,0.1);
    min-width: 120px;
}

.confirm-deposit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.confirm-deposit-btn:hover::before {
    left: 100%;
}

.confirm-deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255,207,64,0.4),
        0 0 25px rgba(255,207,64,0.2);
    background: linear-gradient(145deg, #ffcf40, var(--neon-gold));
}

.confirm-deposit-btn:active {
    transform: translateY(0);
}

.withdraw-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.withdraw-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.withdraw-btn:hover::before {
    left: 100%;
}

.withdraw-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.4);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.withdraw-btn:active {
    transform: translateY(0);
}

/* Deposit labels layout */
.deposit-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 5px;
}

.amount-label {
    color: var(--neon-gold);
    font-size: 14px;
    font-weight: 600;
}

.balance-info {
    flex: 0 0 auto;
}

.balance-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
}

.balance-text span {
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.withdraw-balance,
.withdraw-balance span[data-i18n] {
    color: white !important;
    text-shadow: none;
}

/* Input improvements */
.input-helper {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-top: 3px;
    margin-bottom: 2px;
    text-align: left;
}

.error-message {
    background: rgba(255,107,107,0.15);
    border: 1px solid rgba(255,107,107,0.4);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255,107,107,0.3);
}

/* Enhanced button */
.confirm-deposit-btn {
    position: relative;
    overflow: hidden;
}

.confirm-deposit-btn .btn-icon {
    margin-right: 8px;
    font-size: 16px;
}

.confirm-deposit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.confirm-deposit-btn:hover::before {
    left: 100%;
}

/* ===== No Phantom Detected - Compact Design ===== */
.no-phantom-container {
    width: 100%;
    max-width: 500px;
}

.no-phantom-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,212,255,0.2);
}

.phantom-icon-compact {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(138,43,226,0.4));
}

.no-phantom-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Wallet Address Card - Compact Version */
.wallet-address-card-compact {
    background: linear-gradient(145deg, rgba(0,30,50,0.4), rgba(0,20,40,0.5));
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
}

.wallet-compact-label {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--neon-blue);
    margin-bottom: 8px;
    text-shadow: 0 0 6px rgba(0,212,255,0.4);
    text-align: center;
}

.wallet-address-text-compact {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    word-break: break-all;
    line-height: 1.5;
    display: block;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.copy-btn-compact {
    width: 100%;
    background: linear-gradient(145deg, rgba(0,100,150,0.4), rgba(0,80,120,0.5));
    border: 1px solid rgba(0,212,255,0.4);
    border-radius: 6px;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn-compact:hover {
    background: linear-gradient(145deg, rgba(0,130,200,0.5), rgba(0,100,150,0.6));
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

/* Deposit Steps - Compact Version */
.deposit-steps-compact {
    margin-bottom: 12px;
}

.step-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255,207,64,0.05);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.step-compact:last-child {
    margin-bottom: 0;
}

.step-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--neon-gold), #f39c12);
    color: #000;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phantom Install Banner */
.phantom-install-banner {
    background: linear-gradient(135deg, rgba(138,43,226,0.12), rgba(106,13,173,0.12));
    border: 1px solid rgba(138,43,226,0.35);
    border-radius: 8px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.phantom-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.phantom-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0,212,255,0.6);
}

/* Modal de connexion wallet */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wallet-modal.show {
    opacity: 1;
    visibility: visible;
}

.wallet-modal-content {
    background: linear-gradient(135deg, rgba(10,10,15,0.95), rgba(26,26,46,0.95));
    border: 2px solid var(--neon-gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.8),
        0 0 40px rgba(255,207,64,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.wallet-modal.show .wallet-modal-content {
    transform: translateY(0);
}

.wallet-modal-header {
    margin-bottom: 30px;
}

.wallet-modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-gold), var(--neon-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.wallet-modal-header p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    line-height: 1.5;
}

/* États du wallet */
.wallet-state {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.wallet-state.active {
    display: block;
}

.wallet-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.wallet-icon.loading {
    animation: pulse 2s ease-in-out infinite;
}

.wallet-state h3 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    color: var(--neon-gold);
    margin-bottom: 15px;
}

.wallet-state p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Boutons wallet */
.wallet-btn {
    background: linear-gradient(45deg, var(--neon-gold), #ffb000);
    border: none;
    color: #000;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 5px 20px rgba(255,207,64,0.3);
}

.wallet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,207,64,0.5);
}

.wallet-btn:active {
    transform: translateY(0);
}

.wallet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wallet-btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.wallet-btn-secondary:hover {
    background: var(--neon-blue);
    color: #000;
    transform: translateY(-2px);
}

/* Affichage de l'adresse */
.wallet-address {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,207,64,0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.address-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
}

.address-value {
    color: var(--neon-gold);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    flex: 1;
    text-align: center;
}

.copy-address-btn {
    background: transparent;
    border: 1px solid rgba(255,207,64,0.5);
    color: var(--neon-gold);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-address-btn:hover {
    background: rgba(255,207,64,0.2);
    transform: scale(1.05);
}

/* Loader */
.wallet-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,207,64,0.3);
    border-top: 3px solid var(--neon-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Section wallet dans le header - UTILISÉE */
.wallet-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,207,64,0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.wallet-section:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--neon-gold);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wallet-status {
    color: var(--neon-gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wallet-address-short {
    color: rgba(255,255,255,0.9);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
}

/* Affichage du solde SOL - UTILISÉ */
.wallet-balance {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wallet-balance:hover {
    background: rgba(0,255,136,0.15);
    border-color: var(--neon-green);
}

.sol-balance {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sol-amount {
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0,255,136,0.3);
}

.sol-label {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
}

/* Contrôles Escrow dans le header */
.escrow-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.escrow-btn {
    background: linear-gradient(45deg, var(--neon-purple), #aa00ff);
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.escrow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191,0,255,0.4);
}

.escrow-btn.escrow-active {
    background: linear-gradient(45deg, var(--neon-green), #00cc66);
}

.escrow-btn.escrow-active:hover {
    box-shadow: 0 5px 15px rgba(0,255,136,0.4);
}

/* Modal Escrow */
.escrow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.escrow-modal.show {
    opacity: 1;
    visibility: visible;
}

.escrow-modal-content {
    background: linear-gradient(135deg, rgba(10,10,15,0.98), rgba(26,26,46,0.98));
    border: 2px solid var(--neon-purple);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.9),
        0 0 40px rgba(191,0,255,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.escrow-modal.show .escrow-modal-content {
    transform: translateY(0);
}

.escrow-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(191,0,255,0.3);
}

.escrow-modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: rotate(90deg);
}

/* États de la modal escrow */
.escrow-state {
    display: none;
    text-align: center;
}

.escrow-state.active {
    display: block;
}

.escrow-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.escrow-icon.loading {
    animation: pulse 2s ease-in-out infinite;
}

.escrow-state h3 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    color: var(--neon-purple);
    margin-bottom: 15px;
}

.escrow-state p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Informations de solde */
.escrow-balance-info {
    margin-bottom: 25px;
}

.balance-display {
    background: rgba(191,0,255,0.1);
    border: 1px solid rgba(191,0,255,0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Champs de montant */
.amount-input-group {
    margin-bottom: 0px;
    text-align: left;
}

.amount-input-group label {
    display: block;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 8px;
}

.input-with-max {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
}

.input-with-max input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(191,0,255,0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

/* Hide number input arrows for second modal */
.input-with-max input[type=number]::-webkit-outer-spin-button,
.input-with-max input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.input-with-max input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-with-max input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(191,0,255,0.3);
}

.max-deposit-btn {
    background: linear-gradient(45deg, var(--neon-gold), var(--neon-blue));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.max-deposit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,207,64,0.3);
}

/* Montants rapides */
.quick-amounts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0px;
}

.quick-amount-btn {
    background: transparent;
    border: 1px solid rgba(191,0,255,0.5);
    color: var(--neon-purple);
    padding: 8px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 65px;
}

.quick-amount-btn:hover {
    background: rgba(191,0,255,0.2);
    transform: translateY(-2px);
}

/* Informations escrow */
.escrow-info {
    background: rgba(191,0,255,0.05);
    border: 1px solid rgba(191,0,255,0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--neon-purple);
    font-weight: 600;
    font-size: 14px;
    min-width: 100px;
}

/* Session info */
.escrow-session-info {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.session-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.session-stat:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.stat-value {
    color: var(--neon-purple);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

/* Boutons escrow */
.escrow-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.escrow-btn-primary {
    background: linear-gradient(145deg, var(--neon-purple), #9b59b6);
    border: 2px solid transparent;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(191,0,255,0.3),
        0 0 30px rgba(191,0,255,0.1);
    backdrop-filter: blur(10px);
}

.escrow-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.escrow-btn-primary:hover::before {
    left: 100%;
}

.escrow-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(191,0,255,0.5),
        0 0 40px rgba(191,0,255,0.3);
    background: linear-gradient(145deg, #bf00ff, var(--neon-purple));
}

.escrow-btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.escrow-btn-secondary {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.05);
}

.escrow-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.escrow-btn-secondary:hover::before {
    left: 100%;
}

.escrow-btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255,255,255,0.4);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        0 0 30px rgba(255,255,255,0.1);
    color: white;
}

.escrow-btn-secondary:active {
    transform: translateY(-2px) scale(0.98);
}

/* Loader escrow */
.escrow-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(191,0,255,0.3);
    border-top: 3px solid var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

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

/* Wallet Notifications */
.wallet-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    background: linear-gradient(135deg, rgba(10,10,15,0.98), rgba(26,26,46,0.98));
    border: 2px solid;
    border-radius: 20px;
    padding: 20px 30px;
    max-width: 400px;
    min-width: 320px;
    z-index: 10002;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(25px);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 100px rgba(0,0,0,0.3);
    text-align: center;
}

.wallet-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.wallet-notification.success {
    border-color: var(--neon-green);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 60px rgba(0,255,136,0.4),
        0 0 100px rgba(0,255,136,0.2);
}

.wallet-notification.error {
    border-color: #ff6b6b;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 60px rgba(255,107,107,0.4),
        0 0 100px rgba(255,107,107,0.2);
}

.wallet-notification.info {
    border-color: var(--neon-blue);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 60px rgba(0,212,255,0.4),
        0 0 100px rgba(0,212,255,0.2);
}

.notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.notification-text {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.wallet-notification.success .notification-text {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0,255,136,0.3);
}

.wallet-notification.error .notification-text {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255,107,107,0.3);
}

.wallet-notification.info .notification-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* Loading animation for info notifications */
.wallet-notification.info .notification-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* 4K+ Ultra Wide screens (3840px+) */
@media (min-width: 3840px) {
    .wallet-controls {
        padding: 20px 35px;
        gap: 25px;
        border-radius: 70px;
    }

    .wallet-status-container {
        padding: 20px 30px;
        min-width: 320px;
        border-radius: 45px;
        gap: 20px;
    }

    .wallet-address-text {
        font-size: 20px;
    }

    .wallet-connect-btn {
        font-size: 18px;
        padding: 12px 22px;
        border-radius: 30px;
    }

    .escrow-deposit-btn {
        padding: 20px 32px;
        font-size: 20px;
        min-width: 220px;
        border-radius: 45px;
    }

    .escrow-withdraw-btn {
        padding: 18px 28px;
        font-size: 18px;
        min-width: 160px;
        border-radius: 40px;
    }

    .escrow-balance-display {
        padding: 18px 30px;
        min-width: 220px;
        font-size: 20px;
        border-radius: 45px;
    }

    .escrow-amount {
        font-size: 22px;
    }

    .escrow-label {
        font-size: 18px;
    }

    .solana-logo {
        font-size: 24px;
    }

    .wallet-info-btn {
        padding: 20px 40px;
        font-size: 22px;
        min-width: 280px;
        border-radius: 45px;
    }

    .wallet-address-display {
        font-size: 22px;
    }

    /* Modals */
    .wallet-modal-content,
    .escrow-modal-content,
    .withdraw-modal-content {
        padding: 70px;
        max-width: 700px;
        border-radius: 40px;
    }

    .wallet-modal-header h2,
    .escrow-modal-header h2,
    .withdraw-modal-header h2 {
        font-size: 42px;
    }

    .wallet-modal-header p,
    .escrow-modal-header p,
    .withdraw-modal-header p {
        font-size: 22px;
    }

    .modal-close-btn {
        font-size: 36px;
        width: 55px;
        height: 55px;
    }

    .wallet-icon,
    .escrow-icon {
        font-size: 120px;
    }

    .wallet-state h3,
    .escrow-state h3 {
        font-size: 36px;
    }

    .wallet-state p,
    .escrow-state p {
        font-size: 24px;
    }

    .wallet-btn {
        font-size: 24px;
        padding: 24px 48px;
        border-radius: 40px;
    }

    .amount-input-group label {
        font-size: 20px;
    }

    .amount-input-group input,
    .input-with-max input {
        padding: 20px 24px;
        font-size: 22px;
        border-radius: 18px;
    }

    .amount-preset {
        padding: 16px 28px;
        font-size: 18px;
        min-width: 100px;
        border-radius: 30px;
    }

    .confirm-deposit-btn,
    .confirm-withdraw-btn {
        padding: 20px 40px;
        font-size: 20px;
        border-radius: 35px;
    }

    .wallet-notification {
        padding: 35px 50px;
        min-width: 500px;
        border-radius: 30px;
    }

    .notification-icon {
        font-size: 72px;
    }

    .notification-text {
        font-size: 24px;
    }

    .wallet-section {
        padding: 18px 25px;
        gap: 20px;
        border-radius: 25px;
    }

    .wallet-balance {
        padding: 14px 20px;
        border-radius: 18px;
    }

    .wallet-status {
        font-size: 18px;
    }

    .wallet-address-short,
    .sol-amount {
        font-size: 20px;
    }

    .sol-label {
        font-size: 18px;
    }
}

/* 3200px - 3840px screens */
@media (min-width: 3200px) and (max-width: 3839px) {
    .wallet-controls {
        padding: 18px 30px;
        gap: 22px;
        border-radius: 60px;
    }

    .wallet-status-container {
        padding: 18px 26px;
        min-width: 280px;
        border-radius: 40px;
        gap: 18px;
    }

    .wallet-address-text {
        font-size: 18px;
    }

    .wallet-connect-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    .escrow-deposit-btn {
        padding: 18px 28px;
        font-size: 18px;
        min-width: 190px;
        border-radius: 40px;
    }

    .escrow-withdraw-btn {
        padding: 16px 24px;
        font-size: 16px;
        min-width: 140px;
    }

    .escrow-balance-display {
        padding: 16px 26px;
        min-width: 190px;
        font-size: 18px;
        border-radius: 40px;
    }

    .escrow-amount {
        font-size: 20px;
    }

    .solana-logo {
        font-size: 22px;
    }

    .wallet-info-btn {
        padding: 18px 35px;
        font-size: 20px;
        min-width: 250px;
    }

    .wallet-address-display {
        font-size: 20px;
    }

    /* Modals */
    .wallet-modal-content,
    .escrow-modal-content,
    .withdraw-modal-content {
        padding: 60px;
        max-width: 600px;
        border-radius: 35px;
    }

    .wallet-modal-header h2,
    .escrow-modal-header h2 {
        font-size: 36px;
    }

    .wallet-modal-header p,
    .escrow-modal-header p {
        font-size: 20px;
    }

    .wallet-icon,
    .escrow-icon {
        font-size: 100px;
    }

    .wallet-state h3 {
        font-size: 32px;
    }

    .wallet-state p {
        font-size: 22px;
    }

    .wallet-btn {
        font-size: 22px;
        padding: 22px 42px;
    }

    .amount-input-group input,
    .input-with-max input {
        padding: 18px 22px;
        font-size: 20px;
    }

    .amount-preset {
        padding: 14px 24px;
        font-size: 17px;
    }

    .confirm-deposit-btn,
    .confirm-withdraw-btn {
        padding: 18px 35px;
        font-size: 18px;
    }

    .wallet-notification {
        padding: 30px 45px;
        min-width: 450px;
    }

    .notification-icon {
        font-size: 64px;
    }

    .notification-text {
        font-size: 22px;
    }
}

/* 2560px - 3200px screens */
@media (min-width: 2560px) and (max-width: 3199px) {
    .wallet-controls {
        padding: 16px 26px;
        gap: 20px;
    }

    .wallet-status-container {
        padding: 16px 22px;
        min-width: 250px;
        gap: 16px;
    }

    .wallet-address-text {
        font-size: 16px;
    }

    .wallet-connect-btn {
        font-size: 14px;
        padding: 9px 18px;
    }

    .escrow-deposit-btn {
        padding: 16px 24px;
        font-size: 16px;
        min-width: 170px;
    }

    .escrow-withdraw-btn {
        padding: 14px 20px;
        font-size: 14px;
        min-width: 120px;
    }

    .escrow-balance-display {
        padding: 14px 22px;
        min-width: 170px;
        font-size: 16px;
    }

    .escrow-amount {
        font-size: 18px;
    }

    .solana-logo {
        font-size: 20px;
    }

    .wallet-info-btn {
        padding: 16px 30px;
        font-size: 18px;
        min-width: 220px;
    }

    .wallet-address-display {
        font-size: 18px;
    }

    /* Modals */
    .wallet-modal-content,
    .escrow-modal-content,
    .withdraw-modal-content {
        padding: 55px;
        max-width: 550px;
    }

    .wallet-modal-header h2,
    .escrow-modal-header h2 {
        font-size: 32px;
    }

    .wallet-icon,
    .escrow-icon {
        font-size: 95px;
    }

    .wallet-state h3 {
        font-size: 28px;
    }

    .wallet-state p {
        font-size: 20px;
    }

    .wallet-btn {
        font-size: 20px;
        padding: 20px 38px;
    }

    .amount-input-group input,
    .input-with-max input {
        padding: 16px 20px;
        font-size: 18px;
    }

    .amount-preset {
        padding: 12px 22px;
        font-size: 16px;
    }

    .confirm-deposit-btn,
    .confirm-withdraw-btn {
        padding: 16px 30px;
        font-size: 17px;
    }

    .wallet-notification {
        padding: 28px 40px;
        min-width: 420px;
    }

    .notification-icon {
        font-size: 58px;
    }

    .notification-text {
        font-size: 20px;
    }
}

/* 1920px - 2560px screens */
@media (min-width: 1920px) and (max-width: 2559px) {
    .wallet-controls {
        padding: 14px 22px;
        gap: 18px;
    }

    .wallet-status-container {
        padding: 14px 20px;
        min-width: 230px;
    }

    .wallet-address-text {
        font-size: 15px;
    }

    .escrow-deposit-btn {
        padding: 14px 22px;
        font-size: 15px;
        min-width: 160px;
    }

    .escrow-withdraw-btn {
        padding: 12px 18px;
        font-size: 14px;
        min-width: 115px;
    }

    .escrow-balance-display {
        padding: 12px 20px;
        min-width: 160px;
        font-size: 15px;
    }

    .wallet-info-btn {
        padding: 14px 28px;
        font-size: 17px;
        min-width: 200px;
    }

    .wallet-address-display {
        font-size: 17px;
    }

    /* Modals */
    .wallet-modal-content,
    .escrow-modal-content,
    .withdraw-modal-content {
        padding: 50px;
        max-width: 500px;
    }

    .wallet-modal-header h2,
    .escrow-modal-header h2 {
        font-size: 30px;
    }

    .wallet-icon,
    .escrow-icon {
        font-size: 90px;
    }

    .wallet-state h3 {
        font-size: 26px;
    }

    .wallet-btn {
        font-size: 18px;
        padding: 18px 34px;
    }

    .amount-input-group input,
    .input-with-max input {
        padding: 14px 18px;
        font-size: 17px;
    }

    .confirm-deposit-btn,
    .confirm-withdraw-btn {
        padding: 14px 28px;
        font-size: 16px;
    }

    .wallet-notification {
        padding: 25px 35px;
        min-width: 380px;
    }

    .notification-icon {
        font-size: 54px;
    }

    .notification-text {
        font-size: 18px;
    }
}

/* 1600px - 1920px screens */
@media (min-width: 1600px) and (max-width: 1919px) {
    .wallet-controls {
        padding: 13px 20px;
        gap: 17px;
    }

    .wallet-status-container {
        padding: 13px 19px;
        min-width: 215px;
    }

    .wallet-address-text {
        font-size: 14px;
    }

    .escrow-deposit-btn {
        padding: 13px 20px;
        font-size: 14px;
        min-width: 150px;
    }

    .escrow-withdraw-btn {
        padding: 11px 17px;
        font-size: 13px;
        min-width: 110px;
    }

    .escrow-balance-display {
        padding: 11px 18px;
        min-width: 150px;
        font-size: 14px;
    }

    .wallet-info-btn {
        padding: 13px 26px;
        font-size: 16px;
        min-width: 190px;
    }

    .wallet-address-display {
        font-size: 16px;
    }
}

/* Medium screens / Tablets */
@media (max-width: 992px) {
    .wallet-controls {
        position: static;
        transform: none;
        padding: 10px 15px;
    }

    .wallet-status-container {
        margin-right: 0;
        min-width: 150px;
    }

    .escrow-deposit-btn {
        min-width: 120px;
        padding: 10px 15px;
    }

    .escrow-withdraw-btn {
        min-width: 90px;
    }

    .escrow-balance-display {
        min-width: 120px;
    }
}

/* Small screens / Mobile */
@media (max-width: 768px) {
    .wallet-notification {
        max-width: 90%;
        min-width: 280px;
        padding: 18px 25px;
    }

    .notification-icon {
        font-size: 36px;
    }

    .notification-text {
        font-size: 14px;
    }

    .wallet-modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: 95%;
    }

    .wallet-modal-header h2 {
        font-size: 22px;
    }

    .wallet-modal-header p {
        font-size: 14px;
    }

    .wallet-icon {
        font-size: 60px;
    }

    .wallet-state h3 {
        font-size: 20px;
    }

    .wallet-state p {
        font-size: 14px;
    }

    .wallet-section {
        padding: 6px 8px;
        gap: 8px;
    }

    .wallet-balance {
        padding: 6px 8px;
    }

    .wallet-status {
        font-size: 10px;
    }

    .wallet-address-short,
    .sol-amount {
        font-size: 11px;
    }

    .sol-label {
        font-size: 10px;
    }

    .wallet-address {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .address-value {
        font-size: 12px;
        text-align: center;
    }

    .wallet-controls {
        padding: 8px 12px;
        gap: 10px;
    }

    .wallet-status-container {
        padding: 10px 12px;
        min-width: auto;
        flex-wrap: wrap;
    }

    .wallet-address-text {
        font-size: 11px;
    }

    .wallet-connect-btn {
        font-size: 10px;
        padding: 5px 10px;
    }

    .escrow-deposit-btn {
        padding: 6px 14px;
        font-size: 10px;
        min-width: auto;
        border-radius: 12px;
        border-width: 1px;
    }

    .escrow-withdraw-btn {
        padding: 6px 14px;
        font-size: 10px;
        min-width: auto;
        border-radius: 12px;
        border-width: 1px;
    }

    .escrow-balance-display {
        padding: 6px 14px;
        min-width: auto;
        font-size: 10px;
        border-radius: 12px;
        border-width: 1px;
    }

    .wallet-info-btn {
        padding: 7px 16px;
        font-size: 11px;
        min-width: auto;
        border-radius: 12px;
        border-width: 1px;
    }

    /* Escrow modal */
    .escrow-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .escrow-modal-header h2 {
        font-size: 22px;
    }

    .escrow-modal-header p {
        font-size: 13px;
    }

    .amount-preset {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 60px;
    }

    .amount-buttons {
        flex-wrap: wrap;
    }

    .confirm-deposit-btn,
    .confirm-withdraw-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Withdraw modal */
    .withdraw-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .withdraw-modal-header h2 {
        font-size: 22px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .wallet-btn {
        font-size: 13px;
        padding: 12px 18px;
        margin: 8px 5px;
    }

    .wallet-address-short {
        font-size: 11px;
    }

    /* Responsive escrow */
    .escrow-btn {
        font-size: 10px;
        padding: 6px 8px;
    }

    .escrow-modal-content {
        padding: 20px 15px;
        margin: 10px;
    }

    .escrow-modal-header {
        margin-bottom: 20px;
    }

    .escrow-modal-header h2 {
        font-size: 20px;
    }

    .escrow-buttons {
        flex-direction: column;
    }

    .escrow-btn-primary,
    .escrow-btn-secondary {
        min-width: 100%;
        margin-bottom: 10px;
        padding: 14px 24px;
    }

    .quick-amounts {
        justify-content: center;
    }

    .amount-preset {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 55px;
    }

    .deposit-labels {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .amount-input-group input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .input-with-max input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .max-deposit-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .wallet-modal-content {
        padding: 25px 15px;
    }

    .wallet-modal-header h2 {
        font-size: 20px;
    }

    .wallet-icon {
        font-size: 50px;
    }

    .wallet-state h3 {
        font-size: 18px;
    }

    .wallet-state p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .wallet-address {
        padding: 12px;
    }

    .address-label {
        font-size: 12px;
    }

    .address-value {
        font-size: 11px;
    }

    .copy-address-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .wallet-loader {
        width: 40px;
        height: 40px;
    }

    .wallet-notification {
        min-width: 260px;
        padding: 15px 20px;
    }

    .notification-icon {
        font-size: 32px;
    }

    .notification-text {
        font-size: 13px;
    }

    .escrow-deposit-btn {
        padding: 6px 14px;
        font-size: 10px;
        min-width: auto;
        border-radius: 12px;
        border-width: 1px;
    }

    .escrow-withdraw-btn {
        padding: 6px 14px;
        font-size: 10px;
        min-width: auto;
        border-radius: 12px;
        border-width: 1px;
    }

    .escrow-balance-display {
        padding: 6px 14px;
        min-width: auto;
        font-size: 10px;
        border-radius: 12px;
        border-width: 1px;
    }

    .solana-logo {
        font-size: 10px;
    }

    .wallet-info-btn {
        padding: 7px 16px;
        font-size: 11px;
        min-width: auto;
        border-radius: 12px;
        border-width: 1px;
    }

    .wallet-address-display {
        font-size: 9px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .wallet-modal-content {
        padding: 20px 12px;
    }

    .wallet-btn {
        font-size: 12px;
        padding: 10px 15px;
    }

    .escrow-modal-content {
        padding: 15px 12px;
    }

    .amount-buttons {
        gap: 5px;
    }

    .amount-preset {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 50px;
    }

    /* Header elements for very small screens */
    .escrow-deposit-btn,
    .escrow-withdraw-btn {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 6px;
    }

    .escrow-balance-display {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 6px;
    }

    .wallet-info-btn {
        padding: 4px 8px;
        font-size: 8px;
        border-radius: 6px;
    }

    .solana-logo {
        font-size: 7px;
    }

    .wallet-address-display {
        font-size: 7px;
    }
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== COMPACT MODE - Pour écrans avec hauteur limitée ===== */
@media (max-height: 900px) {
    .escrow-deposit-btn {
        padding: 10px 16px;
        font-size: 12px;
        min-width: 120px;
    }

    .escrow-withdraw-btn {
        padding: 8px 14px;
        font-size: 11px;
        min-width: 90px;
    }

    .wallet-info-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 160px;
    }

    .escrow-balance-display {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 130px;
    }
}

@media (max-height: 800px) {
    .escrow-deposit-btn {
        padding: 8px 14px;
        font-size: 11px;
        min-width: 110px;
    }

    .escrow-withdraw-btn {
        padding: 7px 12px;
        font-size: 10px;
        min-width: 80px;
    }

    .wallet-info-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 140px;
    }

    .wallet-address-display {
        font-size: 13px;
    }

    .escrow-balance-display {
        padding: 7px 14px;
        font-size: 11px;
        min-width: 120px;
    }

    .escrow-amount {
        font-size: 12px;
    }

    .escrow-label {
        font-size: 11px;
    }

    .solana-logo {
        font-size: 14px;
    }
}