.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.custom-modal.active {
    display: flex;
}

.custom-modal-content {
    background: #fff;
    padding: 20px;
    font-size: .9em;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .2);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
    margin: auto;
}

#depositModal .custom-modal-content {
    max-width: 800px;
    width: 90%;
}

.custom-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.custom-modal-content form label {
    font-weight: 700;
    margin-bottom: 5px
}

.custom-modal-content form input[type="email"],
.custom-modal-content form input[type="text"],
.custom-modal-content form input[type="password"],
.custom-modal-content form input[type="number"],
.custom-modal-content form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box
}

.custom-modal-content form input:focus,
.custom-modal-content form select:focus {
    border-color: #036;
    outline: none
}

.custom-modal-content form button {
    background-color: #036;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer
}

.custom-modal-content form button:hover {
    background-color: #00509e
}

.custom-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #036;
    font-size: 1.5em
}

.custom-modal-content p {
    font-size: 1em;
    color: #333;
    margin-bottom: 20px
}

.custom-modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
}

.custom-modal-content .close:hover {
    color: #000;
    text-decoration: none
}

.custom-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / .4);
    z-index: 999;
    justify-content: center;
    align-items: center
}

.btn {
    padding: 10px 20px;
    cursor: pointer
}

.btn.danger {
    background-color: #e74c3c;
    color: #fff
}

.btn.danger:hover {
    background-color: #c0392b
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-modal.active .custom-modal-content {
    animation: fadeInScale 0.3s ease-out;
}

.fraud-modal {
    animation: fadeInScale 0.3s ease-out;
}

.scrollable-modal {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.scrollable-modal::-webkit-scrollbar {
    width: 8px;
}

.scrollable-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.scrollable-modal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .custom-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    #depositModal .custom-modal-content {
        width: 95%;
        max-width: none;
    }
}