/* Payment Selection Styling - Xu/Vàng Selection */
.wallet-selection {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    border: 1px solid #81d4fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
    position: relative;
    overflow: hidden;
}

.wallet-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.wallet-selection .row {
    position: relative;
    z-index: 2;
}

.wallet-option {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 18px;
    margin: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(144, 202, 249, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.wallet-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.wallet-option.selected {
    border-color: #2196f3;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.wallet-option h5 {
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 16px;
    color: #1976d2;
    text-align: center;
}

.wallet-option h5 i {
    margin-right: 6px;
    font-size: 18px;
}

.wallet-option p {
    margin-bottom: 12px;
    color: #546e7a;
    font-size: 14px;
    text-align: center;
}

.wallet-option p strong {
    color: #1976d2;
    font-weight: 600;
}

/* Radio Button Styling */
.wallet-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 400;
    color: #1976d2;
    margin: 0;
    font-size: 13px;
}

.wallet-option input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #90caf9;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.wallet-option input[type="radio"]:checked {
    border-color: #2196f3;
    background: #2196f3;
}

.wallet-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* Xu Wallet Specific */
.wallet-option.xu-wallet {
    border-left: 3px solid #ffb300;
}

.wallet-option.xu-wallet h5 i {
    color: #ff8f00;
}

.wallet-option.xu-wallet:hover {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.wallet-option.xu-wallet.selected {
    border-left-color: #ff8f00;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

/* Vàng Wallet Specific */
.wallet-option.gold-wallet {
    border-left: 3px solid #f57c00;
}

.wallet-option.gold-wallet h5 i {
    color: #e65100;
}

.wallet-option.gold-wallet:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.wallet-option.gold-wallet.selected {
    border-left-color: #e65100;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

/* Recommendation Text */
.payment-recommendation {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.payment-recommendation small {
    color: #1976d2;
    font-size: 12px;
    font-weight: 400;
}

.payment-recommendation i {
    margin-right: 4px;
    color: #2196f3;
}

/* Balance Display */
.balance-display {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin: 2px 0;
    border: 1px solid #90caf9;
    font-weight: 500;
    color: #1976d2;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wallet-selection {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wallet-option {
        margin: 5px 0;
        padding: 15px;
    }
    
    .wallet-option h5 {
        font-size: 16px;
    }
    
    .wallet-option p {
        font-size: 14px;
    }
}

/* Animation for selection */
@keyframes selectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wallet-option.just-selected {
    animation: selectPulse 0.6s ease;
}

/* Loading state */
.wallet-option.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wallet-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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