.modal-custom {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 18, 0.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1100;
    padding: 20px;
}

.modal-custom.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    background: rgba(28, 32, 44, 0.92);
    backdrop-filter: blur(12px);
    color: #eaeef5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(20px) scale(0.96);
    transition: transform .25s ease, opacity .25s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-custom.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-lg {
    max-width: 820px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5ff;
    letter-spacing: 0.2px;
}

.modal-label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.modal-box input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 8px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border .2s ease, background .2s ease, box-shadow .2s ease;
}

.modal-box input:focus {
    border-color: rgba(99, 179, 237, 0.7);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.modal-button {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.modal-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.modal-button:active {
    transform: scale(0.98);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: red;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.modal-close:hover {
    background: rgb(249, 68, 68);
}