.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #15171e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

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

.modal-icon {
    width: 60px; height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.type-success .modal-icon {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.type-error .modal-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.type-warning .modal-icon {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.2);
}

.type-info .modal-icon {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}


.modal-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
}

.modal-text {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: 0.2s;
    text-align: center;
}
.modal-input:focus {
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.btn-modal {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}
.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.btn-confirm {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.btn-confirm:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px; right: 15px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}
.close-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}