/* Shared logout / return-to-admin modal — influencer + merchant */
.btn-cancel-modern,
.btn-logout-modern,
.btn-return-admin-modern {
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.btn-cancel-modern {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    border: 2px solid #d1d5db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cancel-modern:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #d1d5db 100%);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-logout-modern {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-logout-modern:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-return-admin-modern {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.38) !important;
}

.btn-return-admin-modern:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.48) !important;
}

.btn-return-admin-modern:active {
    transform: translateY(0);
}

.btn-cancel-modern i,
.btn-logout-modern i,
.btn-return-admin-modern i {
    font-size: 16px;
}

/* Override theme .twm-model-popup (6px blue top border + uneven radii) */
#logout-dash-profile.twm-model-popup .modal-content,
#logout-dash-profile .modal-content {
    border: none !important;
    border-top: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

#logout-dash-profile .modal-header {
    border-bottom: 1px solid #f1f3f4;
    border-radius: 20px 20px 0 0 !important;
    padding: 24px 24px 18px;
}

#logout-dash-profile .modal-body {
    padding: 28px 24px;
}

#logout-dash-profile .modal-footer {
    border-top: 1px solid #f1f3f4;
    background: #fafbfc !important;
    border-radius: 0 0 20px 20px !important;
    padding: 18px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    #logout-dash-profile.twm-model-popup .modal-content,
    #logout-dash-profile .modal-content {
        border-radius: 20px 20px 28px 28px !important;
    }
    #logout-dash-profile .modal-header {
        border-radius: 20px 20px 0 0 !important;
    }
    #logout-dash-profile .modal-footer {
        border-radius: 0 0 28px 28px !important;
        padding: 16px 16px 22px;
    }
    #logout-dash-profile .modal-footer .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}
