.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-container {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.popup-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.popup-success-icon {
    background: #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.popup-success-icon i {
    color: white;
    font-size: 20px;
}

.popup-content {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.token-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.token-details div {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: #ddd;
}

.token-details .label {
    color: #888;
}

.token-details .value {
    color: #fff;
    word-break: break-all;
}

.popup-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.popup-button {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    white-space: nowrap;
}

.popup-button.primary {
    background: #4CAF50;
    color: white;
}

.popup-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copy-button {
    background: transparent;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.copy-button:hover {
    color: #45a049;
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay.active .popup-container {
    animation: slideIn 0.3s ease-out;
}

/* Payment Confirmation Popup Styles */
.payment-icon {
    background: #ff9800 !important;
}

.payment-notice {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #fff;
}

.fee-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fee-item:last-child {
    border-bottom: none;
}

.payment-warning {
    color: #ff9800;
    font-size: 0.9em;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-warning i {
    font-size: 1.1em;
}

/* Responsività */
@media (max-width: 480px) {
    .popup-container {
        width: 95%;
        padding: 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .token-details {
        font-size: 14px;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-button {
        width: 100%;
    }
}
